-
Notifications
You must be signed in to change notification settings - Fork 32
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
Tools: Update packages, use wp-scripts for build process #562
Changes from 5 commits
d1d1780
a9c4f13
8d7f7a5
5a4d7c1
9ca0663
c79c8af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14 | ||
20 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,28 +12,27 @@ | |
"url": "https://github.com/WordPress/wporg-mu-plugins/issues" | ||
}, | ||
"devDependencies": { | ||
"@wordpress/browserslist-config": "4.1.2", | ||
"@wordpress/env": "5.5.0", | ||
"@wordpress/scripts": "23.5.0", | ||
"@wordpress/browserslist-config": "5.33.0", | ||
"@wordpress/env": "9.2.0", | ||
"@wordpress/scripts": "27.1.0", | ||
"chalk": "4.1.2", | ||
"cross-spawn": "7.0.3", | ||
"cssnano": "5.1.11", | ||
"node-watch": "^0.7.3", | ||
"postcss": "8.4.14", | ||
"postcss-cli": "9.1.0", | ||
"postcss-import": "14.1.0", | ||
"postcss-preset-env": "7.7.1", | ||
"cssnano": "6.0.3", | ||
"node-watch": "0.7.4", | ||
"postcss": "8.4.33", | ||
"postcss-cli": "11.0.0", | ||
"postcss-import": "16.0.0", | ||
"postcss-preset-env": "9.3.0", | ||
"resolve-bin": "1.0.1", | ||
"rtlcss": "3.5.0", | ||
"url-loader": "^3.0.0", | ||
"webpack": "5.47.1", | ||
"webpack-cli": "4.9.1" | ||
"rtlcss": "4.1.1", | ||
"url-loader": "4.1.1" | ||
Comment on lines
+15
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How did you arrive at this set of dependencies? The changes seem more extensive than expected. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I used |
||
}, | ||
"browserslist": [ | ||
"extends @wordpress/browserslist-config" | ||
], | ||
"scripts": { | ||
"build": "NODE_ENV=production ./bin/build.js", | ||
"build:dev": "NODE_ENV=development ./bin/build.js", | ||
"font-subset": "./bin/font-subset.js", | ||
"prestart": "./bin/build.js", | ||
"start": "NODE_ENV=development ./bin/watch.js", | ||
|
@@ -42,7 +41,7 @@ | |
"setup:tools": "yarn install && composer install && TEXTDOMAIN=wporg composer exec update-configs", | ||
"update:tools": "composer update && TEXTDOMAIN=wporg composer exec update-configs", | ||
"wp-env": "wp-env", | ||
"test:php": "wp-env run phpunit 'phpunit -c /var/www/html/phpunit.xml.dist --verbose'" | ||
"test:php": "wp-env run tests-cli --env-cwd=/var/www/html/ phpunit" | ||
}, | ||
"rtlcssConfig": {}, | ||
"stylelint": { | ||
|
This file was deleted.
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.
So will we eventually phase out all PostCSS in favor of SCSS? I'm not sure if the discussion here is relevant because it seems to be discussing the opposite idea.
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.
Oh, thanks for pointing me to that conversation, it happened while I was away :)
Honestly I was remembering this recent bug where the CSS was not building properly because it was using Sass formatting. I didn't realize there had been a more recent discussion than the 2022 issue.
… turns out though, wp-scripts does support
*.pcss
, so we could remove this without forcing a Sass decision. I'll update the comment here and try that in a new PR.