gulp-kclean

1.0.5 • Public • Published

gulp-kclean

kclean plugin for gulp

how to use

var kclean = require('gulp-kclean');
 
//kissy
gulp.task("kclean", function() {
    gulp.src("./combo/*.js")
        .pipe(kclean({
            files:[{
                        src:'init-min.js',
                        outputModule:'udata/init'
                  }]
        }))
        .pipe(gulp.dest("./build"))
});
 
//sea.js
gulp.task("kclean", function() {
    gulp.src("./combo/*.js")
        .pipe(kclean({
            files:[{
                        src:'init-min.js',
                        outputModule:'udata/init'
                  }]
        }))//配置与kissy一样,kclean内部会自动识别代码风格
        .pipe(gulp.dest("./build"))
});
 
//原生js
gulp.task("kclean", function() {
    gulp.src("./combo/*.js")
        .pipe(kclean({
            options:{
                wrap:{
                    start:"(function(){",
                    end:"})();"
                }
            },
            files:[{
                        src:'init-min.js',
                        outputModule:'udata/init'
                  }]
        }))//配置与kissy一样,kclean内部会自动识别代码风格
        .pipe(gulp.dest("./build"))
});
 

Readme

Keywords

Package Sidebar

Install

npm i gulp-kclean

Weekly Downloads

131

Version

1.0.5

License

ISC

Last publish

Collaborators

  • taojie