FEAT: build static files with npm (sass, concat, minify), remove build step from python, include minified bundle files (#1601)
This commit is contained in:
parent
bef2d4a72e
commit
1b84ebf13d
16 changed files with 2064 additions and 850 deletions
28
Makefile
28
Makefile
|
|
@ -73,20 +73,16 @@ bak:
|
|||
# LNBITS_DATABASE_URL=postgres://postgres:postgres@0.0.0.0:5432/postgres
|
||||
#
|
||||
|
||||
updatevendor:
|
||||
sass:
|
||||
npm run sass
|
||||
|
||||
bundle:
|
||||
npm install
|
||||
cp ./node_modules/moment/moment.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/underscore/underscore.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/axios/dist/axios.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/vue/dist/vue.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/vue-router/dist/vue-router.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.browser.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/@chenfengyuan/vue-qrcode/dist/vue-qrcode.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/vuex/dist/vuex.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/quasar/dist/quasar.ie.polyfills.umd.min.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/quasar/dist/quasar.umd.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/chart.js/dist/Chart.bundle.js ./lnbits/static/vendor/
|
||||
cp ./node_modules/quasar/dist/quasar.css ./lnbits/static/vendor/
|
||||
cp ./node_modules/chart.js/dist/Chart.css ./lnbits/static/vendor/
|
||||
cp ./node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.css ./lnbits/static/vendor/
|
||||
cp ./node_modules/vue-i18n/dist/vue-i18n.js ./lnbits/static/vendor/
|
||||
npm run sass
|
||||
npm run vendor_copy
|
||||
npm run vendor_json
|
||||
poetry run ./node_modules/.bin/prettier -w ./lnbits/static/vendor.json
|
||||
npm run vendor_bundle_css
|
||||
npm run vendor_minify_css
|
||||
npm run vendor_bundle_js
|
||||
npm run vendor_minify_js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue