It helps you to construct and orginize your static code , quickly minify html , css , js , img.
Use gulp and canner-core ( The html's template is hbs )
- gulp
- gulp-compass
- gulp-concat
- gulp-imagemin
- gulp-minify-css
- gulp-plumber
- gulp-rename
- gulp-uglify
- gulp-clean-css
- canner-core
- minist
sass / scss code
- input : sass /
- output : dist / css /
puts js code
- input : js /
- output : dist / js
minify's code (css , js , img , bgm)
some library code ( js , css ) ex: normalize.css
minify's library code
hbs template ( include partial )
Use build to control hbs transforming.
control the data to transform hbs's template
- data : hbs's data
- partials : partial.js
- layout : input file
- filename : output file
var route = [
{
data: {
path: './',
title: 'Hello guys',
first_word: 'It is a good template'
},
partials: './partial.js',
layout: "./layout/index.hbs",
filename: "./index.html"
}
];
module.exports = route;
partial hbs ex: {{> head}}
control gulp
a config.rb for compass
MIT © TseHang