Completed
Push — develop ( e0cef8...0aa347 )
by Xaver
31s
created

module.exports   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
nc 1
dl 0
loc 3
rs 10
nop 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