0.0.1 • Published 9 years ago

gulp-anjs v0.0.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
9 years ago

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 反馈 zhoujianlin8@gmail.com

0.0.1

9 years ago