139 lines
2.9 KiB
JSON
139 lines
2.9 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
"cli": {
|
|
"packageManager": "bun"
|
|
},
|
|
"tui": {
|
|
"enabled": true,
|
|
"autoExit": true
|
|
},
|
|
"defaultBase": "main",
|
|
"parallel": 4,
|
|
"cacheDirectory": "node_modules/.cache/nx",
|
|
"workspaceLayout": {
|
|
"appsDir": "apps",
|
|
"libsDir": "packages"
|
|
},
|
|
"namedInputs": {
|
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
"sharedGlobals": ["{workspaceRoot}/.gitignore"],
|
|
"sanitySchema": [
|
|
"{projectRoot}/sanity.config.ts",
|
|
"{projectRoot}/schemaTypes/**/*"
|
|
]
|
|
},
|
|
"targetDefaults": {
|
|
"build": {
|
|
"dependsOn": ["^build", "^generate"],
|
|
"inputs": ["default", "^default"],
|
|
"outputs": [
|
|
"{projectRoot}/dist/**",
|
|
"{projectRoot}/.svelte-kit/**",
|
|
"{projectRoot}/build/**"
|
|
],
|
|
"cache": true
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"continuous": true
|
|
},
|
|
"preview": {
|
|
"dependsOn": ["build"],
|
|
"cache": false,
|
|
"continuous": true
|
|
},
|
|
"check": {
|
|
"dependsOn": ["^check"],
|
|
"inputs": ["default"],
|
|
"cache": true
|
|
},
|
|
"lint": {
|
|
"inputs": ["default"],
|
|
"cache": true
|
|
},
|
|
"format": {
|
|
"inputs": ["default"],
|
|
"cache": true
|
|
},
|
|
"deploy": {
|
|
"cache": true
|
|
},
|
|
"generate": {
|
|
"inputs": ["sanitySchema"],
|
|
"outputs": [
|
|
"{projectRoot}/schema.json",
|
|
"{projectRoot}/src/lib/sanity.types.ts"
|
|
],
|
|
"cache": true
|
|
},
|
|
"update": {
|
|
"cache": false
|
|
},
|
|
"start": {
|
|
"dependsOn": ["build"],
|
|
"cache": false,
|
|
"continuous": true
|
|
},
|
|
"@nx/jest:jest": {
|
|
"cache": true,
|
|
"inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"],
|
|
"options": {
|
|
"passWithNoTests": true
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"ci": true,
|
|
"codeCoverage": true
|
|
}
|
|
}
|
|
},
|
|
"e2e": {
|
|
"cache": true,
|
|
"inputs": ["default", "^default"]
|
|
},
|
|
"@nx/eslint:lint": {
|
|
"cache": true,
|
|
"inputs": [
|
|
"default",
|
|
"{workspaceRoot}/.eslintrc.json",
|
|
"{workspaceRoot}/.eslintignore",
|
|
"{workspaceRoot}/eslint.config.mjs"
|
|
]
|
|
},
|
|
"@nx/vite:test": {
|
|
"cache": true,
|
|
"inputs": ["default", "^default"]
|
|
}
|
|
},
|
|
"tasksRunnerOptions": {
|
|
"default": {
|
|
"runner": "nx/tasks-runners/default",
|
|
"options": {
|
|
"cacheableOperations": [
|
|
"build",
|
|
"lint",
|
|
"check",
|
|
"generate",
|
|
"deploy",
|
|
"format"
|
|
],
|
|
"parallel": 4
|
|
}
|
|
}
|
|
},
|
|
"plugins": [
|
|
{
|
|
"plugin": "@nx/react/router-plugin",
|
|
"options": {
|
|
"buildTargetName": "build",
|
|
"devTargetName": "dev",
|
|
"startTargetName": "start",
|
|
"watchDepsTargetName": "watch-deps",
|
|
"buildDepsTargetName": "build-deps",
|
|
"typecheckTargetName": "typecheck"
|
|
}
|
|
},
|
|
"@nxext/svelte"
|
|
]
|
|
}
|