-
Notifications
You must be signed in to change notification settings - Fork 59
/
gruntfile.js
executable file
·41 lines (35 loc) · 985 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
35
36
37
38
39
40
41
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
'pkg': grunt.file.readJSON('bower.json'),
'gh-pages': {
options: {
base: 'docs'
},
src: ['**']
},
'ngdocs': {
options: {
html5Mode: false,
titleLink: '#/api',
navTemplate: './docs-template/nav.html',
scripts: [
'./bower_components/angular/angular.js',
'./bower_components/angular-animate/angular-animate.js',
'./bower_components/marked/lib/marked.js',
'./dist/<%= pkg.name %>.js',
'./docs-template/script.js'
],
discussions: {
shortName: 'hypercubedgithub',
url: 'http://hypercubed.github.io/<%= pkg.name %>/',
dev: false
}
},
all: ['lib/<%= pkg.name %>.js']
}
});
require('load-grunt-tasks')(grunt);
grunt.registerTask('build', ['ngdocs']);
grunt.registerTask('deploy', ['build', 'gh-pages']);
};