Handy scripts, add the path to the repo on PATH var and you can use
Use 'ng help' for list of options
- ng new projectName - create a new angular 2 project
- ng component componentName - create a new component
- ng interface interfaceName - create new interface with given name
- ng mock mockName - create a new mock with supplied name
- ng service serviceName - create a new service with given name
- ng pipe pipeName - create a new pipe with given name
- ng rm type itemName - remove the item name from the system for example ng rm component sampleComponent
Components are added to the route config and imported automatically into the app.ts file they are also removed from this file when using the ng rm command.
Next iteration is going to generate / destroy test files also like ember cli
Use 'ng1 help' for list of options
- generate anguar project with gulp tasks already 'ng1 new projectName'
- generate angular module using camelCase 'ng1 module sampleName'
- generate angular service using camelCase 'ng1 service sampleName'
- generate angular factory using camelCase 'ng1 factory sampleName'
- generate angular value using camelCase 'ng1 value sampleName'
- generate angular constant using camelCase 'ng1 constant sampleName'
- generate angular filter using camelCase 'ng1 filter sampleName'
- remove module using 'ng1 rm moduleName'
- remove item like filter etc using command 'ng1 rm sampleName filter' obvs replace filter for type
- view help docs with 'ng1 help'
for all of the above you can make the items as a stand alone module (required by parent app) or as a item inside an existing module my choosing the module to insert it into (follow on screen instructions)
and build - cordova build, jar sign and zip align for both x86 and armv7 and create-keystore - create a new keystore file for a new cordova android app