1
Fork 0

move build stuff to build script

This commit is contained in:
Jake Howard 2016-11-24 15:46:26 +00:00
parent 1cee2677d3
commit 3b392cd54f
3 changed files with 7 additions and 4 deletions

2
.nvmrc
View file

@ -1 +1 @@
5.10.1
6.9.1

View file

@ -3,10 +3,9 @@
"version": "5.0.0",
"description": " Source code for TheOrangeOne.net",
"scripts": {
"create-build-dirs": "mkdir -p static/build/js/lib static/build/fonts static/build/css static/build/img",
"build-js": "./scripts/build-js.sh",
"build-scss": "./scripts/build-scss.sh",
"build": "npm run create-build-dirs && npm run build-scss && npm run build-js"
"build": "npm run build-scss && npm run build-js"
},
"repository": {
"type": "git",

View file

@ -26,6 +26,10 @@ export PATH=env/bin:${PATH}
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/
npm run build
honcho --app-root environment --env env run env/bin/python manage.py collectstatic --noinput
honcho --app-root environment --env env run env/bin/python3 manage.py collectstatic --noinput