express-webapp-assets-seed
v0.0.4
Published
seed project for express-webapp-assets
Readme
express-webapp-assets-seed
for more information, see express-webapp-assets
getting started
from this seed project
$ git clone --depth=1 https://github.com/iolo/express-webapp-assets-seed.git <your-project-name>
$ cd <your-project-name>
$ npm install
$ bower installfrom the scratch
$ npm init
...
$ bower init
...
$ npm express-webapp-assets --save
$ bower install jquery bootstrap --save
$ npm install angular angular-route --save
$ mkdir publicNOTE: to demonstrate
includesfeature, installjqueryandbootstrapviabower,angularandangular-routevianpm.
directory structure
_assets.json- express-webapp-assets configurations(configure with
--configCLI option)
- express-webapp-assets configurations(configure with
public- source directory(configure with
srcproperty in config or--srcCLI option)
- source directory(configure with
build/public- output directory(configure with
dstproperty in config or--dstCLI option)
- output directory(configure with
bower_components,node_modules, ...- include directories(configure with
includesproperty in config or--includeCLI option)
- include directories(configure with
development phase
use --server(or -S) CLI option to start development http server.
optionally, use --open(or -o) CLI option to open browser after http server started.
$ ./node_modules/.bin/express-webapp-assets -S -o &with this seed project:
$ npm run server -- -odeployment phase
use --generator(or -G) CLI option to generate static files for all assets using procprocessors.
optionally, use --env(or -e) CLI options to specify build envionment(equivalant to NODE_ENV).
$ ./node_modules/.bin/express-webapp-assets -G -e=production
$ ... deploy(upload, copy, rsync or else...) `build/public` directorywith this seed project:
$ npm run generator -- -e=productionmay the SOURCE be with you...
