-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgruntfile.js
More file actions
29 lines (27 loc) · 752 Bytes
/
Copy pathgruntfile.js
File metadata and controls
29 lines (27 loc) · 752 Bytes
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
/*jslint node: true, nomen: true */
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jslint: {
all: {
src: [
'./**/*.js',
'./package.json'
],
exclude: [
'./node_modules/**/*.js'
],
options: { }
}
},
jasmine_node: {
specNameMatcher: "spec",
projectRoot: ".",
useHelpers: true
}
});
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jasmine-node');
return grunt.registerTask('default', ['jslint', 'jasmine_node']);
};