-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
executable file
·59 lines (51 loc) · 1.44 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
// grunt ngdocs
// creates client-side documentation
module.exports = function (grunt) {
// grunt-ngdocs: generates AngularJS documentation
grunt.loadNpmTasks('grunt-ngdocs');
// grunt-contrib-jsbeautifier: makes JS, CSS and HTML files more beautiful
grunt.loadNpmTasks('grunt-jsbeautifier');
// grunt-contrib-jshint: validates JS files
grunt.loadNpmTasks('grunt-contrib-jshint');
// grunt-todos: find to-dos and fix-mes in code
grunt.loadNpmTasks('grunt-todos');
grunt.initConfig({
ngdocs: {
options: {
dest: 'docs/client',
title: 'Gabaritei Client Documentation',
html5Mode: false,
scripts: [
'vendor/assets/bower_components/angular/angular.js',
'vendor/assets/bower_components/angular-animate/angular-animate.js'
]
},
api: {
src: ['app/assets/javascripts/app/**/*.js'],
title: 'Docs'
}
},
jsbeautifier: {
files: [
'app/assets/javascripts/app/**/*.js'
]
},
jshint: {
all: ['app/assets/javascripts/app/**/*.js', '!app/assets/javascripts/app/**/*.spec.js']
},
todos: {
options: {
verbose: false
},
all: {
files: [{
src: 'app/assets/javascripts/app/**/*.js'
}, {
src: 'app/**/*.rb'
}]
}
}
});
grunt.registerTask('docs', ['ngdocs']);
grunt.registerTask('js', ['jsbeautifier', 'jshint']);
};