-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathGruntfile.js
38 lines (29 loc) · 981 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
/*
Copyright 2015 OCAD University
Licensed under the New BSD license. You may not use this file except in
compliance with this License.
You may obtain a copy of the License at
https://raw.githubusercontent.com/GPII/first-discovery-server/master/LICENSE.txt
*/
/* eslint-env node */
"use strict";
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
// Project package file destination.
pkg: grunt.file.readJSON("package.json"),
eslint: {
all: ["**/*.js"],
buildScripts: ["Gruntfile.js"]
},
jsonlint: {
all: ["package.json", ".eslintrc", "src/**/*.json", "tests/**/*.json"]
}
});
// Load the plugin(s):
grunt.loadNpmTasks("fluid-grunt-eslint");
grunt.loadNpmTasks("grunt-jsonlint");
// Custom tasks:
grunt.registerTask("default", ["lint"]);
grunt.registerTask("lint", "Apply eslint and jsonlint", ["eslint", "jsonlint"]);
};