:# Raml to code generator
- Install gulp
npm install -G gulp
- install the generators you needed
npm install --save-dev raml2code
npm install --save-dev raml2code-groovy-pojo
- configure the gulpfile.js
var gulp = require('gulp');
var raml2code = require('raml2code');
//Install a generators:
var genDTO = require("raml2code-groovy-pojo");
gulp.task("dtos", function(){
gulp.src('./test/cats.raml')
.pipe(raml2code({generator: genDTO, extra: {package:'com.gex'}}))
.pipe(gulp.dest('build'));
});
- Run the generator
gulp dtos
If you create a generator let us know to add to this list.