1.12.0 • Published 12 months ago

@quenk/dagen v1.12.0

Weekly downloads
13
License
Apache-2.0
Repository
-
Last release
12 months ago

Dagen

Generate boilerplate output from a schema.

Dagen (DATA GENerator) is a tool for generating code for an application's data models using templates.

It works by pre-processing a JSON document in a JSON Schema simillar syntax then executing a user supplied template against the processed document.

Templates are generated using Nunjucks.

See the spec.md file for the specifics of the schema syntax.

Installation

  npm install -g @quenk/dagen

Usage

Usage:             
   main.js [--namespace=NAMESPACE...] [--plugin=PATH...] [--definitions=PATH...]
          [--set=KVP...] [--template=TEMPLATE] [--templates=PATH]              
          [--check=PATH...] [--install-check=PATH] <file>                      

Options:           
  -h --help                  Show this screen.                                 
  --template TEMPLATE        Specify the template to use when generating code. 
  --templates PATH           Path to resolve templates from. Defaults to process.cwd().
  --namespace EXT            Sets a namespace to be in effect.                 
  --plugin PATH              Path to a plugin that will be loaded at runtime.  
  --definitions PATH         Path to an exported definition object to include. 
  --set PATH=VALUE           Set a value on the schema document.                      
  --check PATH               Loads and applies a check to the final document. 
  --install-check PATH       Make a precondition available to be used as a $check.
  --version                  Show version. 

License

Apache-2.0 (C) Quenk Technologies Limited.

1.12.0

12 months ago

1.11.3

12 months ago

1.11.1

1 year ago

1.11.0

1 year ago

1.10.3

3 years ago

1.10.2

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.6

4 years ago

1.9.5

4 years ago

1.9.4

5 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.0

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.0

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.10

6 years ago

0.7.9

6 years ago

0.7.8

6 years ago

0.7.7

6 years ago

0.7.6

6 years ago

0.7.5

6 years ago

0.7.4

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago