From 1c385a1c2200ffc90b2848b6a07c19c0293cae82 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Mon, 16 Mar 2020 16:32:31 +0200 Subject: [PATCH] build(docs-infra): do not include CI-specific config in docs examples ZIP archives (#36018) In #35381, a new Protractor config file was introduced in docs examples, `protractor-puppeteer.conf.js`, that was only supposed to be used on CI and not be shipped with the ZIP archives provided for users to download and experiment with the docs examples locally. The logic to ignore the `protractor-puppeteer.conf.js` file was incorrect, resulting in the file being retained in some examples (e.g. [universal][1]). The problem was not immediately obvious, because most examples explicitly specify all `**/*.js` files as ignored, but for other examples the file was retained in the ZIP archive. This commit fixes the logic to ensure the file is excluded from all docs examples ZIP archives. [1]: https://v9.angular.io/generated/zips/universal/universal.zip PR Close #36018 --- aio/tools/example-zipper/exampleZipper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/tools/example-zipper/exampleZipper.js b/aio/tools/example-zipper/exampleZipper.js index 563b0d7d5d..061c404f36 100644 --- a/aio/tools/example-zipper/exampleZipper.js +++ b/aio/tools/example-zipper/exampleZipper.js @@ -112,7 +112,7 @@ class ExampleZipper { '!**/npm-debug.log', '!**/example-config.json', '!**/wallaby.js', - '!e2e/protractor-puppeteer.conf.js', + '!**/e2e/protractor-puppeteer.conf.js', // AOT related files '!**/aot/**/*.*', '!**/*-aot.*'