Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(cheatsheet/dart): temporarily use TS cheatsheet data #1902

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,9 @@ gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunker
// Stop zipping examples Feb 28, 2016
//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.
...(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() {
return buildShredMaps(true);
Expand All @@ -570,9 +570,11 @@ gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
});

gulp.task('build-dart-cheatsheet', [], function() {
gutil.log('build-dart-cheatsheet - NOT IMPLEMENTED YET');
// return buildApiDocsForDart();
gulp.task('build-dart-cheatsheet', ['build-ts-api-docs'], function() {
gutil.log('build-dart-cheatsheet - NOT IMPLEMENTED YET - copying TS cheatsheet data');
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() {
Expand Down Expand Up @@ -1170,12 +1172,6 @@ function buildApiDocs(targetLanguage) {
console.error(err.stack);
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'));
}
}


Expand Down