Skip to content

tacoss/raml2code-js-client-mulesoft

Repository files navigation

raml2code-js-client-mulesoft

Build Status

This generator create javascript client from a RAML file, based in raml-client-generatorfrom mulesoft.

To try

  1. Install gulp
 npm install -G gulp
  1. install the generators you needed
 npm install --save-dev raml2code
 npm install --save-dev raml2code-js-client-mulesoft
  1. configure the gulpfile.js
var gulp = require('gulp');
var raml2code = require('raml2code');
var genJS = require("raml2code-js-client-mulesoft");

gulp.task("genJS", function(){
  gulp.src('./test/cats.raml')  
    .pipe(raml2code({generator: genJS, extra: {}}))
    .pipe(gulp.dest('build'));
});
  1. Run the generator
  gulp genJS

This is part of the raml2code project.