https://github.com/iolo/express-webapp-assets-seed
seed project for express-webapp-assets
https://github.com/iolo/express-webapp-assets-seed
Last synced: 12 months ago
JSON representation
seed project for express-webapp-assets
- Host: GitHub
- URL: https://github.com/iolo/express-webapp-assets-seed
- Owner: iolo
- Created: 2014-11-19T15:25:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-22T14:17:23.000Z (over 11 years ago)
- Last Synced: 2025-06-07T06:08:47.929Z (about 1 year ago)
- Language: JavaScript
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
express-webapp-assets-seed
==========================
>for more information, see [express-webapp-assets](http://github.com/iolo/express-webapp-assets)
getting started
---------------
### from this **seed** project
```
$ git clone --depth=1 https://github.com/iolo/express-webapp-assets-seed.git
$ cd
$ npm install
$ bower install
```
### from the scratch
```
$ npm init
...
$ bower init
...
$ npm express-webapp-assets --save
$ bower install jquery bootstrap --save
$ npm install angular angular-route --save
$ mkdir public
```
> NOTE: to demonstrate `includes` feature, install `jquery` and `bootstrap` via `bower`, `angular` and `angular-route` via `npm`.
directory structure
-------------------
* `_assets.json`
- express-webapp-assets configurations(configure with `--config` CLI option)
* `public`
- source directory(configure with `src` property in config or `--src` CLI option)
* `build/public`
- output directory(configure with `dst` property in config or `--dst` CLI option)
* `bower_components`, `node_modules`, ...
- include directories(configure with `includes` property in config or `--include` CLI option)
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 -- -o
```
deployment 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` directory
```
with this seed project:
```
$ npm run generator -- -e=production
```
*may the **SOURCE** be with you...*