feat: use nx to manage monorepo (#2748)

This commit is contained in:
Himself65
2023-06-10 00:46:24 +08:00
committed by GitHub
parent 1e6e0336c3
commit eeb536d460
14 changed files with 519 additions and 182 deletions
+47
View File
@@ -0,0 +1,47 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "toeverything",
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "test"]
}
}
},
"affected": {
"defaultBase": "master"
},
"implicitDependencies": {
"package.json": {
"dependencies": "*",
"devDependencies": "*"
},
"tsconfig.json": "*",
"nx.json": "*"
},
"namedInputs": {
"default": ["{projectRoot}/**/*"],
"production": ["!{projectRoot}/**/*.spec.tsx"]
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"]
},
"e2e": {
"dependsOn": ["^build"]
},
"e2e:coverage": {
"dependsOn": ["^build"]
},
"test": {
"dependsOn": ["^build"]
},
"test:ui": {
"dependsOn": ["^build"]
},
"test:coverage": {
"dependsOn": ["^build"]
}
}
}