-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Masterbar: Copy module code to package #37342
Merged
+13,521
−39
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
ece311c
Masterbar: Copy module code to package
fgiannar 214897c
changelog
fgiannar 3cd3862
Remove minified css file
fgiannar 7d2fecf
Masterbar package: Build assets and use production files
fgiannar 2668d60
Maserbar: Update text-domain to match package
fgiannar 2000512
Masterbar: Make linter happy
fgiannar 23c831d
Masterbar: Update path for enqueueing inline-help.css style
fgiannar 75268b5
Masterbar: PHP codesniffer hotfix for unit test class
fgiannar 5e4fdcf
Masterbar: Add eslint exception for strict more usage
fgiannar cae099f
Add eslint-disable rules related to JSDoc requires
fgiannar 513f7a5
Add more eslint-disable rules related to JSDoc requires
fgiannar e75fb21
Fun with phan: From 270 to 27 issues
fgiannar 214e812
Merge branch 'trunk' into update/copy-masterbar-code-to-pkg
fgiannar efe07f6
Update pnpm lock
fgiannar 3b5dac2
More fun with phan
fgiannar 4b63fb7
Update phan config with Jetpack-the-plugin dependencies
fgiannar fa17861
More phan fixes, less fun
fgiannar 69977ad
Merge branch 'trunk' into update/copy-masterbar-code-to-pkg
fgiannar bce1261
Remove redundant phan-var declarations
fgiannar fe0be3b
Masterbar: Fix phan undeclared class \Automattic\Jetpack\Scan\Admin_B…
fgiannar 6bd7432
Masterbar: Add compat package dependency
fgiannar 5319d47
Ensure all package unit tests pass
fgiannar 42ba4eb
Add phan suppress line rule for JETPACK__GLOTPRESS_LOCALES_PATH
fgiannar 30e2dd2
Masterbar: Add phan baseline file
fgiannar e763f45
Msaterbar: Rename build folder to dist
fgiannar 375e0eb
Merge branch 'trunk' into update/copy-masterbar-code-to-pkg
fgiannar c948551
Update projects/packages/masterbar/src/admin-menu/class-base-admin-me…
fgiannar 9cc3290
Update projects/packages/masterbar/src/admin-menu/class-base-admin-me…
fgiannar 922c783
Update projects/packages/masterbar/src/inline-help/class-inline-help.php
fgiannar 85e7563
Merge branch 'update/copy-masterbar-code-to-pkg' of github.com:Automa…
fgiannar 0fc9c9e
Masterbar: Update webpack config and load assets via assets package
fgiannar 6c7b583
Masterbar: Use patchwork-redefine-exit package
fgiannar 05692db
Phpunit: Add missing PHPUnitPolyfills for PHP7 compatibility
fgiannar e299455
Masterbar: Add unit tests for loading assets
fgiannar 86779c0
PHP Unit: Keep using outdated setMethods while PHP7.0 and 7.1 is supp…
fgiannar e5c0bc0
Update .gitattributes with production-include
fgiannar 0ecda4f
Masterbar: More unit tests
fgiannar 0f34f63
Masterbar: Add phan suppression in unit test
fgiannar c5930b2
Masterbar: Ensure needed files get built before the tests are run
fgiannar c6bb434
Masterbar: Add 'glob' in package's devDependecies
fgiannar 639a282
Update pnpm-lock file
fgiannar d117431
Masterbar: Fix all package annotations
fgiannar e79ce88
Masterbar: Fix more package annotations
fgiannar a278452
Masterbar: Add missing namespace for WPCOM_Email_Subscription_Checker
fgiannar de2ac65
Masterbar: Fix Fatals in Main related to invalid file paths
fgiannar a2b5a0f
Masterbar: Updates based on latest Masterbar module changes
fgiannar 26ca5c6
Masterbar package: Backport Masterbar module updates
fgiannar 4c07da2
Merge branch 'trunk' into update/copy-masterbar-code-to-pkg
fgiannar 2319eaf
Masterbar: Backport phan related Masterbar module updates
fgiannar 2279a8f
Update projects/packages/masterbar/tools/webpack.config.js
fgiannar f93b3aa
Update projects/packages/masterbar/tools/webpack.config.js
fgiannar 666011a
Update projects/packages/masterbar/tools/webpack.config.js
fgiannar 8265d6c
Masterbar: Update .gitattributes
fgiannar dce6fde
Masterbar: Update README
fgiannar 958132a
Merge branch 'trunk' into update/copy-masterbar-code-to-pkg
fgiannar 9020d8d
Merge branch 'trunk' into update/copy-masterbar-code-to-pkg
fgiannar 61029c4
Merge remote-tracking branch 'origin/trunk' into update/copy-masterba…
anomiex File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
vendor/ | ||
node_modules/ | ||
wordpress/ | ||
|
||
dist/ | ||
.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* This is an automatically generated baseline for Phan issues. | ||
* When Phan is invoked with --load-baseline=path/to/baseline.php, | ||
* The pre-existing issues listed in this file won't be emitted. | ||
* | ||
* This file can be updated by invoking Phan with --save-baseline=path/to/baseline.php | ||
* (can be combined with --load-baseline) | ||
*/ | ||
return [ | ||
// # Issue statistics: | ||
// PhanNoopNew : 5 occurrences | ||
// PhanPluginUnreachableCode : 1 occurrence | ||
// PhanTypeInstantiateAbstract : 1 occurrence | ||
// PhanTypeMismatchArgument : 1 occurrence | ||
// PhanTypeSuspiciousEcho : 1 occurrence | ||
// PhanUndeclaredClassReference : 1 occurrence | ||
|
||
// Currently, file_suppressions and directory_suppressions are the only supported suppressions | ||
'file_suppressions' => [ | ||
'src/admin-menu/class-wpcom-admin-menu.php' => ['PhanTypeMismatchArgument'], | ||
'src/class-main.php' => ['PhanNoopNew'], | ||
'src/profile-edit/bootstrap.php' => ['PhanNoopNew'], | ||
'tests/php/test-class-admin-color-schemes.php' => ['PhanNoopNew'], | ||
], | ||
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed. | ||
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
projects/packages/masterbar/changelog/update-copy-masterbar-code-to-pkg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: changed | ||
|
||
Masterbar: Copy module code to package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some additional stuff you might
production-exclude
here:tools/**
src/**/*.scss
andsrc/**/*.css
andsrc/**/*.js
, since they're all compiled into JS indist/
now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done via 8265d6c