Skip to content

Commit 0985bfd

Browse files
authored
Merge pull request #5556 from ampproject/enhancement/composer-remote-patches
Use patches from GitHub to patch PHP-CSS-Parser
2 parents 6922a6f + 2551ea8 commit 0985bfd

File tree

6 files changed

+34
-957
lines changed

6 files changed

+34
-957
lines changed

Gruntfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ module.exports = function( grunt ) {
2525
// ⚠️ Warning: These paths are passed straight to rm command in the shell, without any escaping.
2626
const productionVendorExcludedFilePatterns = [
2727
'composer.*',
28-
'patches',
2928
'lib',
3029
'vendor/*/*/.editorconfig',
3130
'vendor/*/*/.git',
@@ -164,7 +163,6 @@ module.exports = function( grunt ) {
164163
paths.push( 'assets/js/**/*.js' );
165164
paths.push( 'assets/js/**/*.asset.php' );
166165
paths.push( 'assets/css/*.css' );
167-
paths.push( 'patches/*.patch' );
168166

169167
if ( 'development' === process.env.NODE_ENV ) {
170168
paths.push( 'assets/js/**/*.js.map' );

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
},
5757
"patches": {
5858
"sabberworm/php-css-parser": {
59-
"Add additional validation for size unit <https://github.com/sabberworm/PHP-CSS-Parser/pull/193>": "patches/php-css-parser-pull-193.patch",
60-
"Validate name-start code points for identifier <https://github.com/sabberworm/PHP-CSS-Parser/pull/185>": "patches/php-css-parser-pull-185.patch",
61-
"Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "patches/php-css-parser-commit-10a2501.patch"
59+
"Add additional validation for size unit <https://github.com/sabberworm/PHP-CSS-Parser/pull/193>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/3bc5ded67d77a52b81608cfc97f23b1bb0678e2f%5E...468da3441945e9c1bf402a3340b1d8326723f7d9.patch",
60+
"Validate name-start code points for identifier <https://github.com/sabberworm/PHP-CSS-Parser/pull/185>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/d42b64793f2edaffeb663c63e9de79069cdc0831%5E...113df5d55e94e21c6402021dfa959924941d4c29.patch",
61+
"Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "https://github.com/westonruter/PHP-CSS-Parser/compare/master...10a2501c119abafced3e4014aa3c0a3453a86f67.patch"
6262
}
6363
}
6464
},

composer.lock

Lines changed: 31 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/php-css-parser-commit-10a2501.patch

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)