Каркас воркспейса: конфигурация Nx и TypeScript, манифест yarn workspaces, EditorConfig, параметры docker-сборки и инструкции со скиллами для ИИ-агентов (AGENTS.md).
111 lines
3.1 KiB
JSON
111 lines
3.1 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
"defaultBase": "master",
|
|
"namedInputs": {
|
|
"default": [
|
|
"{projectRoot}/**/*",
|
|
"sharedGlobals"
|
|
],
|
|
"production": [
|
|
"default",
|
|
"!{projectRoot}/.eslintrc.json",
|
|
"!{projectRoot}/eslint.config.mjs",
|
|
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
"!{projectRoot}/tsconfig.spec.json",
|
|
"!{projectRoot}/src/test-setup.[jt]s"
|
|
],
|
|
"sharedGlobals": []
|
|
},
|
|
"plugins": [
|
|
{
|
|
"plugin": "@nx/js/typescript",
|
|
"options": {
|
|
"typecheck": {
|
|
"targetName": "typecheck"
|
|
},
|
|
"build": {
|
|
"targetName": "build",
|
|
"configName": "tsconfig.lib.json",
|
|
"buildDepsName": "build-deps",
|
|
"watchDepsName": "watch-deps"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/eslint/plugin",
|
|
"options": {
|
|
"targetName": "lint"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/vite/plugin",
|
|
"options": {
|
|
"buildTargetName": "build",
|
|
"testTargetName": "test",
|
|
"serveTargetName": "serve",
|
|
"devTargetName": "dev",
|
|
"previewTargetName": "preview",
|
|
"serveStaticTargetName": "serve-static",
|
|
"typecheckTargetName": "typecheck",
|
|
"buildDepsTargetName": "build-deps",
|
|
"watchDepsTargetName": "watch-deps"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/vitest",
|
|
"options": {
|
|
"testTargetName": "test",
|
|
"ciTargetName": "test-ci",
|
|
"testMode": "watch"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/webpack/plugin",
|
|
"options": {
|
|
"buildTargetName": "build",
|
|
"serveTargetName": "serve",
|
|
"previewTargetName": "preview",
|
|
"buildDepsTargetName": "build-deps",
|
|
"watchDepsTargetName": "watch-deps",
|
|
"serveStaticTargetName": "serve-static"
|
|
}
|
|
}
|
|
],
|
|
"targetDefaults": {
|
|
"test": {
|
|
"dependsOn": [
|
|
"^build"
|
|
]
|
|
},
|
|
"db-{show,migrate,revert,drop}": {
|
|
"options": {
|
|
"env": {
|
|
"TS_NODE_PROJECT": "apps/api/tsconfig.app.json",
|
|
"NODE_OPTIONS": "-r tsconfig-paths/register"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"generators": {
|
|
"@nx/react": {
|
|
"application": {
|
|
"babel": true,
|
|
"style": "tailwind",
|
|
"linter": "eslint",
|
|
"bundler": "vite"
|
|
},
|
|
"component": {
|
|
"style": "tailwind"
|
|
},
|
|
"library": {
|
|
"style": "tailwind",
|
|
"linter": "eslint"
|
|
}
|
|
}
|
|
},
|
|
"tui": {
|
|
"enabled": false
|
|
},
|
|
"analytics": false
|
|
}
|