link-stack/README.md
2023-06-02 10:38:45 +00:00

44 lines
No EOL
1.2 KiB
Markdown

# Dev Setup
> NOTE: When using Gitpod/Codespaces, use at least 16GB RAM
Local dev with docker-compose
* Create `link-stack/.env` from Bitwarden `root .env for link-stack`
* Run local dev with docker-compose:
```
git clone ...
cd link-stack
make start-dev
```
Or for local dev of a single app
* 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`
* Build locally for development:
```
make build
npm install
turbo --concurrency 30 build
turbo --concurrency 30 dev
```
# 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
```
### Run a task in a specific project
```
turbo run build --filter metamigo-cli
```