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>pull/1881/head^2
parent
2c51fd77a0
commit
2194b92fdf
|
@ -169,7 +169,7 @@ yarn dx
|
||||||
1. Run (in development mode)
|
1. Run (in development mode)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yarn dev --scope=@calcom/web
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Setting up your first user
|
#### 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:
|
4. Start the server. In a development environment, just do:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yarn dev --scope=@calcom/web
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
For a production build, run for example:
|
For a production build, run for example:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yarn build --scope=@calcom/web
|
yarn build
|
||||||
yarn start --scope=@calcom/web
|
yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Enjoy the new version.
|
5. Enjoy the new version.
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next",
|
"dev": "PORT=4000 next",
|
||||||
"start": "next start",
|
"start": "PORT=4000 next start",
|
||||||
"build": "next build"
|
"build": "next build"
|
||||||
},
|
},
|
||||||
"author": "Cal.com, Inc.",
|
"author": "Cal.com, Inc.",
|
||||||
|
|
|
@ -7,19 +7,22 @@
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo run build",
|
"build": "turbo run build --scope=\"@calcom/web\" --include-dependencies",
|
||||||
"clean": "turbo run clean && rm -rf node_modules",
|
"clean": "turbo run clean && rm -rf node_modules",
|
||||||
"db-deploy": "turbo run db-deploy",
|
"db-deploy": "turbo run db-deploy",
|
||||||
"db-seed": "turbo run db-seed",
|
"db-seed": "turbo run db-seed",
|
||||||
"deploy": "turbo run deploy",
|
"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",
|
"dx": "turbo run dx",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
||||||
"heroku-postbuild": "turbo run @calcom/web#build",
|
"heroku-postbuild": "turbo run @calcom/web#build",
|
||||||
"lint": "turbo run lint",
|
"lint": "turbo run lint",
|
||||||
"pre-commit": "lint-staged",
|
"pre-commit": "lint-staged",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"start": "turbo run start",
|
"start": "turbo run start --scope=\"@calcom/web\"",
|
||||||
"test": "turbo run test",
|
"test": "turbo run test",
|
||||||
"test-playwright": "yarn playwright test",
|
"test-playwright": "yarn playwright test",
|
||||||
"test-e2e": "turbo run test-e2e",
|
"test-e2e": "turbo run test-e2e",
|
||||||
|
|
Loading…
Reference in New Issue