gulp-anjs
v0.0.1
Published
anjs for Gulp
Downloads
3
Readme
gulp-anjs
gulp-anjs anjs 的gulp包装
####使用
{
cwd: path.join(baseSrc,'scripts'),
isBower: true,
bowerPaths:{
bowerDirectory: getBowerPath(),
bowerJson: path.join(cwdPath,'bower.json')
},
beforeFn: function(){
var content = html2js({
cwd: path.join(baseSrc,'views'),
rename: function(url){
return url.replace(path.join(baseSrc,'views'),'views');
},htmlmin: {
collapseWhitespace: true
}});
//scripts 目录存在不检查
fs.writeFile(path.join(baseSrc,'scripts/project.tpl.js'),content);
},
src:['**/**/**/*.js','!bower_components/**/**/**/*.js']
}
###主要api 参考anjs ####bug 反馈 [email protected]