-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnx.json
87 lines (87 loc) · 2.12 KB
/
nx.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"tasksRunnerOptions": {
"default": {
"runner": "@nx/workspace/tasks-runners/default",
"options": {}
}
},
"extends": "nx/presets/core.json",
"workspaceLayout": {
"appsDir": "apps",
"libsDir": "packages"
},
"generators": {
"@nx/react": {
"application": {
"linter": "eslint",
"babel": true
},
"component": {},
"library": {
"linter": "eslint"
}
}
},
"defaultProject": "main",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [
"{workspaceRoot}/workspace.json",
"{workspaceRoot}/tsconfig.base.json",
"{workspaceRoot}/tsconfig.json",
"{workspaceRoot}/nx.json",
"{workspaceRoot}/babel.config.json",
"{workspaceRoot}/workspace.json",
"{workspaceRoot}/tsconfig.base.json",
"{workspaceRoot}/tsconfig.json",
"{workspaceRoot}/nx.json"
],
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/.storybook/**/*",
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
"!{projectRoot}/tsconfig.storybook.json",
"!{projectRoot}/cypress/**/*",
"!{projectRoot}/**/*.cy.[jt]s?(x)",
"!{projectRoot}/cypress.config.[jt]s"
]
},
"targetDefaults": {
"build": {
"inputs": ["production", "^production"],
"cache": true
},
"e2e": {
"inputs": ["default", "^production"],
"cache": true
},
"storybook:build": {
"inputs": ["default", "^production", "{workspaceRoot}/.storybook/**/*"]
},
"test": {
"cache": true
},
"type-check": {
"cache": true
},
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "main",
"useLegacyCache": true,
"plugins": [
{
"plugin": "@nx/cypress/plugin",
"options": {
"targetName": "e2e",
"openTargetName": "open-cypress",
"componentTestingTargetName": "component-test",
"ciTargetName": "e2e-ci"
}
}
]
}