forked from meatheadmike/uchiwa-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
72 lines (67 loc) · 1.21 KB
/
Gruntfile.js
File metadata and controls
72 lines (67 loc) · 1.21 KB
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
70
71
72
'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
all: [
'Gruntfile.js',
'js/{,*/}*.js',
]
},
karma: {
unit: {
configFile: 'test/karma/conf.js'
}
},
lintspaces: {
all: {
src: [
'js/**/*.js'
],
options: {
newline: true,
newlineMaximum: 2,
indentation: 'spaces',
spaces: 2,
trailingspaces: true
}
}
},
sass: {
dist: {
files: [{
expand: true,
cwd: 'css',
src: ['**/*.scss'],
dest: 'css',
ext: '.css'
}]
}
},
watch: {
scss: {
files: ['css/**/*.scss'],
tasks: ['sass:dist'],
options: {
spawn: false
}
}
}
});
grunt.registerTask('dev', [
'watch:scss'
]);
grunt.registerTask('lint', [
'newer:jshint'
]);
grunt.registerTask('default', [
'jshint',
'lintspaces',
'karma:unit'
]);
};