Skip to content

Commit

Permalink
Merge pull request #9 from Wilkins/master
Browse files Browse the repository at this point in the history
Browserify the module
  • Loading branch information
elliotstokes committed Aug 10, 2015
2 parents cd67538 + b95576d commit 851a7d1
Show file tree
Hide file tree
Showing 4 changed files with 14,076 additions and 3 deletions.
24 changes: 21 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,33 @@ module.exports = function(grunt) {
grunt.initConfig({
jsdoc: {
dist : {
src: ['README.md', 'lib/**/*.js'],
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: {
destination: 'doc'
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']);
Expand Down
1 change: 1 addition & 0 deletions browserify-mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports.empty = null;
Loading

0 comments on commit 851a7d1

Please sign in to comment.