Turbo fixes. Run apps (web/docs) scoped instead of concurrently (#1887)

* Improving dx for running apps from turbo

* Assign a fixed port to serve docs

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Demian Caldelas 2022-02-17 12:37:35 -03:00 committed by GitHub
parent 2c51fd77a0
commit 2194b92fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 9 deletions

View File

@ -169,7 +169,7 @@ yarn dx
1. Run (in development mode)
```sh
yarn dev --scope=@calcom/web
yarn dev
```
#### Setting up your first user
@ -233,14 +233,14 @@ yarn workspace @calcom/web playwright-report
4. Start the server. In a development environment, just do:
```sh
yarn dev --scope=@calcom/web
yarn dev
```
For a production build, run for example:
```sh
yarn build --scope=@calcom/web
yarn start --scope=@calcom/web
yarn build
yarn start
```
5. Enjoy the new version.

View File

@ -4,8 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"dev": "next",
"start": "next start",
"dev": "PORT=4000 next",
"start": "PORT=4000 next start",
"build": "next build"
},
"author": "Cal.com, Inc.",

View File

@ -7,19 +7,22 @@
"packages/*"
],
"scripts": {
"build": "turbo run build",
"build": "turbo run build --scope=\"@calcom/web\" --include-dependencies",
"clean": "turbo run clean && rm -rf node_modules",
"db-deploy": "turbo run db-deploy",
"db-seed": "turbo run db-seed",
"deploy": "turbo run deploy",
"dev": "turbo run dev --parallel",
"dev": "turbo run dev --scope=\"@calcom/web\"",
"docs-dev": "turbo run dev --scope=\"@calcom/docs\"",
"docs-build": "turbo run dev --scope=\"@calcom/docs\" --include-dependencies",
"docs-start": "turbo run dev --scope=\"@calcom/docs\"",
"dx": "turbo run dx",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"heroku-postbuild": "turbo run @calcom/web#build",
"lint": "turbo run lint",
"pre-commit": "lint-staged",
"prepare": "husky install",
"start": "turbo run start",
"start": "turbo run start --scope=\"@calcom/web\"",
"test": "turbo run test",
"test-playwright": "yarn playwright test",
"test-e2e": "turbo run test-e2e",