-
Notifications
You must be signed in to change notification settings - Fork 16
/
nx.json
130 lines (130 loc) · 3.47 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"cacheDirectory": "/tmp/nx/nx-ng-starter",
"cli": {
"cache": {
"enabled": true,
"environment": "all",
"path": ".angular/cache"
},
"warnings": {
"versionMismatch": false
}
},
"defaultBase": "main",
"generators": {
"@nrwl/schematics:application": {
"framework": "angular",
"style": "scss",
"unitTestRunner": "jest"
},
"@nrwl/schematics:library": {
"style": "scss",
"unitTestRunner": "jest"
},
"@nrwl/web:application": {
"e2eTestRunner": "cypress",
"linter": "eslint",
"style": "scss",
"unitTestRunner": "jest"
},
"@nrwl/web:library": {
"linter": "eslint",
"style": "scss",
"unitTestRunner": "jest"
},
"@nx/angular:application": {
"e2eTestRunner": "cypress",
"linter": "eslint",
"style": "scss",
"unitTestRunner": "jest"
},
"@nx/angular:component": {
"changeDetection": "OnPush",
"inlineStyle": false,
"inlineTemplate": false,
"style": "scss"
},
"@nx/angular:library": {
"linter": "eslint",
"unitTestRunner": "jest"
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*.ts", "{projectRoot}/**/*.scss", "{projectRoot}/**/*.html", "sharedGlobals"],
"prod": [
"default",
"!{projectRoot}/**/*.stories.ts",
"!{projectRoot}/**/*.spec.ts",
"!{projectRoot}/**/*.md",
"!{projectRoot}/tsconfig.e2e.json",
"!{projectRoot}/tsconfig.eslint.json",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/tsconfig.json",
"!{projectRoot}/jest.config.ts",
"!{projectRoot}/.eslintrc.json"
],
"projectLinterConfig": ["{projectRoot}/tsconfig.spec.json", "{projectRoot}/jest.config.ts"],
"projectTestConfig": ["{projectRoot}/tsconfig.eslint.json", "{projectRoot}/.eslintrc.json"],
"rootLinterConfig": [
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/.eslintrc.js",
"{workspaceRoot}/.eslintrc.*.js",
"{workspaceRoot}/.prettierignore",
"{workspaceRoot}/.prettierrc"
],
"rootTestConfig": ["{workspaceRoot}/jest.config.ts", "{workspaceRoot}/jest.preset.js"],
"sharedGlobals": ["{workspaceRoot}/babel.config.json", "{workspaceRoot}/nx.json", "{workspaceRoot}/tsconfig.base.json"]
},
"newProjectRoot": "",
"parallel": 1,
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^prod"]
},
"build-storybook": {
"inputs": [
"default",
"^prod",
"{workspaceRoot}/.storybook/**/*",
"{projectRoot}/.storybook/**/*",
"{projectRoot}/**/*.stories.ts",
"{projectRoot}/tsconfig.storybook.json"
]
},
"e2e": {
"cache": true,
"inputs": ["default", "^prod", "{projectRoot}/tsconfig.e2e.json"]
},
"lint": {
"cache": true,
"inputs": ["default", "^prod", "projectLinterConfig", "rootLinterConfig"]
},
"prettier-check": {
"cache": true
},
"stylelint-check": {
"cache": true
},
"test": {
"cache": true,
"inputs": ["default", "^prod", "projectTestConfig", "rootTestConfig"]
},
"tsc-check": {
"cache": true
}
},
"tasksRunnerOptions": {
"default": {
"options": {
"runtimeCacheInputs": ["node -v", "echo $IMPORTANT_ENV_VAR"]
}
}
},
"workspaceLayout": {
"appsDir": "apps",
"libsDir": "libs"
}
}