Passed
Pull Request — develop (#338)
by
unknown
05:25
created

gulp/config.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 47
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 37
mnd 0
bc 0
fnc 1
dl 0
loc 47
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
module.exports = function () {
2
  const build = 'build';
3
4
  return {
5
    build: build,
6
    faviconData: 'assets/faviconData.json',
7
    src: {
8
      sass: 'scss/**/*.scss',
9
      javascript: ['./app.js', 'lib/**/*.js'],
10
      json: 'locale/*.json',
11
      html: ['html/*.html', './config*.js']
12
    },
13
    clean: [build + '/*.map', build + '/vendor', build + '/main.css'],
14
    browsersync: {
15
      open: false,
16
      server: {
17
        baseDir: build
18
      },
19
      files: [
20
        build + '/*.css',
21
        build + '/*.js',
22
        build + '/*.html',
23
        build + '/locale/*.json'
24
      ]
25
    },
26
    requireJs: {
27
      prod: {
28
        baseUrl: 'lib',
29
        name: '../node_modules/almond/almond',
30
        mainConfigFile: 'app.js',
31
        include: '../app',
32
        out: 'app.js',
33
        build: true,
34
        preserveLicenseComments: true
35
      },
36
      dev: {
37
        baseUrl: 'lib',
38
        name: '../node_modules/almond/almond',
39
        mainConfigFile: 'app.js',
40
        include: '../app',
41
        optimize: 'none',
42
        out: 'app.js',
43
        build: false
44
      }
45
    }
46
  };
47
};
48