-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
49 lines (38 loc) · 933 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
39
40
41
42
43
44
45
46
47
48
49
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
grunt.initConfig({
scsslint: {
all: [
'scss/_partials/*.scss',
'scss/*.scss'
]
},
sass: {
dist: {
options: {
style: 'compressed'
},
files: {
'simplestyle.min.css': 'scss/style.scss'
}
}
},
watch: {
css: {
files: ['scss/*.scss', 'scss/_partials/*.scss'],
tasks: ['scsslint', 'sass'],
options: {
spawn: false
}
}
}
});
grunt.loadNpmTasks('grunt-serve'); // Local server
grunt.loadNpmTasks('grunt-scss-lint'); // Lint SCSS files
grunt.loadNpmTasks('grunt-contrib-sass'); // Process Sass files
grunt.loadNpmTasks('grunt-contrib-watch'); // On file update, do task
grunt.registerTask('default', ['scsslint', 'sass']);
};