Skip to content

Commit

Permalink
build: update gitpod config (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
npaton committed Apr 2, 2023
1 parent 149fb10 commit c998970
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
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: Init
init: |
go install github.com/cortesi/modd/cmd/modd@latest
gp sync-done modd
- name: Get Go deps
init: |
go mod download
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 Go
init: |
gp sync-await deps-empirica
go work init ../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: Empirica modd
init: |
gp sync-await modd
gp sync-await deps-empirica
gp sync-await npm-link-callbacks
gp sync-await npm-link-react
command: modd
- name: Tajriba modd
before: cd ../tajriba
init: |
gp sync-await modd
gp sync-await deps-tajriba
command: modd
- name: Tajriba.js modd
before: cd ../tajriba/lib/tajriba
init: |
gp sync-await modd
gp sync-await npm-link-tajriba
command: modd
- name: Empirica.js modd
before: cd lib/@empirica/core
init: |
gp sync-await modd
gp sync-await npm-link-empirica-core
command: modd

ports:
- name: Web App
description: The Empirica dev web server
port: 3000
onOpen: open-browser
11 changes: 11 additions & 0 deletions main.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"folders": [
{
"path": "."
},
{
"path": "../tajriba"
}
],
"settings": {}
}

0 comments on commit c998970

Please sign in to comment.