Skip to content

sirJiggles/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scripts

Handy scripts, add the path to the repo on PATH var and you can use

Angular 2 generator

Simple cli tools for angular 2 project using Type script on Osx

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

Angular 1 generator

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)

Android tools for cordova

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

About

helpful scripts

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors