Skip to content

Commit

Permalink
prep build 6/17
Browse files Browse the repository at this point in the history
  • Loading branch information
bph committed Jun 17, 2024
2 parents 9816f90 + 6633dc3 commit 687399e
Show file tree
Hide file tree
Showing 377 changed files with 2,858 additions and 3,004 deletions.
101 changes: 0 additions & 101 deletions .github/workflows/php-changes-detection.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/upload-release-to-plugin-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
return $?
}
# Only update trunk *if* the published release's version in Github is GREATER
# Only update trunk *if* the published release's version in GitHub is GREATER
# than the version currently published in the WP plugins repo. If not, then it
# will upload it as a new tag.
shouldUpdateTrunk=false
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ build
build-module
build-types
packages/block-serialization-spec-parser/parser.js
packages/e2e-tests/plugins
packages/react-native-editor/bundle
packages/url/src/test/fixtures
vendor
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6785.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6785

* https://github.com/WordPress/gutenberg/pull/62459
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6797.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6797

* https://github.com/WordPress/gutenberg/pull/62526
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6824.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6824

* https://github.com/WordPress/gutenberg/pull/62550
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6825.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6825

* https://github.com/WordPress/gutenberg/pull/62552
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6827.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6827

* https://github.com/WordPress/gutenberg/pull/62465
4 changes: 4 additions & 0 deletions backport-changelog/6.6/6837.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6837

* https://github.com/WordPress/gutenberg/pull/62529
* https://github.com/WordPress/gutenberg/pull/62610
3 changes: 3 additions & 0 deletions backport-changelog/6.7/6750.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6750

* https://github.com/WordPress/gutenberg/pull/62357
2 changes: 1 addition & 1 deletion bin/cherry-pick.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function getCurrentBranch() {
*/
async function reportGhUnavailable() {
console.log(
'Github CLI is not setup. This script will not be able to automatically'
'GitHub CLI is not setup. This script will not be able to automatically'
);
console.log(
'comment on the processed PRs and remove the backport label from them.'
Expand Down
19 changes: 12 additions & 7 deletions bin/packages/build-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const postcss = require( 'postcss' );
*/
const getBabelConfig = require( './get-babel-config' );

const isDev = process.env.NODE_ENV === 'development';

/**
* Path to packages directory.
*
Expand All @@ -27,10 +29,12 @@ const PACKAGES_DIR = path
*
* @type {Object}
*/
const JS_ENVIRONMENTS = {
main: 'build',
module: 'build-module',
};
const JS_ENVIRONMENTS = isDev
? { module: 'build-module' }
: {
main: 'build',
module: 'build-module',
};

/**
* Promisified fs.readFile.
Expand Down Expand Up @@ -122,9 +126,10 @@ async function buildCSS( file ) {
data: ''.concat( '@use "sass:math";', importLists, contents ),
} );

const result = await postcss(
require( '@wordpress/postcss-plugins-preset' )
).process( builtSass.css, {
const result = await postcss( [
require( 'postcss-local-keyframes' ),
...require( '@wordpress/postcss-plugins-preset' ),
] ).process( builtSass.css, {
from: 'src/app.css',
to: 'dest/app.css',
} );
Expand Down
2 changes: 1 addition & 1 deletion bin/packages/check-build-type-declaration-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function getDecFile( packagePath ) {
async function typecheckDeclarations( file ) {
return new Promise( ( resolve, reject ) => {
exec(
`npx tsc --target esnext --moduleResolution node --noEmit "${ file }"`,
`npx tsc --target esnext --moduleResolution node --noEmit --skipLibCheck "${ file }"`,
( error, stdout, stderr ) => {
if ( error ) {
reject( { file, error, stderr, stdout } );
Expand Down
6 changes: 3 additions & 3 deletions bin/plugin/commands/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,11 @@ function getEntry( issue ) {

/**
* Builds a formatted string of the Issue/PR title with a link
* to the Github URL for that item.
* to the GitHub URL for that item.
*
* @param {string} title the title of the Issue/PR.
* @param {number} number the ID/number of the Issue/PR.
* @param {string} url the URL of the Github Issue/PR.
* @param {string} url the URL of the GitHub Issue/PR.
* @return {string} the formatted item
*/
function getFormattedItemDescription( title, number, url ) {
Expand Down Expand Up @@ -856,7 +856,7 @@ function sortFeatureGroups( featureGroups ) {
}

/**
* Returns a list of PRs created by first time contributors based on the Github
* Returns a list of PRs created by first time contributors based on the GitHub
* label associated with the PR. Also filters out any "bots".
*
* @param {IssuesListForRepoResponseItem[]} pullRequests List of pull requests.
Expand Down
2 changes: 1 addition & 1 deletion bin/plugin/commands/test/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import _pullRequests from './fixtures/pull-requests.json';
import botPullRequestFixture from './fixtures/bot-pull-requests.json';

/**
* pull-requests.json is a static snapshot of real data from the Github API.
* pull-requests.json is a static snapshot of real data from the GitHub API.
* We merge this with dummy fixture data for a "bot" pull request so as to
* ensure future updates to the pull-requests.json doesn't reduce test coverage
* of filtering out of bot PRs.
Expand Down
Loading

0 comments on commit 687399e

Please sign in to comment.