feature(turbo): Init turborepo - faster everything

This commit is contained in:
LaraClara 2023-06-12 21:57:11 +10:00
parent 3ff8d6f90b
commit dfaa4fe3ac
No known key found for this signature in database
GPG key ID: 4FA6B6ADA1F7C937
5 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View file

@ -39,6 +39,7 @@ meili_data/
api/node_modules/
client/node_modules/
bower_components/
.turbo
# Floobits
.floo

View file

@ -5,6 +5,7 @@
"scripts": {
"start": "echo 'please run this from the root directory'",
"server-dev": "echo 'please run this from the root directory'",
"watch": "cross-env NODE_ENV=development npx nodemon server/index.js",
"test": "cross-env NODE_ENV=test jest",
"test:ci": "jest --ci",
"test2": "node --inspect app/langchain/test2.js",

View file

@ -4,6 +4,7 @@
"description": "",
"scripts": {
"build": "cross-env NODE_ENV=production dotenv -e ../.env -- vite build",
"watch": "cross-env NODE_ENV=production dotenv -e ../.env -- vite build --watch",
"build:ci": "cross-env NODE_ENV=dev vite build --mode ci",
"dev": "cross-env NODE_ENV=dev dotenv -e ../.env -- vite",
"preview-prod": "cross-env NODE_ENV=dev dotenv -e ../.env -- vite preview",

View file

@ -13,6 +13,7 @@
"backend-dev": "cross-env NODE_ENV=development npx nodemon api/server/index.js",
"frontend": "cd client && npm run build",
"frontend-dev": "cd client && npm run dev",
"turbo": "dotenv -- turbo watch --parallel",
"e2e": "playwright test --config=e2e/playwright.config.local.ts",
"e2e:ci": "playwright test --config=e2e/playwright.config.ts",
"e2e:debug": "cross-env PWDEBUG=1 playwright test --config=e2e/playwright.config.local.ts",

13
turbo.json Normal file
View file

@ -0,0 +1,13 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"outputs": ["dist/**"]
},
"watch": {
"outputs": ["dist/**", "client/dist/**"]
},
"lint": {}
}
}