mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
feature(turbo): Init turborepo - faster everything
This commit is contained in:
parent
3ff8d6f90b
commit
dfaa4fe3ac
5 changed files with 17 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -39,6 +39,7 @@ meili_data/
|
|||
api/node_modules/
|
||||
client/node_modules/
|
||||
bower_components/
|
||||
.turbo
|
||||
|
||||
# Floobits
|
||||
.floo
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
13
turbo.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"pipeline": {
|
||||
"build": {
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"watch": {
|
||||
"outputs": ["dist/**", "client/dist/**"]
|
||||
},
|
||||
|
||||
"lint": {}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue