Bug 43091: Clean the OPAC Vue dist directory in js:clean
js:clean predates the OPAC islands build (bug 26355) and only removes the intranet and Cypress dist directories, so stale chunks survive in koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/ across rebuilds. - add the OPAC Vue dist directory to js:clean Test plan: 1. yarn js:build, then apply this patch series and yarn js:clean 2. ls koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/ => empty, no stale staff-only chunks remain 3. yarn js:build => only islands.esm.js and a patron-self-renewal chunk are emitted Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
8ebc1d0f2b
commit
fdebc68051
|
|
@ -57,7 +57,7 @@
|
||||||
"js:build:analyze": "rspack build --mode development --analyze",
|
"js:build:analyze": "rspack build --mode development --analyze",
|
||||||
"js:watch": "rspack build --mode development --watch",
|
"js:watch": "rspack build --mode development --watch",
|
||||||
"js:build:prod": "rspack build --mode production",
|
"js:build:prod": "rspack build --mode production",
|
||||||
"js:clean": "rm -rf koha-tmpl/intranet-tmpl/prog/js/vue/dist/* t/cypress/plugins/dist/*",
|
"js:clean": "rm -rf koha-tmpl/intranet-tmpl/prog/js/vue/dist/* koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/* t/cypress/plugins/dist/*",
|
||||||
"build": "yarn css:build && yarn js:build && yarn api:bundle",
|
"build": "yarn css:build && yarn js:build && yarn api:bundle",
|
||||||
"build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle",
|
"build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle",
|
||||||
"cypress": "cypress",
|
"cypress": "cypress",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue