mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* perf: Cache package builds and make client coverage opt-in * perf: Add a cached turbo test:ci task and a parallel test:turbo script * perf: Hash default turbo inputs and live-test env for cached tasks * perf: Hash live-test credentials in the turbo test cache key * perf: Hash the ignored backend test env file in the turbo test cache key * perf: Order test tasks after consumed builds and hash cross-workspace test imports * test: Cover the cached test runner's keys, build order and client coverage toggle * perf: Hash the root env file the live responses suite loads * perf: Stop caching test results and hash the client package's baked env * fix: Pass every caller variable to test runs and include the shared client suite
75 lines
2 KiB
JSON
75 lines
2 KiB
JSON
{
|
|
"$schema": "https://v2-10-5.turborepo.dev/schema.json",
|
|
"globalDependencies": ["package-lock.json"],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": [
|
|
"src/**",
|
|
"!src/**/__tests__/**",
|
|
"!src/**/__mocks__/**",
|
|
"!src/**/*.test.*",
|
|
"!src/**/*.spec.*",
|
|
"scripts/**",
|
|
"tsdown.config.mjs",
|
|
"tsconfig.json",
|
|
"tsconfig.build.json",
|
|
"vite.config.ts",
|
|
"index.html",
|
|
"postcss.config.*",
|
|
"tailwind.config.*",
|
|
"package.json"
|
|
],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"test:ci": {
|
|
"dependsOn": ["^build"],
|
|
"cache": false,
|
|
"passThroughEnv": ["*"]
|
|
},
|
|
"@librechat/data-schemas#test:ci": {
|
|
"dependsOn": ["^build", "librechat-data-provider#build"],
|
|
"cache": false,
|
|
"passThroughEnv": ["*"]
|
|
},
|
|
"@librechat/api#test:ci": {
|
|
"dependsOn": ["^build", "librechat-data-provider#build", "@librechat/data-schemas#build"],
|
|
"cache": false,
|
|
"passThroughEnv": ["*"]
|
|
},
|
|
"@librechat/data-schemas#build": {
|
|
"dependsOn": ["^build", "librechat-data-provider#build"],
|
|
"inputs": [
|
|
"$TURBO_DEFAULT$",
|
|
"!**/__tests__/**",
|
|
"!**/__mocks__/**",
|
|
"!**/*.test.*",
|
|
"!**/*.spec.*"
|
|
],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"@librechat/api#build": {
|
|
"dependsOn": ["^build", "librechat-data-provider#build", "@librechat/data-schemas#build"],
|
|
"inputs": [
|
|
"$TURBO_DEFAULT$",
|
|
"!**/__tests__/**",
|
|
"!**/__mocks__/**",
|
|
"!**/*.test.*",
|
|
"!**/*.spec.*"
|
|
],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"@librechat/client#build": {
|
|
"dependsOn": ["^build", "librechat-data-provider#build"],
|
|
"inputs": [
|
|
"$TURBO_DEFAULT$",
|
|
"!**/__tests__/**",
|
|
"!**/__mocks__/**",
|
|
"!**/*.test.*",
|
|
"!**/*.spec.*"
|
|
],
|
|
"outputs": ["dist/**"],
|
|
"env": ["NODE_ENV", "VITE_ENABLE_LOGGER", "VITE_LOGGER_FILTER"]
|
|
}
|
|
}
|
|
}
|