link-stack/README.md

43 lines
1.2 KiB
Markdown
Raw Normal View History

2023-06-02 08:33:37 +00:00
# Dev Setup
2023-06-02 10:38:45 +00:00
> NOTE: When using Gitpod/Codespaces, use at least 16GB RAM
2023-06-02 10:23:41 +00:00
2023-06-02 10:38:45 +00:00
Local dev with docker-compose
2023-06-02 08:33:37 +00:00
* Create `link-stack/.env` from Bitwarden `.env for root of link-stack`
2023-06-02 10:38:45 +00:00
* Run local dev with docker-compose:
```
git clone ...
cd link-stack
make start-dev
```
Or for local dev of a single app
2023-06-02 10:23:41 +00:00
* 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`
2023-06-02 10:38:45 +00:00
* Build locally for development:
```
npm install
turbo --concurrency 30 build
turbo --concurrency 30 dev
```
2023-06-02 10:23:41 +00:00
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
```