gapp v1.4.8
gapp - in progress
npm install -g gappTable of Contents
- Yeoman Generators
- Command Line Conditionals
- Create a Request Server
- Npm Install
- Npm Uninstall
- Shell
With gapp, yeoman has been simplified. There is no need to run the introductory methods. For example, with the yeoman angular generator, if you don't have it, you would have to run
npm install -g generator-angularThen
yo angularIn gapp you run
gapp --gen angularIf you don't have the generator, it will install it then run the generator automatically. To run sub-generators you still have to use yo. eg.
yo angular:controllerBut yo comes as a global package with gapp
Example:
gapp if $TOMCAT_HOME === '/Library/Tomcat' then 'echo Found Tomcat' elseif $NODE_ENV === 'production' then 'echo in production mode' else 'echo nothing was true!'gapp can perform
- if
- if -> else
- if -> elseif -> else
At the moment
Suggested by toish!
Options:
- serve (--serve) required Route from which to serve
- type (--type) Default: get Type of route available types get, post, delete, put
- file (--file) or message (-m) required File/Message returned from route
- port (-p) Default: 3000
- static (--static) Static folder served
Examples:
gapp --serve /route --type get --file app/index.html --static app/public -p 8080gapp --serve /route --type get -m 'This is the /get route!' --static app/public -p 8080LOCAL
Install to project dependencies
gapp -i packageSame as
npm install --save packageInstall to project dev dependencies
gapp -id packageSame as
npm install --save-dev packageGLOBAL
gapp -ig packageSame as
npm install -g packageGLOBAL AND LOCAL DEPENDENCIES
gapp -igs packageSame as
npm install -g --save packagegapp -igd packageSame as
npm install -g --save-dev packagegapp -u packageSame as
npm uninstall -g packagegapp -ul packageSame as
npm uninstall packageWith gapp you can combine all of the previous commands and also run shell commands chained through gapp.
gapp -r echo im running some command!A shell command can only be strung together if it last in the chain or the only command being ran. Otherwise use quotes/singles quotes.
PROPER
gapp -ig package -u anotherpackage --gen angular -r echo im saying something!PROPER
gapp -ig package -u anotherpackage -r 'echo im saying something!' --gen angularIMPROPER
gapp -ig package -u anotherpackage -r echo im saying something! --gen angulargapp is picky when it comes to subsequent variables.!
License
MIT © Google
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago