https://github.com/magicdawn/predator-kit
Basic lib for predator style FE project
https://github.com/magicdawn/predator-kit
Last synced: 3 months ago
JSON representation
Basic lib for predator style FE project
- Host: GitHub
- URL: https://github.com/magicdawn/predator-kit
- Owner: magicdawn
- License: mit
- Created: 2015-09-04T01:57:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T23:50:16.000Z (about 9 years ago)
- Last Synced: 2025-12-30T14:35:58.022Z (6 months ago)
- Language: JavaScript
- Homepage: http://magicdawn.github.io/predator-kit/
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# predator-kit
Basic lib for predator style FE project
[](https://travis-ci.org/magicdawn/predator-kit)





## Develop
|commands| What |
|---|---|
|`npm run test` | test the predator-kit |
|`npm run test:lib` | test as middleware |
|`npm run test:build`| test as build kit |
|`npm run gulp ` | clean the build in the `test` dir
|`npm run update-deps` | update demo's package.json to use predator-kit@latest
|`npm run use-ln` | use `npm link predator-kit` in demo.
1. 使用 `npm link use-ln` 进行开发
2. 手动修改版本, kit的版本升级 & demo依赖的kit版本升级
3. 推送新版本至npm
4. 推送至GitHub, 触发CI. (4 & 5 不能更换, 因为先触发CI的话, demo下载不到kit新版本, 会失败)
### yeoman-generator
see https://github.com/magicdawn/generator-predator
## API
### as middleware
1. startAssetsManager # start assets manager
2. loadAllRouter # load all router
### as build kit
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