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

chore(gulp/travis): don't build Dart docs #2931

Merged
merged 2 commits into from
Dec 5, 2016
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
"**/node_modules/**",
"docs/dart/**"
]
}
}
7 changes: 4 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function configLangs(langOption) {
const fullSiteBuildTasks = ['build-compile', 'check-deploy', 'harp-compile'];
const buildAllDocs = argv['_'] &&
fullSiteBuildTasks.some((task) => argv['_'].indexOf(task) >= 0);
const langDefault = buildAllDocs ? 'all' : 'ts|js';
const langDefault = /*buildAllDocs ? 'all' :*/ 'ts|js';
if (langOption === '') {
lang = '';
langs = [];
Expand Down Expand Up @@ -914,7 +914,7 @@ function harpCompile() {

if(skipLangs && fs.existsSync(WWW) && backupApiHtmlFilesExist(WWW)) {
gutil.log(`Harp site recompile: skipping recompilation of API docs for [${skipLangs}]`);
gutil.log(`API docs will be copied from existing ${WWW} folder.`)
gutil.log(`API docs will be copied from existing ${WWW} folder (if they exist).`)
del.sync(`${WWW}-backup`); // remove existing backup if it exists
renameIfExistsSync(WWW, `${WWW}-backup`);
} else {
Expand Down Expand Up @@ -1069,7 +1069,7 @@ function restoreApiHtml() {
const relApiDir = path.join('docs', lang, vers, 'api');
const apiSubdir = path.join(WWW, relApiDir);
const backupApiSubdir = path.join(`${WWW}-backup`, relApiDir);
if (fs.existsSync(backupApiSubdir) || argv.forceSkipApi !== true) {
if (fs.existsSync(backupApiSubdir)) {
gutil.log(`cp ${backupApiSubdir} ${apiSubdir}`)
fs.copySync(backupApiSubdir, apiSubdir);
}
Expand All @@ -1081,6 +1081,7 @@ function backupApiHtmlFilesExist(folderName) {
const vers = 'latest';
var result = 1;
skipLangs.forEach(lang => {
if (lang === 'dart') return true;
const relApiDir = path.join('docs', lang, vers, 'api');
const backupApiSubdir = path.join(folderName, relApiDir);
if (!fs.existsSync(backupApiSubdir)) {
Expand Down
8 changes: 0 additions & 8 deletions scripts/deploy-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,5 @@ else
travis_fold end install.ng2
fi

if [[ -e "$NG2DART_REPO" ]]; then
echo Angular2 Dart repo is already present at: $NG2DART_REPO
elif [[ -n "$TRAVIS" ]]; then
./scripts/install-ng2dart.sh
# else
# echo WARNING: no Angular2 Dart repo found at: $NG2DART_REPO
fi

echo INSTALLED repos:
ls -ld ../a*
68 changes: 0 additions & 68 deletions scripts/install-dart-sdk.sh

This file was deleted.

29 changes: 0 additions & 29 deletions scripts/install-ng2dart.sh

This file was deleted.