-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
69 lines (65 loc) · 2.17 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
62
63
64
65
66
67
68
69
//----------------------------------------------------------------------------------------------------------------------
// RFI Client Gruntfile.
//----------------------------------------------------------------------------------------------------------------------
module.exports = function(grunt)
{
// Project configuration.
grunt.initConfig({
project: {
js: ['client/**/*.js', '!client/vendor/**/*.js'],
less: ['client/**/*.less', '!client/vendor/**/*.less']
},
less: {
sleekspace: {
options: {
paths: ['node_modules/bootstrap/less'],
compress: true
},
files: {
'client/css/sleekspace.min.css': ['client/less/sleekspace/sleekspace.less']
}
},
main: {
options: {
paths: ['client/vendor'],
compress: true
},
files: {
'client/css/rfi-client.min.css': ['<%= project.less %>', '!client/less/sleekspace/**/*.less']
}
}
},
karma: {
unit: {
configFile: 'karma-config.js'
}
},
watch: {
less: {
files: ['<%= project.less %>'],
tasks: ['less'],
options: {
atBegin: true
}
}
},
connect: {
server: {
options: {
port: 2695,
base: 'client'
}
}
}
});
// Grunt Tasks.
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-karma');
// Setup the build task.
grunt.registerTask('build', ['less']);
grunt.registerTask('test', ['build', 'karma:unit']);
grunt.registerTask('devel', ['connect', 'watch']);
}; // module.exports
// ---------------------------------------------------------------------------------------------------------------------