angularjs-commands
v1.0.3
Published
angularjs cli equivalent to ng-cli
Downloads
2
Readme
Angularjs client automator
This package was created to automate recurrent actions while developing angularjs apps: As:
- Creating initial project structure.
- Creating new controllers.
- Creating directives and many many more...
This package now only allow creating scaffold of style html and js file for new controllers. If you want to add more functionalities be free to fork or submit new commit.
Any contribuition is wellcome
Usage
Install angularjs-commands globally.
After installing globally you should be able to execute the ng-js command from your command line terminal.
Configurations.
To use this package you need to create a file called .angularjs.config.json . This file receive and json object like:
{ "dir": { "js": "js path to output the controllers", "style": "Path to styles", "html": "Path to html templates" }, "name": "App name to be used in javascript controllers template, if none is provided the name used in package json will be used" }
Parameters
ng-js generate [name] -s, --style [type] (sass|less|css) *default style is css. Specify style type used.
ng-js generate [name] -f, --folder specify if scaffold should be created inside a folder thas is the same name of [name].