Completed
Pull Request — develop (#110)
by Xaver
01:10
created

gulp/tasks/javascript.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 10
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 3
c 1
b 0
f 0
nc 2
mnd 1
bc 2
fnc 2
dl 0
loc 10
rs 10
bpm 1
cpm 1.5
noi 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
      .pipe(env.production(plugins.uglify({ preserveComments: 'license' })))
7
      .pipe(env.development(plugins.sourcemaps.write('.', { addComment: true })))
8
      .pipe(gulp.dest(config.build));
9
  };
10
};
11