Total Complexity | 4 |
Complexity/F | 1.33 |
Lines of Code | 13 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | module.exports = function (gulp, plugins, config, env) { |
||
2 | return function javascript() { |
||
3 | return gulp.src('app.js') |
||
4 | .pipe(env.development(plugins.sourcemaps.init())) |
||
5 | .pipe(plugins.requirejsOptimize(env.production() ? config.requireJs.prod : config.requireJs.dev)) |
||
6 | .on('error', function () { |
||
7 | this.emit('end'); |
||
8 | }) |
||
9 | .pipe(env.production(plugins.uglify({ output: { comments: 'all' } }))) |
||
10 | .pipe(env.development(plugins.sourcemaps.write('.', { addComment: true }))) |
||
11 | .pipe(gulp.dest(config.build)); |
||
12 | }; |
||
13 | }; |
||
14 |