125 lines
2.9 KiB
JSON
125 lines
2.9 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
"targetDefaults": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"],
|
|
"cache": true
|
|
},
|
|
"lint": {
|
|
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
|
|
"cache": true
|
|
},
|
|
"test": {
|
|
"inputs": [
|
|
"default",
|
|
"^production",
|
|
"{workspaceRoot}/jest.preset.js"
|
|
],
|
|
"cache": true
|
|
},
|
|
"@nx/jest:jest": {
|
|
"cache": true,
|
|
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
"options": {
|
|
"passWithNoTests": true
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"ci": true,
|
|
"codeCoverage": true
|
|
}
|
|
}
|
|
},
|
|
"@nx/eslint:lint": {
|
|
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
|
|
"cache": true
|
|
},
|
|
"@nx/js:tsc": {
|
|
"cache": true,
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"]
|
|
}
|
|
},
|
|
"namedInputs": {
|
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
"production": [
|
|
"default",
|
|
"!{projectRoot}/.eslintrc.json",
|
|
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
"!{projectRoot}/tsconfig.spec.json",
|
|
"!{projectRoot}/jest.config.[jt]s",
|
|
"!{projectRoot}/**/*.spec.[jt]s",
|
|
"!{projectRoot}/src/test-setup.[jt]s"
|
|
],
|
|
"sharedGlobals": []
|
|
},
|
|
"workspaceLayout": {
|
|
"appsDir": "packages",
|
|
"libsDir": "packages"
|
|
},
|
|
"generators": {
|
|
"@nx/workspace:move": {
|
|
"projectNameAndRootFormat": "as-provided"
|
|
},
|
|
"@nx/react": {
|
|
"application": {
|
|
"babel": true,
|
|
"style": "tailwind",
|
|
"linter": "eslint",
|
|
"bundler": "vite"
|
|
},
|
|
"component": {
|
|
"style": "tailwind"
|
|
},
|
|
"library": {
|
|
"style": "tailwind",
|
|
"linter": "eslint"
|
|
}
|
|
}
|
|
},
|
|
"nxCloudAccessToken": "Y2Y3YzhhNjYtZWI4OC00M2Y0LWIwY2ItMWJhNTBjYzA3ZDA0fHJlYWQtb25seQ==",
|
|
"plugins": [
|
|
{
|
|
"plugin": "@nx/eslint/plugin",
|
|
"options": {
|
|
"targetName": "lint"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/vite/plugin",
|
|
"options": {
|
|
"buildTargetName": "build",
|
|
"testTargetName": "test",
|
|
"serveTargetName": "serve",
|
|
"previewTargetName": "preview",
|
|
"serveStaticTargetName": "serve-static"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/jest/plugin",
|
|
"options": {
|
|
"targetName": "test"
|
|
}
|
|
}
|
|
],
|
|
"tasksRunnerOptions": {
|
|
"default": {
|
|
"runner": "nx/tasks-runners/default",
|
|
"options": {
|
|
"cacheableOperations": ["lint", "test", "e2e"],
|
|
"parallel": 3,
|
|
"useDaemonProcess": false,
|
|
"cacheDirectory": ".nx/cache",
|
|
"runtimeCacheInputs": ["node -v"]
|
|
}
|
|
}
|
|
},
|
|
"release": {
|
|
"version": {
|
|
"preVersionCommand": "npx nx run-many -t build"
|
|
}
|
|
},
|
|
"useLegacyCache": true
|
|
}
|