aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
commitbe2bbe35cf49763ad0258c005f3cbdddd7a21d75 (patch)
tree962d5e52f4bb57c397c068ae6a11b57952cfc459 /Pipfile
parent[DB] Attempt reconnection if current connection was lost (diff)
Compile as much JS with Gulp as possible
This will concatenate ALL of our JS, and minify it - thus leaving us with a single file to be loaded. There's a few libraries we can't do this with, unfortunately - these are now added in fouc.js: * Ace Editor * Flatpickr * Font-Awesome
Diffstat (limited to 'Pipfile')
-rw-r--r--Pipfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Pipfile b/Pipfile
index eab98f08..b74b26bd 100644
--- a/Pipfile
+++ b/Pipfile
@@ -41,17 +41,23 @@ python_version = "3.6"
[scripts]
build = "docker build -t pythondiscord/site:latest -f docker/Dockerfile ."
+buildci = "docker build -t pythondiscord/site-ci:latest -f docker/ci.Dockerfile ."
buildbase = "docker build -t pythondiscord/site-base:latest -f docker/Dockerfile.base ."
+
+buildjs = "gulp"
buildscss = "python scss.py scss/pysite:scss/pysite/style.scss:static/css/style.css scss/uikit:scss/uikit/uikit_blurple.scss:static/css/uikit_blurple.css"
+
clean = "rm -rf __pycache__ htmlcov .coverage .pytest_cache"
fixjs = "eslint static/js --fix"
start = "gunicorn -w 12 -b 0.0.0.0:10012 -c gunicorn_config.py --log-level info -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker app:app"
+
lint = "python -m flake8"
-lintjs = "eslint static/js"
+lintjs = "eslint js/src"
lintscss = "scss-lint scss/pysite"
+
push = "docker push pythondiscord/site:latest"
pushbase = "docker push pythondiscord/site-base:latest"
-buildci = "docker build -t pythondiscord/site-ci:latest -f docker/ci.Dockerfile ."
pushci = "docker push pythondiscord/site-ci:latest"
+
rundev = "python app.py"
test = "py.test tests --cov pysite --cov-report term-missing -v"