move build stuff to build script
This commit is contained in:
parent
1cee2677d3
commit
3b392cd54f
3 changed files with 7 additions and 4 deletions
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
5.10.1
|
||||
6.9.1
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue