mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-10 00:09:22 +01:00
fix make checkbundle which should not bump the serviceworker version (#2184)
This commit is contained in:
parent
97f8a4ab38
commit
a15af87f9b
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -86,7 +86,7 @@ bak:
|
||||||
sass:
|
sass:
|
||||||
npm run sass
|
npm run sass
|
||||||
|
|
||||||
bundle:
|
bundle_no_bump:
|
||||||
npm install
|
npm install
|
||||||
npm run sass
|
npm run sass
|
||||||
npm run vendor_copy
|
npm run vendor_copy
|
||||||
|
@ -96,6 +96,9 @@ bundle:
|
||||||
npm run vendor_minify_css
|
npm run vendor_minify_css
|
||||||
npm run vendor_bundle_js
|
npm run vendor_bundle_js
|
||||||
npm run vendor_minify_js
|
npm run vendor_minify_js
|
||||||
|
|
||||||
|
bundle:
|
||||||
|
make bundle_no_bump
|
||||||
# increment serviceworker version
|
# increment serviceworker version
|
||||||
awk '/CACHE_VERSION =/ {sub(/[0-9]+$$/, $$NF+1)} 1' lnbits/static/js/service-worker.js > lnbits/static/js/service-worker.js.new
|
awk '/CACHE_VERSION =/ {sub(/[0-9]+$$/, $$NF+1)} 1' lnbits/static/js/service-worker.js > lnbits/static/js/service-worker.js.new
|
||||||
mv lnbits/static/js/service-worker.js.new lnbits/static/js/service-worker.js
|
mv lnbits/static/js/service-worker.js.new lnbits/static/js/service-worker.js
|
||||||
|
@ -103,7 +106,7 @@ bundle:
|
||||||
checkbundle:
|
checkbundle:
|
||||||
cp lnbits/static/bundle.min.js lnbits/static/bundle.min.js.old
|
cp lnbits/static/bundle.min.js lnbits/static/bundle.min.js.old
|
||||||
cp lnbits/static/bundle.min.css lnbits/static/bundle.min.css.old
|
cp lnbits/static/bundle.min.css lnbits/static/bundle.min.css.old
|
||||||
make bundle
|
make bundle_no_bump
|
||||||
diff -q lnbits/static/bundle.min.js lnbits/static/bundle.min.js.old || exit 1
|
diff -q lnbits/static/bundle.min.js lnbits/static/bundle.min.js.old || exit 1
|
||||||
diff -q lnbits/static/bundle.min.css lnbits/static/bundle.min.css.old || exit 1
|
diff -q lnbits/static/bundle.min.css lnbits/static/bundle.min.css.old || exit 1
|
||||||
@echo "Bundle is OK"
|
@echo "Bundle is OK"
|
||||||
|
|
Loading…
Add table
Reference in a new issue