78 lines
2.1 KiB
JSON
78 lines
2.1 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
"targetDefaults": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"],
|
|
"cache": true
|
|
},
|
|
"test": {
|
|
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
"cache": true
|
|
},
|
|
"lint": {
|
|
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"],
|
|
"cache": true
|
|
},
|
|
"build-storybook": {
|
|
"inputs": ["default", "^production", "{projectRoot}/.storybook/**/*", "{projectRoot}/tsconfig.storybook.json"],
|
|
"cache": true
|
|
},
|
|
"e2e": {
|
|
"cache": true,
|
|
"inputs": ["default", "^production"]
|
|
},
|
|
"@nx/js:tsc": {
|
|
"cache": true,
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"]
|
|
},
|
|
"@nx/vite:test": {
|
|
"cache": true,
|
|
"inputs": ["default", "^production"]
|
|
},
|
|
"@nx/vite:build": {
|
|
"cache": true,
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["production", "^production"]
|
|
}
|
|
},
|
|
"namedInputs": {
|
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
"production": [
|
|
"default",
|
|
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
"!{projectRoot}/tsconfig.spec.json",
|
|
"!{projectRoot}/.eslintrc.json",
|
|
"!{projectRoot}/jest.config.[jt]s",
|
|
"!{projectRoot}/src/test-setup.[jt]s",
|
|
"!{projectRoot}/test-setup.[jt]s",
|
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
"!{projectRoot}/.storybook/**/*",
|
|
"!{projectRoot}/tsconfig.storybook.json"
|
|
],
|
|
"sharedGlobals": []
|
|
},
|
|
"useInferencePlugins": false,
|
|
"generators": {
|
|
"@nx/web:application": {
|
|
"style": "css",
|
|
"linter": "eslint",
|
|
"unitTestRunner": "jest",
|
|
"e2eTestRunner": "playwright"
|
|
}
|
|
},
|
|
"plugins": [
|
|
{
|
|
"plugin": "@nx/storybook/plugin",
|
|
"options": {
|
|
"buildStorybookTargetName": "build-storybook",
|
|
"serveStorybookTargetName": "storybook",
|
|
"staticStorybookTargetName": "static-storybook",
|
|
"testStorybookTargetName": "test-storybook"
|
|
},
|
|
"include": ["libs/reviews-stars/**/*"]
|
|
}
|
|
]
|
|
}
|