Skip to content

Commit

Permalink
Fixes build:docs failing on windows due to evil backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
zlovatt committed Jun 16, 2017
1 parent 7a62bd1 commit 047777e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ gulp.task( 'deploy:custom', function() {
} );

gulp.task('build:docs', function () {
exec('./node_modules/.bin/jsdoc lib/ --configure ./.jsdocrc.json', err => {
var cmd = './node_modules/.bin/jsdoc lib/ --configure ./.jsdocrc.json';

if (os.platform() !== 'darwin')
cmd = cmd.replace(/\//g, '\\');

exec(cmd, err => {
if (err) {
console.error(err)
}
Expand Down

0 comments on commit 047777e

Please sign in to comment.