-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
40 lines (33 loc) · 1.09 KB
/
Gruntfile.js
File metadata and controls
40 lines (33 loc) · 1.09 KB
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
/**
* Created by dongsj on 2017/2/21.
*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// This will load in our package.json file so we can have access
// to the project name and version number.
pkg: grunt.file.readJSON('package.json'),
// Constants for the Gruntfile so we can easily change the path for
// our environments.
BASE_PATH: './',
DEVELOPMENT_PATH: './',
// The YUIDoc plugin to generate documentation for code files.
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
extension: '.ts', // Default '.js' <comma-separated list of file extensions>
paths: '<%= DEVELOPMENT_PATH %>' + 'src/app/',
outdir: '<%= BASE_PATH %>' + 'doc/'
}
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-yuidoc');
// Default task.
grunt.registerTask('default', ['yuidoc']);
};