1.0.9 • Published 8 years ago

diet-raml-generator v1.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Diet Raml Generator

Join the chat at https://gitter.im/Nosthertus/diet-raml-generator

diet-raml-generator is a code generator for resources found in a raml file. Raml version used is 0.8

Installation

$ npm install diet-raml-generator -g

Usage

$ diet-raml-generator 
Options:
  -t, --target       root raml file directory                [string] [required]
  -d, --directory    directory where to generate resources
                                            [string] [default: "raml-resources"]
  -h, --add-schemas  Whether add schemas found in RAML file            [boolean]
  -n, --no-index     Wheter omit index file generation                 [boolean]
  -e, --no-errors    wheter omit error and handler file generation     [boolean]

Examples:
  Usage: diet-raml-generator -t api.raml -d routes/raml-resources

Documentation

-d --directory default: raml-resources The directory where to save the generated routes.

-t --target default: null The target raml file to read.

-h --add-schemas default: false Whether add schemas found in RAML file

-n --no-index default: false Whether omit the index file generation

-e --no-errors default: false Whether omit the error.json and errorHandler.js file generation This also ignores the injection of errorHandler on all resource files

F.A.Q

Will the generator fully support to RAML 1.0? In time, when all bugs found from the parser which prevents the generator to fully work are fixed.. if i have time, i will work for 1.0 version, if anyone wants to help me with this project, i will gladly check and merge pull requests

##License M.I.T

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

0.10.3

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.4

8 years ago

0.6.3

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.7

8 years ago

0.4.6

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.2.1

8 years ago