chore: NPM Workspaces and scripts (#244)

* chore: NPM Workspaces and scripts
- Allows everything to be run in the root directory

* chore:Update package-lock after workspace change

* docs: Minor docs typo fix
- most people run in dev mode, ie vite runs the server, this defaults to that method
This commit is contained in:
LaraClara 2023-05-12 23:40:14 +10:00 committed by GitHub
parent 8bb4d7d590
commit 95c97561ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26511 additions and 50 deletions

View file

@ -2,7 +2,15 @@
"name": "chatgpt-clone",
"version": "0.4.2",
"description": "",
"workspaces": [
"api",
"client"
],
"scripts": {
"backend": "cd api && npm run start",
"backend-dev": "cd api && npm run server-dev",
"frontend": "cd client && npm run build",
"frontend-dev": "cd client && npm run dev",
"e2e": "playwright test --config=e2e/playwright.config.js",
"e2e:update": "playwright test --config=e2e/playwright.config.js --update-snapshots",
"e2e:debug": "cross-env PWDEBUG=1 playwright test --config=e2e/playwright.config.js",