Skip to content
Snippets Groups Projects
Commit e4d76c30 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/main/build-copy-fix' into 'main'

Fix build issues where npm build command didn't properly copy in sh env

See merge request !240
parents 295dc891 89bcd4a3
Branches main
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
},
"scripts": {
"test": "jsonlint config/adopters.json",
"build": "rm -rf src/main/resources/META-INF/resources/* && cp -R static/assets src/main/resources/META-INF/resources/",
"build": "rm -rf src/main/resources/META-INF/resources/* && mkdir -p src/main/resources/META-INF/resources/assets && cp -R static/assets/. src/main/resources/META-INF/resources/assets/",
"postinstall": "npm run production && npm run minify_adopters",
"minify_adopters": "mkdir -p target/config && ./node_modules/json-minify/index.js config/adopters.json > target/config/adopters.json",
"production": "NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js && npm run adopters_json && npm run test",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment