Skip to content
Draft
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: 3 additions & 0 deletions projects/packages/backup/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
/tests/** production-exclude
types.d.ts production-exclude
/src/js/** production-exclude
babel.config.js production-exclude
webpack.config.js production-exclude
tsconfig.json production-exclude
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the tsconfig.json listing in the monorepo root .gitattributes not taking effect?

Also, we've already got eslint and phpunit configs in there. I wonder whether we should go ahead and add some of these there too. babel.config.js, webpack.config.js, .phpcs.dir.xml, and maybe even /projects/*/*/changelog/** and /projects/*/*/tests/** seem like decent candidates.


# Files needed in the production build.
build/** production-include
4 changes: 4 additions & 0 deletions projects/packages/backup/changelog/exclude-dev-vendor-files
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
1 change: 1 addition & 0 deletions projects/packages/blaze/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ changelog/** production-exclude
.phpcs.dir.xml production-exclude
tests/** production-exclude
src/js/** production-exclude
webpack.config.js production-exclude
4 changes: 4 additions & 0 deletions projects/packages/blaze/changelog/exclude-dev-vendor-files
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
1 change: 1 addition & 0 deletions projects/packages/classic-theme-helper/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ changelog/** production-exclude
.phpcs.dir.xml production-exclude
tests/** production-exclude
.phpcsignore production-exclude
webpack.config.js production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
1 change: 1 addition & 0 deletions projects/packages/codesniffer/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
/tests/** production-exclude
/build-compat-rulesets.sh production-exclude
/check-docs.sh production-exclude
docs/** production-exclude
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break the doc link to https://github.com/Automattic/jetpack-codesniffer/tree/trunk/docs/Jetpack.Functions.JsonEncodeFlags.Recommendations.md from JsonEncodeFlagsSniff.

If we want to exclude the docs from vendor/ dirs, using export-ignore would be better here.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
2 changes: 2 additions & 0 deletions projects/packages/connection/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ webpack.config.js production-exclude
/dist/*.css.map production-exclude
/dist/*.js.map production-exclude
src/identity-crisis/_inc/*.scss production-exclude
babel.config.js production-exclude
.babelrc production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
3 changes: 3 additions & 0 deletions projects/packages/explat/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ global.d.ts production-exclude
tests/** production-exclude
.phpcsignore production-exclude
src/client/** production-exclude
webpack.config.js production-exclude
babel.config.js production-exclude
tsconfig.json production-exclude
4 changes: 4 additions & 0 deletions projects/packages/explat/changelog/exclude-dev-vendor-files
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
3 changes: 3 additions & 0 deletions projects/packages/external-connections/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ changelog/** production-exclude
tests/** production-exclude
.phpcsignore production-exclude
src/setting.js production-exclude
src/*.scss production-exclude
webpack.config.js production-exclude
babel.config.js production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
3 changes: 3 additions & 0 deletions projects/packages/external-media/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ src/shared/**/*.scss production-exclude
src/admin/*.js production-exclude
src/features/**/*.js production-exclude
src/shared/**/*.js production-exclude
src/**/*.ts production-exclude
webpack.config.js production-exclude
jest.config.js production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
8 changes: 8 additions & 0 deletions projects/packages/forms/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@ tools/** production-exclude
.phpcsignore production-exclude
/src/dashboard/**/*.js production-exclude
/src/dashboard/**/*.scss production-exclude
/src/dashboard/**/*.ts production-exclude
/src/dashboard/**/*.tsx production-exclude
/src/dashboard/**/*.jsx production-exclude
/routes/** production-exclude
docs/** production-exclude
/src/blocks/**/*.js production-exclude
/src/blocks/**/*.scss production-exclude
/src/blocks/**/*.ts production-exclude
/src/blocks/**/*.tsx production-exclude
/src/blocks/**/*.jsx production-exclude
tsconfig.json production-exclude
declarations.d.ts production-exclude
global.d.ts production-exclude
4 changes: 4 additions & 0 deletions projects/packages/forms/changelog/exclude-dev-vendor-files
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
9 changes: 8 additions & 1 deletion projects/packages/jetpack-mu-wpcom/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ changelog/** production-exclude
tests/** production-exclude
.phpcsignore production-exclude
bin/** production-exclude
src/**/**/*.scss production-exclude
src/**/**/*.scss production-exclude
src/**/*.ts production-exclude
src/**/*.tsx production-exclude
src/**/*.jsx production-exclude
babel.config.js production-exclude
tsconfig.json production-exclude
webpack.config.js production-exclude
webpack.config.modules.js production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
3 changes: 3 additions & 0 deletions projects/packages/my-jetpack/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ tests/** production-exclude
src/**/*.scss production-exclude
src/**/*.jsx production-exclude
global.d.ts production-exclude
webpack.config.js production-exclude
babel.config.js production-exclude
tsconfig.json production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
4 changes: 4 additions & 0 deletions projects/packages/newsletter/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ tsconfig.json production-exclude
global.d.ts production-exclude
src/**/*.scss production-exclude
src/**/*.tsx production-exclude
src/**/*.ts production-exclude
src/**/*.jsx production-exclude
.babelrc production-exclude
webpack.config.js production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
4 changes: 3 additions & 1 deletion projects/packages/paypal-payments/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ tests/** production-exclude
webpack.config.blocks.js production-exclude
babel.config.js production-exclude
/src/block/*.js production-exclude
/src/block/*.scss production-exclude
/src/block/*.scss production-exclude
/src/paypal-payment-buttons/*.scss production-exclude
jest.config.js production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
1 change: 1 addition & 0 deletions projects/packages/publicize/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ tests/** production-exclude
/package.json production-exclude
/postcss.config.js production-exclude
/webpack.config.js production-exclude
/tsconfig.json production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
5 changes: 5 additions & 0 deletions projects/packages/search/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ package.json export-ignore
/src/instant-search/**/*.js production-exclude
/src/instant-search/**/*.jsx production-exclude
/src/instant-search/**/*.scss production-exclude
/src/customizer/**/*.js production-exclude
/src/inline-search/**/*.js production-exclude
/src/inline-search/**/*.jsx production-exclude
/src/inline-search/**/*.scss production-exclude
/src/widgets/**/*.js production-exclude
4 changes: 4 additions & 0 deletions projects/packages/search/changelog/exclude-dev-vendor-files
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
3 changes: 3 additions & 0 deletions projects/packages/subscribers-dashboard/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ tests/** production-exclude
_inc/*.scss production-exclude
_inc/*.jsx production-exclude
_inc/*.tsx production-exclude
webpack.config.js production-exclude
.babelrc production-exclude
tsconfig.json production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
3 changes: 3 additions & 0 deletions projects/packages/woocommerce-analytics/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ changelog/** production-exclude
.phpcs.dir.xml production-exclude
tests/** production-exclude
.phpcsignore production-exclude
src/**/*.ts production-exclude
webpack.config.js production-exclude
tsconfig.json production-exclude

# Files needed in the production build.
build/** production-include
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
1 change: 1 addition & 0 deletions projects/packages/yoast-promo/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ changelog/** production-exclude
tests/** production-exclude
.phpcsignore production-exclude
src/js/** production-exclude
webpack.config.js production-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Exclude development files from production builds.
12 changes: 12 additions & 0 deletions tools/cli/skeletons/packages/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ changelog/** production-exclude
.phpcs.dir.xml production-exclude
tests/** production-exclude
.phpcsignore production-exclude
#
# Common build config files (uncomment as needed):
# webpack.config.js production-exclude
# babel.config.js production-exclude
# tsconfig.json production-exclude
# jest.config.js production-exclude
#
# Source files compiled during build (uncomment as needed):
# src/**/*.ts production-exclude
# src/**/*.tsx production-exclude
# src/**/*.jsx production-exclude
# src/**/*.scss production-exclude
Loading