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

gulp/config.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 45
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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