From 5391ad482a7e59f14c060dc646a19859900f0c0a Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Wed, 26 Jan 2022 09:49:21 +0100 Subject: [PATCH 1/2] Build: remove unneeded files from packages' production builds. --- projects/packages/assets/.gitattributes | 19 ++++++++++--------- .../changelog/update-ignored-files-packages | 4 ++++ projects/packages/jitm/.gitattributes | 1 + .../changelog/update-ignored-files-packages | 4 ++++ projects/packages/my-jetpack/.gitattributes | 1 + .../changelog/update-ignored-files-packages | 4 ++++ projects/packages/post-list/.gitattributes | 1 + .../changelog/update-ignored-files-packages | 4 ++++ projects/packages/search/.gitattributes | 6 +++++- .../changelog/update-ignored-files-packages | 4 ++++ projects/plugins/jetpack/.gitattributes | 1 + .../changelog/update-ignored-files-packages | 4 ++++ 12 files changed, 43 insertions(+), 10 deletions(-) create mode 100644 projects/packages/assets/changelog/update-ignored-files-packages create mode 100644 projects/packages/jitm/changelog/update-ignored-files-packages create mode 100644 projects/packages/my-jetpack/changelog/update-ignored-files-packages create mode 100644 projects/packages/post-list/changelog/update-ignored-files-packages create mode 100644 projects/packages/search/changelog/update-ignored-files-packages create mode 100644 projects/plugins/jetpack/changelog/update-ignored-files-packages diff --git a/projects/packages/assets/.gitattributes b/projects/packages/assets/.gitattributes index 87d9fdf9c6b21..84cb90e530515 100644 --- a/projects/packages/assets/.gitattributes +++ b/projects/packages/assets/.gitattributes @@ -1,14 +1,15 @@ # Files not needed to be distributed in the package. -.gitattributes export-ignore -.github/ export-ignore -phpunit.xml.dist export-ignore -tests/ export-ignore +.gitattributes export-ignore +.github/ export-ignore +phpunit.xml.dist export-ignore +tests/ export-ignore +webpack.config.js export-ignore # Files not needed in the production build. -.gitignore production-exclude -.phpcs.dir.xml production-exclude -.phpcsignore production-exclude -/changelog/** production-exclude +.gitignore production-exclude +.phpcs.dir.xml production-exclude +.phpcsignore production-exclude +/changelog/** production-exclude # Files to include in the production build. -/build/** production-include +/build/** production-include diff --git a/projects/packages/assets/changelog/update-ignored-files-packages b/projects/packages/assets/changelog/update-ignored-files-packages new file mode 100644 index 0000000000000..ee07b47072e12 --- /dev/null +++ b/projects/packages/assets/changelog/update-ignored-files-packages @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Build: remove unneeded files from production build. diff --git a/projects/packages/jitm/.gitattributes b/projects/packages/jitm/.gitattributes index b25e37c5f25fc..cc749a05d3703 100644 --- a/projects/packages/jitm/.gitattributes +++ b/projects/packages/jitm/.gitattributes @@ -12,4 +12,5 @@ webpack.config.js export-ignore .gitignore production-exclude .phpcs.dir.xml production-exclude phpunit.xml.dist production-exclude +.eslintignore production-exclude tests/** production-exclude diff --git a/projects/packages/jitm/changelog/update-ignored-files-packages b/projects/packages/jitm/changelog/update-ignored-files-packages new file mode 100644 index 0000000000000..ee07b47072e12 --- /dev/null +++ b/projects/packages/jitm/changelog/update-ignored-files-packages @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Build: remove unneeded files from production build. diff --git a/projects/packages/my-jetpack/.gitattributes b/projects/packages/my-jetpack/.gitattributes index c81ce254119dd..b299fb7aee346 100644 --- a/projects/packages/my-jetpack/.gitattributes +++ b/projects/packages/my-jetpack/.gitattributes @@ -10,6 +10,7 @@ package.json export-ignore # Remember to end all directories with `/**` to properly tag every file. .gitignore production-exclude .phpcs.dir.xml production-exclude +jest.setup.js production-exclude _inc/** production-exclude changelog/** production-exclude phpunit.xml.dist production-exclude diff --git a/projects/packages/my-jetpack/changelog/update-ignored-files-packages b/projects/packages/my-jetpack/changelog/update-ignored-files-packages new file mode 100644 index 0000000000000..ee07b47072e12 --- /dev/null +++ b/projects/packages/my-jetpack/changelog/update-ignored-files-packages @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Build: remove unneeded files from production build. diff --git a/projects/packages/post-list/.gitattributes b/projects/packages/post-list/.gitattributes index aa7a3dc0b8739..ce049221eed22 100644 --- a/projects/packages/post-list/.gitattributes +++ b/projects/packages/post-list/.gitattributes @@ -4,6 +4,7 @@ package.json export-ignore webpack.config.js export-ignore gulpfile.babel.js export-ignore +phpunit.xml.dist export-ignore .babelrc export-ignore # Files to include in the mirror repo diff --git a/projects/packages/post-list/changelog/update-ignored-files-packages b/projects/packages/post-list/changelog/update-ignored-files-packages new file mode 100644 index 0000000000000..ee07b47072e12 --- /dev/null +++ b/projects/packages/post-list/changelog/update-ignored-files-packages @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Build: remove unneeded files from production build. diff --git a/projects/packages/search/.gitattributes b/projects/packages/search/.gitattributes index 16aad79ba0cd9..c0ff5ae6871b1 100644 --- a/projects/packages/search/.gitattributes +++ b/projects/packages/search/.gitattributes @@ -10,6 +10,8 @@ package.json export-ignore /changelog/** production-exclude /.gitignore production-exclude /.eslintrc.js production-exclude +/.eslintignore production-exclude +/.size-limit.js production-exclude /babel.config* production-exclude /jest.config.js production-exclude /postcss.config.js production-exclude @@ -19,5 +21,7 @@ package.json export-ignore /src/**/test/** production-exclude /src/**/*.scss production-exclude # JS scripts to integrate with customizer and wigets might need to be explicitly included. -/src/**/*.[jt]s?(x) production-exclude +/src/**/*.js production-exclude +/src/**/*.jsx production-exclude +/src/**/*.ts production-exclude .phpcs.dir.xml production-exclude diff --git a/projects/packages/search/changelog/update-ignored-files-packages b/projects/packages/search/changelog/update-ignored-files-packages new file mode 100644 index 0000000000000..ee07b47072e12 --- /dev/null +++ b/projects/packages/search/changelog/update-ignored-files-packages @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Build: remove unneeded files from production build. diff --git a/projects/plugins/jetpack/.gitattributes b/projects/plugins/jetpack/.gitattributes index 6ed305c7dfdc2..34d754ec559ea 100644 --- a/projects/plugins/jetpack/.gitattributes +++ b/projects/plugins/jetpack/.gitattributes @@ -20,6 +20,7 @@ # Files to exclude from Automattic/jetpack-production. # Remember to end all directories with `/**` to properly tag every file. .eslintrc.js production-exclude +.eslintignore production-exclude /.gitattributes production-exclude /.gitignore production-exclude /.phpcs.dir.xml production-exclude diff --git a/projects/plugins/jetpack/changelog/update-ignored-files-packages b/projects/plugins/jetpack/changelog/update-ignored-files-packages new file mode 100644 index 0000000000000..9831f15672b35 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-ignored-files-packages @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Build: remove unneeded files from production build. From 95d1c1dd509100904826595a6ab901cd8aa28f35 Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Thu, 27 Jan 2022 14:58:40 -0600 Subject: [PATCH 2/2] ver bump --- projects/packages/search/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/packages/search/package.json b/projects/packages/search/package.json index 2c3fd4a56da0d..24fcf18abbaa9 100644 --- a/projects/packages/search/package.json +++ b/projects/packages/search/package.json @@ -1,6 +1,6 @@ { "name": "jetpack-search", - "version": "0.5.3", + "version": "0.5.4-alpha", "description": "Package for Jetpack Search products", "main": "main.js", "directories": {