-
Notifications
You must be signed in to change notification settings - Fork 6
/
gruntfile.js
61 lines (58 loc) · 1.66 KB
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = function (grunt) {
var shell = require('shelljs');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
protractor: {
options: {
configFile: "protractor.conf.js",
keepAlive: true,
noColor: false,
args: {}
},
chrome: {
options: {
args: {
browser: "chrome"
}
}
},
},
karma: {
options: {
configFile: 'karma.conf.js',
},
debug: {
browsers: ['Chrome'],
singleRun: false,
}
},
less: {
production: {
options: {
cleancss: true
},
files: {
"lib/static/static/css/main.css": "lib/static/less/main.less"
}
}
},
watch: {
less: {
files: ['lib/static/less/*.less'],
tasks: ['less']
}
},
protractor_webdriver: {
huburn: {},
},
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-protractor-runner');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('compile-less-dev', ['watch:less']);
grunt.registerTask('compile-less', ['less']);
grunt.registerTask('unit', [], function () {
grunt.loadNpmTasks('grunt-karma');
grunt.task.run('karma:debug');
});
};