Three quick start options are available:
- Download the latest release.
- Clone the repo:
git clone https://github.com/bigertech/front-end-template.git
. - Install with Bower:
bower install bigertech
.
Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:
Front-End-Template/
├── less/
├── js/
├── img/
├── fonts/
└── dist/
├── css/
├── js/
├── images/
└── fonts/
├── bower.json
├── package.json
└── gulpfile.js
Bigertech uses Gulp for its build system, with convenient methods for working with the framework. It's how we compile our code, run tests, and more.
bower install
npm install
npm install -g gulp
gulp // 完成 Less 编译,css、js、图像压缩合并与检验
gulp clean // 清理开发时不需要的文件
gulp less // 将 Less 转换成 CSS,以及压缩 CSS
gulp scripts // 验证、合并、压缩 js 文件
gulp images // 压缩图片
gulp watch // 默认监测所有前端开发文件的变化