gulp-anjs

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-anjs

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • zhoujianlin