0.1.4 • Published 6 years ago
@lernato/cli v0.1.4
@lernato/cli
A command line program for generating JavaScript and TypeScript projects and boilerplate code.
Installation
To install the package:
npm install -g @lernato/cliUsage:
Show these usage instructions
-h, --helpCreate new things
lernato-cli newCreate a new model
lernato-cli new model <model-name>Options:
-f, --models-folder <folder/path>
specify the high-level folder that all models are stored in (default: src/models)
-j, --vanillajs
create files as vanilla JavaScript instead of TypeScriptCreate a new service
lernato-cli new service <service-name>Options:
-f, --services-folder <folder/path>
specify the high-level folder that all services are stored in (default: src/services)
-j, --vanillajs
create files as vanilla JavaScript instead of TypeScriptExamples:
lernato-cli new model my-model
lernato-cli new service my-service -f path/to/my-services-folder -jInitialize things in your project
lernato-cli init <option>Initialize a vanilla node/npm project
lernato-cli init npmInitialize a typescript project
lernato-cli init typescriptAdd jest to a project for unit testing
lernato-cli init jestAdd prettier to a project for code formatting
lernato-cli init prettier