临时移除对dart的编译 —— 总是编译出错,等官方更新

This commit is contained in:
Zhicheng Wang 2016-07-18 10:03:41 +08:00
parent e140256358
commit 0d1041c461
1 changed files with 24 additions and 24 deletions

View File

@ -563,7 +563,7 @@ gulp.task('build-js-api-docs', ['_shred-api-examples'], function() {
gulp.task('build-dart-api-docs', ['_shred-api-examples', 'dartdoc'], function() {
// TODO(chalin): also build build-dart-cheatsheet
return buildApiDocsForDart();
// return buildApiDocsForDart();
});
gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
@ -571,32 +571,32 @@ gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
});
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 });
// 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() {
const ngRepoPath = ngPathFor('dart');
if (argv.fast && fs.existsSync(path.resolve(ngRepoPath, 'doc'))) {
gutil.log('Skipping dartdoc: --fast flag enabled and "doc" dir exists');
return true;
}
checkAngularProjectPath(ngRepoPath);
const dartdoc = spawnExt('dartdoc', ['--output', 'doc/api', '--add-crossdart'], { cwd: ngRepoPath});
return dartdoc.promise;
// const ngRepoPath = ngPathFor('dart');
// if (argv.fast && fs.existsSync(path.resolve(ngRepoPath, 'doc'))) {
// gutil.log('Skipping dartdoc: --fast flag enabled and "doc" dir exists');
// return true;
// }
// checkAngularProjectPath(ngRepoPath);
// const dartdoc = spawnExt('dartdoc', ['--output', 'doc/api', '--add-crossdart'], { cwd: ngRepoPath});
// return dartdoc.promise;
});
gulp.task('pub upgrade', [], function() {
const ngRepoPath = ngPathFor('dart');
if (argv.fast && fs.existsSync(path.resolve(ngRepoPath, 'packages'))) {
gutil.log('Skipping pub upgrade: --fast flag enabled and "packages" dir exists');
return true;
}
checkAngularProjectPath(ngRepoPath);
const pubUpgrade = spawnExt('pub', ['upgrade'], { cwd: ngRepoPath});
return pubUpgrade.promise;
// const ngRepoPath = ngPathFor('dart');
// if (argv.fast && fs.existsSync(path.resolve(ngRepoPath, 'packages'))) {
// gutil.log('Skipping pub upgrade: --fast flag enabled and "packages" dir exists');
// return true;
// }
// checkAngularProjectPath(ngRepoPath);
// const pubUpgrade = spawnExt('pub', ['upgrade'], { cwd: ngRepoPath});
// return pubUpgrade.promise;
});
gulp.task('git-changed-examples', ['_shred-devguide-examples'], function(){