Usage
Create a new application
Create a standard or traditional application
zanobijs new <app_name> [options]## with aliaszanobijs n <app_name> [options]
By performing this command, create a folder with the name of the application and create all the files necessary for its operation
Arguments
Argument | Description |
<app_name> | Application name |
options
Option | Description |
--AWSlambda | Create an application with a framework for an AWS lambda |
Generate entities
Generate the entities to be used in the application
zanobijs generate <entity> [name] <provider_value>## with aliaszanobijs g <entity> [name] <provider_value>
Running this command generates a file based on the entity and the specified path
Arguments
Argument | Description |
entity | Entity to generate |
name | Entity name |
provider_value | Value to be given to a provider |
Entities
Entities | alias | Example command |
controller | c |
|
service | s |
|
provider | p |
|
module | m |
|
Build an application
Generates a zip of the application ready for distribution with default configuration.
zanobijs build
App build customization
Different configuration can be done by adding in the package.json
of the application
the following property:
..."zanobiJSBuildConfig": { "buildName": "salida/output/MiAppNode.zip", "files": [ { "source": "package.json", "destination": "packageZNB.json" } ], "folders": [ { "source": "dist", "destination": "code" }, { "source": "node_modules", "destination": "nodeModules" } ] } ...
Property | Description |
buildName | Name of the zip for the distribution |
files | Files to add |
folders | Folders to add |
Support us
ZanobiJS is an open source project licensed by MIT. It can grow thanks to the support of amazing people like you. If you want to join, read more here.