mirror of
https://github.com/spartan-ng/spartan.git
synced 2026-09-22 16:41:38 +08:00
101 lines
2.3 KiB
JSON
101 lines
2.3 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
"targetDefaults": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"],
|
|
"cache": true
|
|
},
|
|
"serve": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"e2e": {
|
|
"inputs": ["default", "^production"],
|
|
"cache": true
|
|
},
|
|
"lint": {
|
|
"inputs": [
|
|
"default",
|
|
"{workspaceRoot}/.eslintrc.json",
|
|
"{workspaceRoot}/.eslintignore",
|
|
"{workspaceRoot}/eslint.config.js",
|
|
"{workspaceRoot}/tools/eslint-rules/**/*"
|
|
],
|
|
"cache": true
|
|
},
|
|
"build-storybook": {
|
|
"inputs": ["default", "^production", "{projectRoot}/.storybook/**/*", "{projectRoot}/tsconfig.storybook.json"],
|
|
"cache": true
|
|
},
|
|
"@nx/eslint:lint": {
|
|
"inputs": [
|
|
"default",
|
|
"^default",
|
|
"{workspaceRoot}/.eslintrc.json",
|
|
"{workspaceRoot}/.eslintignore",
|
|
"{workspaceRoot}/eslint.config.js",
|
|
"{workspaceRoot}/tools/eslint-rules/**/*"
|
|
],
|
|
"cache": true
|
|
},
|
|
"@nx/angular:package": {
|
|
"cache": true,
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"]
|
|
},
|
|
"@nx/js:tsc": {
|
|
"cache": true,
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"]
|
|
},
|
|
"@nx/vitest:test": {
|
|
"inputs": ["default", "^production"],
|
|
"cache": true
|
|
}
|
|
},
|
|
"namedInputs": {
|
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
"production": [
|
|
"default",
|
|
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
"!{projectRoot}/tsconfig.spec.json",
|
|
"!{projectRoot}/.eslintrc.json",
|
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
"!{projectRoot}/.storybook/**/*",
|
|
"!{projectRoot}/tsconfig.storybook.json",
|
|
"!{projectRoot}/eslint.config.js"
|
|
],
|
|
"sharedGlobals": ["{workspaceRoot}/package.json", "{workspaceRoot}/pnpm-lock.yaml"]
|
|
},
|
|
"generators": {
|
|
"@nx/angular:application": {
|
|
"style": "css",
|
|
"linter": "eslint",
|
|
"unitTestRunner": "vitest",
|
|
"e2eTestRunner": "cypress"
|
|
},
|
|
"@nx/angular:library": {
|
|
"linter": "eslint",
|
|
"unitTestRunner": "vitest"
|
|
},
|
|
"@nx/angular:component": {
|
|
"style": "css",
|
|
"type": "component"
|
|
}
|
|
},
|
|
"release": {
|
|
"version": {
|
|
"preVersionCommand": "pnpm dlx nx run-many -t build"
|
|
}
|
|
},
|
|
"plugins": [
|
|
{
|
|
"plugin": "@nx/eslint/plugin",
|
|
"options": {
|
|
"targetName": "eslint:lint"
|
|
}
|
|
}
|
|
],
|
|
"analytics": false
|
|
}
|