基础框架
git clone https://github.com/testxin/BaseFramework.git BaseFramework
cd BaseFramework
npm install
npm run gulp
-
CSS: Sass
-
JS: Modular ES6 with Babel and Webpack
- 异步 requires
- 多包
- 分享模块
- Source Maps
-
React:
-
Images:
- SVG Sprites: Compiles a spritesheet from a folder of SVGs
- Compression with image-min
-
Fonts:
- Icon Fonts: Generate from a folder of SVGs
- Folder and
.sass
mixin for including WebFonts
-
Development Mode:
- File Watching and Live Reloading with BrowserSync
- Source Maps
-
Production Builds:
- JS and CSS are uglified and minified
- All filneames are revisioned with an md5 hash, a
rev-manifest.json
file is genrearted and all asset references are updated in html, css, and js - File size reporting
- Local production sever for testing
-
测试:
- JS test examples with Karma, Mocha, Chai, Sinon
- Travis CI integration