forked from bencpeters/DataDashboardDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
38 lines (35 loc) · 899 Bytes
/
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
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
project: {
app: ['app'],
css: ['<%= project.app %>/sass/app.scss']
},
sass: {
dev: {
options: {
style: 'expanded',
compass: false
},
files: {
'<%= project.app %>/css/app.css':'<%= project.css %>',
'<%= project.app %>/css/sensor-data/sensor-data.css':'<%= project.app %>/sensor-data/sensor-data.scss'
}
}
},
watch: {
sass: {
files: ['<%= project.app %>/sass/{,*/}*.{scss,sass}',
'<%= project.app %>/sensor-data/{,/}*.{scss,sass}'
],
tasks: ['sass:dev']
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', [
'watch'
]);
};