predator-kit

Basic lib for predator style FE project

Build Status

Develop

commands

yeoman-generator

see https://github.com/magicdawn/generator-predator

steps

  1. modify files
  2. travis install latest(old) version, use ln to use current modification
  3. manly update package.json version
  4. publish to npm
  5. push to git, trigger travis build

API

dev

  1. startAssetsManager # start assets manager
  2. loadAllRouter # load all router

build

generally: we got build everything ready

  1. buildCopy: just copy
  2. buildStatic: name_hash.ext
  3. buildLessAsync: less -> clean-css
  4. buildJsAsync: js -> browserify
  5. buildOtherJsCss: css/js not in main
  6. buildView: we build view/*.{swig|html|...}
  7. buildHtmlAsync: build static html

License

MIT http://magicdawn.mit-license.org