config(nx): Add nx config and ignore .nx/

This commit is contained in:
Emil Ivanichkov 2024-01-22 16:00:34 +02:00
parent 31704d5363
commit 3bd56aa3db
2 changed files with 44 additions and 0 deletions

3
.gitignore vendored
View File

@ -41,3 +41,6 @@ dist-ssr
# Nix & Direnv
.direnv
result
# Nx
.nx/

41
nx.json Normal file
View File

@ -0,0 +1,41 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "nimbus-gui",
"affected": {
"defaultBase": "main"
},
"workspaceLayout": {
"libsDir": "libs"
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test"]
}
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json"
]
},
"targetDefaults": {
"test": {
"inputs": ["default"],
"dependsOn": ["build"]
},
"build": {
"inputs": ["production"],
"dependsOn": ["^build"]
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^production"]
}
}
}