package
AjGenesis for Node, Model tasks and templates
npm install ajgenesisnode-modelGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
AjGenesisNode Model tasks and templates
Install AjGenesis for Node globally using:
npm install -g ajgenesisAn AjGenesis project has a current directory, and special subdirectories. One of these distinguished directories
is model, where JSON files defines the free model to use for code generation. You can edit directly those files,
or you can use AjGenesisNode Model tasks.
To set a property in the model
ajgenesis model:set project title="My Project"To be reviewed if in *nix shell you should use
"title=My Project"instead oftitle="My Project"
It modified or add a models/project.json file with a property title with string value My Project.
{
"project": {
"title": "My Project",
// ... other preexisting properties
}
}Set many properties in one command
ajgenesis model:set project title="My Project" description="My pet project"Set an empty object
ajgenesis model:set projectResult
{
"project": {
}
}Set a boolean flag
ajgenesis model:set project usemongodbResult
{
"project": {
"usemongodb": true
}
}Set integers, booleans
ajgenesis model:set project usemongodb=true useangular=false port=3000Result
{
"project": {
"usemongodb": true,
"useangular": false,
"port": 3000
}
}npm install -g ajgenesis
git clone git://github.com/ajlopez/AjGenesisNode-Model.git
cd AjGenesisNode-Model
npm link ajgenesis
npm install
npm testajgenesis/modelsFeel free to file issues and submit pull requests � contributions are welcome.
If you submit a pull request, please be sure to add or update corresponding
test cases, and ensure that npm test continues to pass.