-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
34 lines (26 loc) · 899 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
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
//Read the package.json (optional)
pkg: grunt.file.readJSON('package.json'),
// Metadata.
meta: {
basePath: '.'
},
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> ',
// Task configuration.
jasmine_node: {
extensions: "js",
specNameMatcher: "spec", // load only specs containing specNameMatcher
projectRoot: ".",
requirejs: false,
forceExit: true
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-jasmine-node');
// Default task.
grunt.registerTask('default', ['jasmine_node']);
};