1
Fork 0

Movebuild stuff to generic place

This commit is contained in:
Jake Howard 2016-12-19 22:41:40 +00:00
parent f4b72f22b8
commit 6e81d3dad3
3 changed files with 12 additions and 8 deletions

View file

@ -3,9 +3,11 @@
"version": "5.0.0",
"description": " Source code for TheOrangeOne.net",
"scripts": {
"postinstall": "npm run build",
"build-js": "./scripts/build-js.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": {
"type": "git",

View file

@ -27,11 +27,4 @@ pip install -r requirements.txt
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

9
scripts/build-static.sh Executable file
View 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