Skip to content

Commit

Permalink
Add script to run all bundler integrations at once
Browse files Browse the repository at this point in the history
Called `build:all`, not `build` so it doesn't get run by `npm run build --workspaces` on CI (in `.github/workflows/actions/build/action.yml`). If called `build` it would run before `govuk-frontend` gets build and the build would fail.
  • Loading branch information
romaricpascal committed Apr 30, 2024
1 parent 69f3a0b commit 1344486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/bundler-integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"rollup": "rollup -c rollup.config.mjs src/index.mjs -o dist/rollup/main.js",
"webpack": "webpack ./src/index.mjs --mode production -o dist/webpack",
"vite": "vite build",
"clean": "del-cli dist"
"clean": "del-cli dist",
"build:all": "concurrently \"npm run rollup\" \"npm run webpack\" \"npm run vite\" --names \"rollup,webpack,vite\" --prefix-colors \"red.dim,blue.dim,yellow.dim\""
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"concurrently": "^8.2.2",
"del-cli": "^5.1.0",
"govuk-frontend": "*",
"rollup": "^4.17.2",
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

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

0 comments on commit 1344486

Please sign in to comment.