-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitpod.yml
139 lines (135 loc) · 3.82 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
workspaceLocation: empirica/main.code-workspace # Relative to /workspace dir
additionalRepositories:
- url: https://github.com/empiricaly/tajriba.git
# checkoutLocation is relative to /workspaces
checkoutLocation: tajriba
tasks:
- name: Shell
init: |
go install github.com/cortesi/modd/cmd/modd@latest
go install github.com/go-bindata/go-bindata/go-bindata@latest
go install github.com/abice/go-enum@latest
go install github.com/onsi/ginkgo/v2/ginkgo@latest
curl https://get.volta.sh | bash
volta install node
sudo apt update
sudo apt install rsync expect -y
gp sync-done modd
git config --global gpg.format ssh
git config --global user.signingkey "$SSH_SIGNING_KEY"
git config --global commit.gpgsign true
command: bash
- name: Get Go deps
init: |
go mod download
go work init . ../tajriba
gp sync-done deps-empirica
- name: Get Go deps (tajriba)
before: cd ../tajriba
init: |
go mod download
gp sync-done deps-tajriba
- name: Link tajriba npm
before: cd ../tajriba/lib/tajriba
init: |
npm install
npm link
gp sync-done npm-link-tajriba
- name: Link core npm
before: cd lib/@empirica/core
init: |
gp sync-await npm-link-tajriba
npm install
npm link @empirica/tajriba
npm link
gp sync-done npm-link-empirica-core
- name: Link callbacks
before: cd internal/templates/source/callbacks
init: |
gp sync-await npm-link-empirica-core
npm install
npm link @empirica/core
gp sync-done npm-link-callbacks
- name: Link react
before: cd internal/templates/source/react
init: |
gp sync-await npm-link-empirica-core
npm install
npm link @empirica/core
gp sync-done npm-link-react
- name: Build admin ui
before: cd lib/admin-ui
init: |
gp sync-await npm-link-empirica-core
gp sync-await npm-link-tajriba
npm install
npm run build
gp sync-done admin-ui-build
command: npm run dev
- name: Tajriba
before: cd ../tajriba
init: |
gp sync-await modd
gp sync-await deps-tajriba
command: bash
- name: Tajriba.js
before: cd ../tajriba/lib/tajriba
init: |
gp sync-await modd
gp sync-await npm-link-tajriba
command: bash
- name: Empirica.js modd
before: cd lib/@empirica/core
init: |
gp sync-await modd
gp sync-await npm-link-empirica-core
command: modd
- name: Empirica modd
init: |
gp sync-await modd
gp sync-await deps-empirica
gp sync-await npm-link-callbacks
gp sync-await npm-link-react
gp sync-await admin-ui-build
command: modd
ports:
- name: Web App
description: The Empirica dev web server
port: 3000
onOpen: ignore
- name: Vite Server
description: The Vite Server for hot reload
port: 8844
onOpen: ignore
vscode:
extensions:
- "aaron-bond.better-comments"
- "akmarnafi.comment-headers"
- "axelrindle.duplicate-file"
- "bradlc.vscode-tailwindcss"
- "ChristophLipp.shruggoff"
- "eamodio.gitlens"
- "eriklynd.json-tools"
- "esbenp.prettier-vscode"
- "formulahendry.auto-rename-tag"
- "GitHub.codespaces"
- "GitHub.copilot"
- "GitHub.remotehub"
- "github.vscode-github-actions"
- "GitHub.vscode-pull-request-github"
- "golang.go"
- "jobe451.lorem-whatever"
- "kumar-harsh.graphql-for-vscode"
- "marclipovsky.string-manipulation"
- "mitchdenny.ecdc"
- "mohsen1.prettify-json"
- "mrmlnc.vscode-duplicate"
- "ms-azuretools.vscode-docker"
- "oderwat.indent-rainbow"
- "ow.vscode-subword-navigation"
- "stackbreak.comment-divider"
- "stkb.rewrap"
- "svelte.svelte-vscode"
- "Tyriar.lorem-ipsum"
- "wmaurer.change-case"
- "tamasfe.even-better-toml"