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

gulp/config.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 46
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 46
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
    autoprefixer: ['> 1% in DE'],
14
    browsersync: {
15
      server: {
16
        baseDir: build
17
      },
18
      files: [
19
        build + '/*.css',
20
        build + '/*.js',
21
        build + '/*.html',
22
        build + '/locale/*.json'
23
      ]
24
    },
25
    requireJs: {
26
      prod: {
27
        baseUrl: 'lib',
28
        name: '../node_modules/almond/almond',
29
        mainConfigFile: 'app.js',
30
        include: '../app',
31
        out: 'app.js',
32
        build: true,
33
        preserveLicenseComments: true
34
      },
35
      dev: {
36
        baseUrl: 'lib',
37
        name: '../node_modules/almond/almond',
38
        mainConfigFile: 'app.js',
39
        include: '../app',
40
        optimize: 'none',
41
        out: 'app.js',
42
        build: false
43
      }
44
    }
45
  };
46
};
47