diff options
author | 2018-06-13 16:43:42 +0100 | |
---|---|---|
committer | 2018-06-13 16:43:42 +0100 | |
commit | be2bbe35cf49763ad0258c005f3cbdddd7a21d75 (patch) | |
tree | 962d5e52f4bb57c397c068ae6a11b57952cfc459 /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-- | Pipfile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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" |