File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ # Commands to start on workspace startup
2+
13ports :
4+ # when port 8000 becomes available open a browser preview
5+ # of the running django pattern library instance
26 - port : 8000
37 onOpen : open-preview
48
59tasks :
10+ # initialise and install the python part of the app by installing poetry
11+ # and the python dependencies
612 - init : |
713 clear
814 pip install poetry
915 poetry install
1016 gp sync-done python
17+ # Start the server for testing
1118 command: poetry run django-admin runserver --settings=tests.settings.dev --pythonpath=.
1219 name: Runserver
1320
21+ # install the node part of the app by installing the required
22+ # node version and npm dependencies
1423 - init : |
1524 clear
1625 nvm install
1726 npm install
27+ # Build the assets
1828 command: npm run build
1929 name: Node
2030 openMode: split-right
2131
32+ # when the python part of the app is ready...
2233 - init : |
2334 clear
2435 echo "Waiting for python..."
2536 gp sync-await python
37+ # run the tests
2638 command: |
2739 poetry run ./runtests.py
2840 poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=.
You can’t perform that action at this time.
0 commit comments