-
Notifications
You must be signed in to change notification settings - Fork 40
/
Gruntfile.js
35 lines (32 loc) · 850 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
module.exports = function(grunt) {
grunt.initConfig({
jsdoc: {
dist : {
src: ['README.md', 'lib/**/*.js'],
options: {
destination: 'doc'
}
}
},
browserify: {
options: {
browserifyOptions: {
standalone: 'gpx-parse'
}
},
dist: {
src: 'index.js',
dest: 'dist/gpx-parse-browser.js',
options: {
alias: [
// Mockup to avoid loading lib-cov/gpx-parse in the browserify build process
'./browserify-mock.js:./lib-cov/gpx-parse'
]
}
}
}
});
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-browserify');
grunt.registerTask('document', ['jsdoc']);
};