From 0d1041c4613b7c61210dcf5985673b86c49cbc44 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Mon, 18 Jul 2016 10:03:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E7=A7=BB=E9=99=A4=E5=AF=B9da?= =?UTF-8?q?rt=E7=9A=84=E7=BC=96=E8=AF=91=20=E2=80=94=E2=80=94=20=E6=80=BB?= =?UTF-8?q?=E6=98=AF=E7=BC=96=E8=AF=91=E5=87=BA=E9=94=99=EF=BC=8C=E7=AD=89?= =?UTF-8?q?=E5=AE=98=E6=96=B9=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 38df29993d..aa2685d54d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -546,7 +546,7 @@ gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunker //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', 'build-dart-cheatsheet'] - // On TRAVIS? Skip building the Dart API docs for now. + // On TRAVIS? Skip building the Dart API docs for now. .concat(process.env.TRAVIS ? [] : ['build-dart-api-docs'])); gulp.task('build-devguide-docs', ['_shred-devguide-examples', '_shred-devguide-shared-jade'], function() { @@ -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(){ @@ -1035,7 +1035,7 @@ function watchAndSync(options, cb) { var browserSync = require('browser-sync').create(); browserSync.init({ - proxy: 'localhost:9000', + proxy: 'localhost:9000', scrollRestoreTechnique: 'cookie'}); if (options.devGuide) { @@ -1208,7 +1208,7 @@ function buildApiDocsForDart() { dab.createApiDataAndJadeFiles(apiEntries); }).catch((err) => { - console.log(err); + console.log(err); }); } catch(err) {