-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
61 lines (55 loc) · 1.9 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
logo: "http://g-ecx.images-amazon.com/images/G/02/MandS/en_GB/core/common/mands_logo._V135158715_.jpg",
options: {
"linkNatives": "true",
"attributesEmit": "true",
"paths": [
"./wwwroot/js"
],
"outdir": "./documentation"
}
}
},
// mocha: {
// all: {
// src: ['TestRunner.html'],
// options: {
// mocha: {
// ignoreLeaks: true
// },
// reporter: function(runner) {
// new mocha.reporters.Nyan(runner);
// new mocha.reporters.Teamcity(runner);
// },
// ui : 'bdd',
// run: false
// }
// }
// },
jshint: {
ignores : ['./wwwroot/js/main.js'],
beforeconcat: ['./wwwroot/js/*.js']/*,
afterconcat: ['./wwwroot/production/application.js']*/
},
requirejs: {
compile: {
options: {
baseUrl: "wwwroot/js",
dir: "wwwroot/production"
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-yuidoc');
// grunt.loadNpmTasks('grunt-mocha');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['yuidoc',/* 'mocha',*/ 'requirejs', 'jshint']);
};