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

Commit e96cc76

Browse files
chalinwardbell
authored andcommitted
chore(gulp/travis): don't build Dart docs (#2931)
* chore(gulp/travis): don't build Dart docs * firebase: ignore docs/dart on deploy
1 parent 695df67 commit e96cc76

File tree

5 files changed

+6
-109
lines changed

5 files changed

+6
-109
lines changed

firebase.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
"ignore": [
106106
"firebase.json",
107107
"**/.*",
108-
"**/node_modules/**"
108+
"**/node_modules/**",
109+
"docs/dart/**"
109110
]
110111
}
111112
}

gulpfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function configLangs(langOption) {
128128
const fullSiteBuildTasks = ['build-compile', 'check-deploy', 'harp-compile'];
129129
const buildAllDocs = argv['_'] &&
130130
fullSiteBuildTasks.some((task) => argv['_'].indexOf(task) >= 0);
131-
const langDefault = buildAllDocs ? 'all' : 'ts|js';
131+
const langDefault = /*buildAllDocs ? 'all' :*/ 'ts|js';
132132
if (langOption === '') {
133133
lang = '';
134134
langs = [];
@@ -914,7 +914,7 @@ function harpCompile() {
914914

915915
if(skipLangs && fs.existsSync(WWW) && backupApiHtmlFilesExist(WWW)) {
916916
gutil.log(`Harp site recompile: skipping recompilation of API docs for [${skipLangs}]`);
917-
gutil.log(`API docs will be copied from existing ${WWW} folder.`)
917+
gutil.log(`API docs will be copied from existing ${WWW} folder (if they exist).`)
918918
del.sync(`${WWW}-backup`); // remove existing backup if it exists
919919
renameIfExistsSync(WWW, `${WWW}-backup`);
920920
} else {
@@ -1069,7 +1069,7 @@ function restoreApiHtml() {
10691069
const relApiDir = path.join('docs', lang, vers, 'api');
10701070
const apiSubdir = path.join(WWW, relApiDir);
10711071
const backupApiSubdir = path.join(`${WWW}-backup`, relApiDir);
1072-
if (fs.existsSync(backupApiSubdir) || argv.forceSkipApi !== true) {
1072+
if (fs.existsSync(backupApiSubdir)) {
10731073
gutil.log(`cp ${backupApiSubdir} ${apiSubdir}`)
10741074
fs.copySync(backupApiSubdir, apiSubdir);
10751075
}
@@ -1081,6 +1081,7 @@ function backupApiHtmlFilesExist(folderName) {
10811081
const vers = 'latest';
10821082
var result = 1;
10831083
skipLangs.forEach(lang => {
1084+
if (lang === 'dart') return true;
10841085
const relApiDir = path.join('docs', lang, vers, 'api');
10851086
const backupApiSubdir = path.join(folderName, relApiDir);
10861087
if (!fs.existsSync(backupApiSubdir)) {

scripts/deploy-install.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,5 @@ else
1616
travis_fold end install.ng2
1717
fi
1818

19-
if [[ -e "$NG2DART_REPO" ]]; then
20-
echo Angular2 Dart repo is already present at: $NG2DART_REPO
21-
elif [[ -n "$TRAVIS" ]]; then
22-
./scripts/install-ng2dart.sh
23-
# else
24-
# echo WARNING: no Angular2 Dart repo found at: $NG2DART_REPO
25-
fi
26-
2719
echo INSTALLED repos:
2820
ls -ld ../a*

scripts/install-dart-sdk.sh

Lines changed: 0 additions & 68 deletions
This file was deleted.

scripts/install-ng2dart.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)