forked from wikimedia/mediawiki-extensions-SemanticGenealogy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
54 lines (50 loc) · 892 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
50
51
52
53
54
'use strict';
/*jshint node:true */
module.exports = function ( grunt ) {
require( 'load-grunt-tasks' )( grunt );
grunt.initConfig({
banana: {
all: 'i18n/'
},
jshint: {
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
},
clean: {
css: {
src: ['modules/styles.css']
}
},
sass: {
dist: {
options: {
style: 'nested',
sourcemap: 'none',
cacheLocation: 'styles/.sass-cache'
},
files: {
'modules/styles.css': 'styles/decorators.scss'
}
}
},
watch: {
css: {
options: { livereload: true },
files: ['styles/*.scss'],
tasks: ['clean:css', 'sass']
}
}
});
grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] );
grunt.registerTask( 'default', [ 'clean', 'sass', 'test' ] );
};