parent
daca93ce82
commit
1e908ffa9c
18
gulpfile.js
18
gulpfile.js
|
@ -545,9 +545,9 @@ gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunker
|
||||||
// Stop zipping examples Feb 28, 2016
|
// Stop zipping examples Feb 28, 2016
|
||||||
//gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers', '_zip-examples']);
|
//gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers', '_zip-examples']);
|
||||||
|
|
||||||
gulp.task('build-api-docs', ['build-js-api-docs', 'build-ts-api-docs',
|
gulp.task('build-api-docs', ['build-js-api-docs', 'build-ts-api-docs', 'build-dart-cheatsheet']
|
||||||
// On TRAVIS? Skip building the Dart API docs for now.
|
// On TRAVIS? Skip building the Dart API docs for now.
|
||||||
...(process.env.TRAVIS ? [] : ['build-dart-api-docs'])]);
|
.concat(process.env.TRAVIS ? [] : ['build-dart-api-docs']));
|
||||||
|
|
||||||
gulp.task('build-devguide-docs', ['_shred-devguide-examples', '_shred-devguide-shared-jade'], function() {
|
gulp.task('build-devguide-docs', ['_shred-devguide-examples', '_shred-devguide-shared-jade'], function() {
|
||||||
return buildShredMaps(true);
|
return buildShredMaps(true);
|
||||||
|
@ -570,9 +570,11 @@ gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
|
||||||
return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
|
return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('build-dart-cheatsheet', [], function() {
|
gulp.task('build-dart-cheatsheet', ['build-ts-api-docs'], function() {
|
||||||
gutil.log('build-dart-cheatsheet - NOT IMPLEMENTED YET');
|
gutil.log('build-dart-cheatsheet - NOT IMPLEMENTED YET - copying TS cheatsheet data');
|
||||||
// return buildApiDocsForDart();
|
const src = './public/docs/ts/latest/guide/cheatsheet.json';
|
||||||
|
fs.copy(src, './public/docs/dart/latest/guide/cheatsheet.json', {clobber: true},
|
||||||
|
(err) => { if(err) throw err });
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('dartdoc', ['pub upgrade'], function() {
|
gulp.task('dartdoc', ['pub upgrade'], function() {
|
||||||
|
@ -1170,12 +1172,6 @@ function buildApiDocs(targetLanguage) {
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyApiDocsToJsFolder() {
|
|
||||||
// Make a copy of the JS API docs to the TS folder
|
|
||||||
return gulp.src([path.join(DOCS_PATH, 'ts/latest/api/**/*.*'), '!' + path.join(DOCS_PATH, 'ts/latest/api/index.jade')])
|
|
||||||
.pipe(gulp.dest('./public/docs/js/latest/api'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue