Skip to content

Commit

Permalink
core(stack-packs): add NitroPack detection (#15314)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine authored Jul 27, 2023
1 parent 86a385b commit 100c54a
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 16 deletions.
4 changes: 4 additions & 0 deletions core/lib/stack-packs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const stackPacksToInclude = [
packId: 'drupal',
requiredStacks: ['js:drupal'],
},
{
packId: 'nitropack',
requiredStacks: ['js:nitropack'],
},
{
packId: 'amp',
requiredStacks: ['js:amp'],
Expand Down
20 changes: 20 additions & 0 deletions core/test/lib/stack-packs-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Array [
"joomla",
"magento",
"next.js",
"nitropack",
"nuxt",
"octobercms",
"react",
Expand Down Expand Up @@ -201,6 +202,25 @@ Array [
"unsized-images",
],
},
Object {
"id": "nitropack",
"keys": Array [
"unused-css-rules",
"modern-image-formats",
"offscreen-images",
"render-blocking-resources",
"unminified-css",
"unminified-javascript",
"unused-javascript",
"uses-long-cache-ttl",
"uses-optimized-images",
"uses-text-compression",
"uses-responsive-images",
"server-response-time",
"dom-size",
"font-display",
],
},
Object {
"id": "nuxt",
"keys": Array [
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@
"http-link-header": "^1.1.1",
"intl-messageformat": "^4.4.0",
"jpeg-js": "^0.4.4",
"js-library-detector": "^6.6.0",
"js-library-detector": "^6.7.0",
"lighthouse-logger": "^2.0.1",
"lighthouse-stack-packs": "1.11.0",
"lighthouse-stack-packs": "1.12.0",
"lodash": "^4.17.21",
"lookup-closest-locale": "6.2.0",
"metaviewport-parser": "0.3.0",
Expand Down
48 changes: 45 additions & 3 deletions shared/localization/locales/en-US.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 100c54a

Please sign in to comment.