Skip to content

Commit b7adc2a

Browse files
committed
Fixed gulp docs cross-platform.
1 parent 41c30ea commit b7adc2a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

gulpfile.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ gulp.task('build-js', function() {
104104
.on('error', gutil.log);
105105
});
106106

107-
gulp.task('docs', function() {
108-
gulp.task('docs', shell.task([
109-
'node_modules\\jsdoc\\jsdoc.js '+
110-
'-c node_modules\\angular-jsdoc\\common/conf.json '+ // config file
111-
'-t node_modules\\angular-jsdoc\\angular-template '+ // template file
112-
'-d build\\docs '+ // output directory
113-
'.\\README.md ' + // to include README.md as index contents
114-
'-r directives services' // source code directory
115-
]));
107+
gulp.task('docs', function() {
108+
shell.task([
109+
path.join('node_module', 'jsdoc', 'jsdoc.js')+
110+
' -c ' + path.join('node_modules','angular-jsdoc', 'common', 'conf.json ') + // config file
111+
' -t ' + path.join('node_modules', 'angular-jsdoc', 'angular-template') + // template file
112+
' -d ' + path.join('build', 'docs') + // output directory
113+
' ' + path.join('./README.md') + // to include README.md as index contents
114+
' -r directives services' // source code directory
115+
]);
116116
});
117117

118118
gulp.task('bump', function() { bumpVersion('patch'); });

0 commit comments

Comments
 (0)