shark-mvc-cli
v0.5.5
Published
You can get shark-mvc-cli via npm.
Downloads
1
Readme
shark-mvc-cli
Install
You can get shark-mvc-cli via npm.
$ npm install shark-mvc-cli -g
Usage
Shark cli should be used inside the "src" folder of the project since it will create (if not alredy present) the "components", "models" and "views" folders to place each item created.
Create Application
This command lets you create a new Application. This will create a file "./app.js" file and then a default "home" View.
Optionally you can pass a parameter that will override the default "app.js" name.
$ shark create-application [myApp]
$ shark create-app [myApp]
$ shark ca [myApp]
Create Component
This command lets you create a new Component. The new Component will be placed in the "./components/myExample" folder.
Using the example below the command will create two files:
my-example.html
myExampleComponent.js
$ shark create-component myExample
$ shark cc myExample
Create Manager
This command lets you create a new Manager. The new Manager will be placed in the "./managers" folder.
Using the example below the command will create one files:
customManager.js
$ shark create-manager custom
$ shark cma custom
Create Model
This command lets you create a new Model. The new Model will be placed in the "./models" folder.
Using the example below the command will create one files:
CustomModel.js
$ shark create-model CustomModel
$ shark cmo CustomModel
Create View
This command lets you create a new View. The new View will be placed in the "./views/myExample" folder.
Using the example below the command will create two files:
my-example.html
myExampleView.js
$ shark create-view myExample
$ shark cv myExample