8000 add .gitpod.yml code comments · torchbox/django-pattern-library@df40387 · GitHub
[go: up one dir, main page]

Skip to content

Commit df40387

Browse files
nickmoretonthibaudcolas
authored andcommitted
add .gitpod.yml code comments
1 parent 84411b3 commit df40387

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.gitpod.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
1+
# Commands to start on workspace startup
2+
13
ports:
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

59
tasks:
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=.

0 commit comments

Comments
 (0)
0