From 7340ab10bfefd22b476aa9f36bdd1692435acabb Mon Sep 17 00:00:00 2001 From: Alan Greene Date: Wed, 11 May 2022 18:34:22 +0100 Subject: [PATCH] Remove references to the dist folder We removed the dist folder in #2277 but missed a few references. Remove these and fix the `build:analyze` script to point at the correct location for the webpack build output. --- .dockerignore | 16 ---------------- .gitignore | 1 - .stylelintignore | 1 - package.json | 2 +- scripts/i18n/extractMessages.js | 4 +--- .../PipelineResourcesDropdown.test.js | 4 ++-- 6 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 181a6871c..000000000 --- a/.dockerignore +++ /dev/null @@ -1,16 +0,0 @@ -.git -.github -.storybook -base -config_frontend -coverage -dist -docs -node_modules -overlays -packages/components/dist -packages/components/node_modules -packages/utils/dist -tekton -test -vendor diff --git a/.gitignore b/.gitignore index a3b1ff74c..b713309bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ # compiled output /coverage -dist/ /cmd/dashboard/kodata/ /storybook-static /tmp diff --git a/.stylelintignore b/.stylelintignore index 581edad3d..e69de29bb 100644 --- a/.stylelintignore +++ b/.stylelintignore @@ -1 +0,0 @@ -**/dist diff --git a/package.json b/package.json index 9ecc43182..ead2517c6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "webpack --config webpack.prod.js", - "build:analyze": "webpack --config webpack.prod.js --profile --json > stats.json && npx webpack-bundle-analyzer stats.json dist/", + "build:analyze": "webpack --config webpack.prod.js --profile --json > stats.json && npx webpack-bundle-analyzer stats.json cmd/dashboard/kodata/", "eslint:check": "eslint --print-config src/index.js | eslint-config-prettier-check", "i18n:extract": "node scripts/i18n/extractMessages.js", "i18n:import": "node scripts/i18n/importFromProperties.js", diff --git a/scripts/i18n/extractMessages.js b/scripts/i18n/extractMessages.js index aa85619c9..7dc3d57fc 100644 --- a/scripts/i18n/extractMessages.js +++ b/scripts/i18n/extractMessages.js @@ -54,9 +54,7 @@ function writeLocaleFile(locale, messages) { log('Extracting messages\n'); glob - .sync('./@(src|packages)/**/!(*.stories|*.test).js', { - ignore: ['./**/dist/**', './**/node_modules/**'] - }) + .sync('./@(src|packages)/**/!(*.stories|*.test).js') .forEach(filePath => { log(filePath); const { metadata } = babel.transformFileSync(path.normalize(filePath), { diff --git a/src/containers/PipelineResourcesDropdown/PipelineResourcesDropdown.test.js b/src/containers/PipelineResourcesDropdown/PipelineResourcesDropdown.test.js index ac3ed47d0..ba51cf7a3 100644 --- a/src/containers/PipelineResourcesDropdown/PipelineResourcesDropdown.test.js +++ b/src/containers/PipelineResourcesDropdown/PipelineResourcesDropdown.test.js @@ -1,11 +1,11 @@ /* -Copyright 2019-2021 The Tekton Authors +Copyright 2019-2022 The Tekton Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software -dist;ributed under the License is distributed on an "AS IS" BASIS, +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.