1.4.8 • Published 7 years ago

gapp v1.4.8

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

gapp - in progress

npm install -g gapp

Table 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-angular

Then

yo angular

In gapp you run

gapp --gen angular

If 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:controller

But 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:

Examples:

gapp --serve /route --type get --file app/index.html --static app/public -p 8080
gapp --serve /route --type get -m 'This is the /get route!' --static app/public -p 8080

LOCAL

Install to project dependencies

gapp -i package

Same as

npm install --save package

Install to project dev dependencies

gapp -id package

Same as

npm install --save-dev package

GLOBAL

gapp -ig package

Same as

npm install -g package

GLOBAL AND LOCAL DEPENDENCIES

gapp -igs package

Same as

npm install -g --save package
gapp -igd package

Same as

npm install -g --save-dev package
gapp -u package

Same as

npm uninstall -g package
gapp -ul package

Same as

npm uninstall package

With 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 angular

IMPROPER

gapp -ig package -u anotherpackage -r echo im saying something! --gen angular

gapp is picky when it comes to subsequent variables.!

License

MIT © Google

1.4.8

7 years ago

1.4.7

7 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.9

7 years ago

1.3.8

7 years ago

1.3.7

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.6

7 years ago

1.2.2

7 years ago

1.2.0

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago