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"))
});
 

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.56latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.56
1.0.45
1.0.35
1.0.26
1.0.05
0.0.2414
0.0.235
0.0.225
0.0.215
0.0.205
0.0.186
0.0.176
0.0.165
0.0.155
0.0.145
0.0.1322
0.0.125
0.0.105
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.15
0.0.06

Package Sidebar

Install

npm i gulp-kclean

Weekly Downloads

131

Version

1.0.5

License

ISC

Last publish

Collaborators

  • taojie