|
27 | 27 | ("up", "Run all SIO2 containers", "up -d"), |
28 | 28 | ("down", "Stop and remove all SIO2 containers", "down"), |
29 | 29 | ("wipe", "Stop all SIO2 containers and DESTROY all data", "down -v", True), |
30 | | - ("run", "Run server", "{exec} web python3 manage.py runserver 0.0.0.0:8000"), |
| 30 | + ("run", "Run django server and webpack", |
| 31 | + '{exec} web conc -n js,py -c yellow,green -k "npm --prefix ../oioioi run -s watch" "python3 manage.py runserver 0.0.0.0:8000"'), |
31 | 32 | ("stop", "Stop all SIO2 containers", "stop"), |
32 | 33 | ("bash", "Open command prompt on web container.", "{exec} web bash"), |
33 | 34 | ("exec", "Run a command in the web container.", "{exec} web {extra_args}"), |
|
42 | 43 | "{exec} 'web' ../oioioi/test.sh oioioi/problems --cov-report term --cov-report xml:coverage.xml --cov=oioioi {extra_args}"), |
43 | 44 | ("cypress-apply-settings", "Apply settings for CyPress.", |
44 | 45 | '{exec} web bash -c "echo CAPTCHA_TEST_MODE=True >> settings.py"'), |
| 46 | + ("npm", "Run npm command.", "{exec} web npm --prefix ../oioioi {extra_args}"), |
| 47 | + ("eslint", "Run javascript linter.", "{exec} web npm --prefix ../oioioi run lint"), |
45 | 48 | ] |
46 | 49 |
|
47 | 50 | longest_command_arg = max([len(command[0]) for command in RAW_COMMANDS]) |
|
0 commit comments