Movebuild stuff to generic place
This commit is contained in:
parent
f4b72f22b8
commit
6e81d3dad3
3 changed files with 12 additions and 8 deletions
|
@ -3,9 +3,11 @@
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"description": " Source code for TheOrangeOne.net",
|
"description": " Source code for TheOrangeOne.net",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"postinstall": "npm run build",
|
||||||
"build-js": "./scripts/build-js.sh",
|
"build-js": "./scripts/build-js.sh",
|
||||||
"build-scss": "./scripts/build-scss.sh",
|
"build-scss": "./scripts/build-scss.sh",
|
||||||
"build": "npm run build-scss && npm run build-js"
|
"build-static": "./scripts/build-static.sh",
|
||||||
|
"build": "npm run build-static && npm run build-scss && npm run build-js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -27,11 +27,4 @@ pip install -r requirements.txt
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
mkdir -p static/build/js/lib static/build/fonts static/build/css static/build/img
|
|
||||||
cp -R node_modules/font-awesome/fonts static/build/
|
|
||||||
cp -R node_modules/bootstrap-sass/assets/fonts/* static/build/fonts
|
|
||||||
cp -R static/src/img static/build
|
|
||||||
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
honcho --app-root environment --env env run env/bin/python3 manage.py collectstatic --noinput
|
honcho --app-root environment --env env run env/bin/python3 manage.py collectstatic --noinput
|
||||||
|
|
9
scripts/build-static.sh
Executable file
9
scripts/build-static.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir -p static/build/js/lib static/build/fonts static/build/css static/build/img
|
||||||
|
cp -R node_modules/font-awesome/fonts static/build/
|
||||||
|
cp -R node_modules/bootstrap-sass/assets/fonts/* static/build/fonts
|
||||||
|
cp -R static/src/img static/build
|
||||||
|
|
Reference in a new issue