-
Notifications
You must be signed in to change notification settings - Fork 116
/
Gruntfile.js
executable file
·40 lines (35 loc) · 1.1 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
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
// Import Saiku files
saiku: grunt.file.readJSON('saikuFilesPath.json'),
// Watch definitions
watch: {
reload: {
files: ['<%= saiku.path.css %>', '<%= saiku.path.html %>', '<%= saiku.path.js %>'],
options: {
livereload: {
port: 35729
}
}
}
},
// CSS Comb definitions
csscomb: {
dist: {
options: {
config: '.csscomb.json'
},
files: {
'js/saiku/plugins/Dashboards/css/plugin.css': ['js/saiku/plugins/Dashboards/css/plugin.css']
}
}
}
});
// These plugins provide necessary tasks
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-csscomb');
// By default, lint and run all tests
grunt.registerTask('default', ['watch']);
grunt.registerTask('comb', ['csscomb']);
};