-
Notifications
You must be signed in to change notification settings - Fork 21
/
Gruntfile.js
40 lines (33 loc) · 1.01 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
/*
Copyright 2014 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://github.com/GPII/prefsEditors/LICENSE.txt
*/
// Declare dependencies
/* global module */
module.exports = function(grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
// Project package file destination.
pkg: grunt.file.readJSON("package.json"),
jshint: {
all: ["**/*.js"],
buildScripts: ["Gruntfile.js"],
options: {
jshintrc: true
}
},
jsonlint: {
all: ["src/**/*.json", "tests/**/*.json", "demos/**/*.json"]
}
});
// Load the plugin(s):
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-jsonlint");
// Custom tasks:
grunt.registerTask("lint", "Apply jshint and jsonlint", ["jshint", "jsonlint"]);
grunt.registerTask("default", ["lint"]);
};