临时移除对dart的编译 —— 总是编译出错,等官方更新
This commit is contained in:
parent
e140256358
commit
0d1041c461
42
gulpfile.js
42
gulpfile.js
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue