base-app-seed

v0.2.0
seed project for base-* applications
base element web app seed

create-dir

mkdir -p dist

build

concurrent -p command 'npm run build-js' 'npm run build-html'

build-html

cpy 'app/**/*.html' dist

build-js

browserify -d app/app.js > dist/bundle.js

pre-build

rm -rf dist/ && npm run create-dir

post-build

echo "Finished NODE_ENV=${NODE_ENV}"

pre-watch

npm run create-dir

test

standard && tape test/**/*.js && equipage - test/**/*.js

watch

npm run pre-build && concurrent -p command 'npm run watch-js' 'npm run watch-html' 'npm run watch-browser'

watch-browser

sleep 5 && browser-sync start --config bs.config.js

watch-html

npm run build-html && onchange 'app/**/*.html' -- cpy 'app/**/*.html' dist

watch-js

npm run build-js && watchify -d app/app.js -o dist/bundle.js
npm i base-app-seed

Metadata

  • MIT
  • Whatever
  • Chinedu Francis Nwafili
  • released 6/8/2015

Downloads

Maintainers