New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

raml2code

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raml2code

Raml spec to code

latest
npmnpm
Version
1.8.4
Version published
Maintainers
1
Created
Source

Raml to code generator

Build Status

It's a Gulp-plugin so to try

  • 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-retrofit");

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

Generators create and in use by GEX.

If you create a generator let us know to add to this list.

A full example of using using raml2code could be found here:

raml2code-Example

You can make your own generators, DIY

Generator specification

We use the Gradle with the gulp plugin to build and integrate with Java.

gradle

gradle-gulp-plugin

Keywords

RAML

FAQs

Package last updated on 18 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts