This repository has been archived by the owner on Sep 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Gruntfile.js
81 lines (78 loc) · 2.43 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
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
73
74
75
76
77
78
79
80
81
module.exports = function( grunt ) {
grunt.initConfig({
pkg: grunt.file.readJSON( "package.json" ),
csslint: {
lax: {
options: {
"adjoining-classes": false,
"box-model": false,
"box-sizing": false,
"bulletproof-font-face": false,
"compatible-vendor-prefixes": false,
"ids": false,
"important": false,
"outline-none": false,
"overqualified-elements": false,
"qualified-headings": false,
"regex-selectors": false,
"star-property-hack": false,
"underscore-property-hack": false,
"universal-selector": false,
"unique-headings": false,
"unqualified-attributes": false,
"vendor-prefix": false,
"zero-units": false
},
src: [
"public/stylesheets/*.css","!public/bower/**/*","!public/webxray.css"
]
}
},
lesslint: {
src: ["public/stylesheets/style.less"],
options: {
csslint: {
"adjoining-classes": false,
"box-model": false,
"box-sizing": false,
"bulletproof-font-face": false,
"compatible-vendor-prefixes": false,
"duplicate-background-images": false,
"ids": false,
"important": false,
"outline-none": false,
"overqualified-elements": false,
"qualified-headings": false,
"regex-selectors": false,
"star-property-hack": false,
"underscore-property-hack": false,
"universal-selector": false,
"unique-headings": false,
"unqualified-attributes": false,
"vendor-prefix": false,
"zero-units": false
}
}
},
jshint: {
files: [
"Gruntfile.js",
"app.js",
"lib/**/*.js"
]
},
gettext_finder: {
files: ["views/*.html", "views/**/*.html"],
options: {
pathToJSON: ["locale/en_US/goggles.webmaker.org.json"],
ignoreKeys: grunt.file.readJSON("gtf-ignored-keys.json")
}
}
});
grunt.loadNpmTasks( "grunt-contrib-csslint" );
grunt.loadNpmTasks( "grunt-contrib-jshint" );
grunt.loadNpmTasks( "grunt-gettext-finder" );
grunt.loadNpmTasks( "grunt-lesslint" );
grunt.registerTask( "default", [ "csslint", "jshint", "lesslint" ]);
grunt.registerTask( "validate", [ "gettext_finder" ]);
};