2023-06-02 08:33:37 +00:00
|
|
|
# Dev Setup
|
|
|
|
|
|
2023-06-02 10:23:41 +00:00
|
|
|
Gitpod/Codespaces note: Use at least 16GB RAM.
|
|
|
|
|
|
2023-06-02 08:33:37 +00:00
|
|
|
```
|
|
|
|
|
git clone ...
|
|
|
|
|
cd link-stack
|
|
|
|
|
cd docker/zammad
|
|
|
|
|
make build
|
|
|
|
|
cd ../../
|
|
|
|
|
npm install
|
|
|
|
|
turbo build
|
|
|
|
|
turbo dev
|
|
|
|
|
```
|
|
|
|
|
|
2023-06-02 10:23:41 +00:00
|
|
|
Prepare env secrets
|
|
|
|
|
|
|
|
|
|
* Create `link-stack/apps/link/.env.local` from Bitwarden `.env.local for link-stack/apps/link`
|
|
|
|
|
* Create `link-stack/apps/metamigo-frontend/.metamigo.local.json` from Bitwarden `.metamigo.local.json for link-stack/apps/metamigo/frontend`
|
|
|
|
|
* Create `link-stack/.env` from Bitwarden `root .env for link-stack`
|
|
|
|
|
|
2023-03-10 10:54:14 +00:00
|
|
|
# Notes
|
|
|
|
|
|
|
|
|
|
* Turbo https://turbo.build/repo
|
|
|
|
|
* Running dev in certain workspaces https://turbo.build/repo/docs/handbook/dev#running-dev-only-in-certain-workspaces
|
|
|
|
|
* Linting https://turbo.build/repo/docs/handbook/linting
|
|
|
|
|
* Internal packages https://turbo.build/repo/docs/handbook/sharing-code/internal-packages
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
npm i
|
|
|
|
|
npm ls --production --depth 1 -json | jq -r '.dependencies[].resolved'
|
|
|
|
|
npm install --workspace=metamigo-common
|
|
|
|
|
```
|
|
|
|
|
|
2023-06-02 08:33:37 +00:00
|
|
|
### Run a task in a specific project
|
2023-03-10 10:54:14 +00:00
|
|
|
|
2023-06-02 08:33:37 +00:00
|
|
|
```
|
|
|
|
|
turbo run build --filter metamigo-cli
|
|
|
|
|
```
|