forked from GPII/gpii-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
28 lines (25 loc) · 978 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
"use strict";
module.exports = function (grunt) {
grunt.initConfig({
lintAll: {
sources: {
md: [ "./*.md","./documentation/*.md", "./examples/**/*.md"],
js: ["src/**/*.js", "tests/**/*.js", "examples/**/*.js", "*.js"],
json: ["src/**/*.json", "tests/**/*.json", "testData/**/*.json", "configs/**/*.json", "*.json", "!tests/fixtures/survey/malformed_triggers.json"],
json5: ["src/**/*.json5", "tests/**/*.json5", "testData/**/*.json5", "*.json5"],
other: ["./.*"]
}
},
shell: {
options: {
stdout: true,
srderr: true,
failOnError: true
}
}
});
grunt.loadNpmTasks("gpii-grunt-lint-all");
grunt.loadNpmTasks("grunt-shell");
grunt.registerTask("default", ["lint"]);
grunt.registerTask("lint", "Perform all standard lint checks.", ["lint-all"]);
};