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
+
1
3
ports :
4
+ # when port 8000 becomes available open a browser preview
5
+ # of the running django pattern library instance
2
6
- port : 8000
3
7
onOpen : open-preview
4
8
5
9
tasks :
10
+ # initialise and install the python part of the app by installing poetry
11
+ # and the python dependencies
6
12
- init : |
7
13
clear
8
14
pip install poetry
9
15
poetry install
10
16
gp sync-done python
17
+ # Start the server for testing
11
18
command: poetry run django-admin runserver --settings=tests.settings.dev --pythonpath=.
12
19
name: Runserver
13
20
21
+ # install the node part of the app by installing the required
22
+ # node version and npm dependencies
14
23
- init : |
15
24
clear
16
25
nvm install
17
26
npm install
27
+ # Build the assets
18
28
command: npm run build
19
29
name: Node
20
30
openMode: split-right
21
31
32
+ # when the python part of the app is ready...
22
33
- init : |
23
34
clear
24
35
echo "Waiting for python..."
25
36
gp sync-await python
37
+ # run the tests
26
38
command: |
27
39
poetry run ./runtests.py
28
40
poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=.
You can’t perform that action at this time.
0 commit comments