Skip to content

Commit fa1ddc3

Browse files
authored
Merge pull request #1 from marmicode/feat/nx-cloud/setup
feat(nx-cloud): set up nx workspace
2 parents 83cbf9a + 901cffa commit fa1ddc3

File tree

1 file changed

+28
-91
lines changed

1 file changed

+28
-91
lines changed

nx.json

Lines changed: 28 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
{
66
"plugin": "@nx/js/typescript",
77
"options": {
8-
"typecheck": {
9-
"targetName": "typecheck"
10-
},
8+
"typecheck": { "targetName": "typecheck" },
119
"build": {
1210
"targetName": "build",
1311
"configName": "tsconfig.lib.json",
@@ -16,12 +14,7 @@
1614
}
1715
}
1816
},
19-
{
20-
"plugin": "@nx/jest/plugin",
21-
"options": {
22-
"targetName": "jest"
23-
}
24-
},
17+
{ "plugin": "@nx/jest/plugin", "options": { "targetName": "jest" } },
2518
"@nx/eslint/plugin",
2619
"@nx/playwright/plugin",
2720
"@nx/vite/plugin"
@@ -33,78 +26,35 @@
3326
"unitTestRunner": "vitest",
3427
"e2eTestRunner": "playwright"
3528
},
36-
"@nx/angular:library": {
37-
"linter": "eslint",
38-
"unitTestRunner": "vitest"
39-
},
29+
"@nx/angular:library": { "linter": "eslint", "unitTestRunner": "vitest" },
4030
"@nx/angular:component": {
4131
"style": "css",
4232
"inlineStyle": true,
4333
"inlineTemplate": true,
4434
"type": "component"
4535
},
4636
"@nx/angular": {
47-
"application": {
48-
"linter": "eslint"
49-
},
50-
"library": {
51-
"linter": "eslint"
52-
},
53-
"storybook-configuration": {
54-
"linter": "eslint"
55-
},
56-
"directive": {
57-
"type": "directive"
58-
},
59-
"service": {
60-
"type": "service"
61-
},
62-
"scam": {
63-
"type": "component"
64-
},
65-
"scam-directive": {
66-
"type": "directive"
67-
},
68-
"guard": {
69-
"typeSeparator": "."
70-
},
71-
"interceptor": {
72-
"typeSeparator": "."
73-
},
74-
"module": {
75-
"typeSeparator": "."
76-
},
77-
"pipe": {
78-
"typeSeparator": "."
79-
},
80-
"resolver": {
81-
"typeSeparator": "."
82-
}
83-
},
84-
"@schematics/angular:component": {
85-
"type": "component"
86-
},
87-
"@schematics/angular:directive": {
88-
"type": "directive"
89-
},
90-
"@schematics/angular:service": {
91-
"type": "service"
92-
},
93-
"@schematics/angular:guard": {
94-
"typeSeparator": "."
95-
},
96-
"@schematics/angular:interceptor": {
97-
"typeSeparator": "."
98-
},
99-
"@schematics/angular:module": {
100-
"typeSeparator": "."
101-
},
102-
"@schematics/angular:pipe": {
103-
"typeSeparator": "."
104-
},
105-
"@schematics/angular:resolver": {
106-
"typeSeparator": "."
107-
}
37+
"application": { "linter": "eslint" },
38+
"library": { "linter": "eslint" },
39+
"storybook-configuration": { "linter": "eslint" },
40+
"directive": { "type": "directive" },
41+
"service": { "type": "service" },
42+
"scam": { "type": "component" },
43+
"scam-directive": { "type": "directive" },
44+
"guard": { "typeSeparator": "." },
45+
"interceptor": { "typeSeparator": "." },
46+
"module": { "typeSeparator": "." },
47+
"pipe": { "typeSeparator": "." },
48+
"resolver": { "typeSeparator": "." }
49+
},
50+
"@schematics/angular:component": { "type": "component" },
51+
"@schematics/angular:directive": { "type": "directive" },
52+
"@schematics/angular:service": { "type": "service" },
53+
"@schematics/angular:guard": { "typeSeparator": "." },
54+
"@schematics/angular:interceptor": { "typeSeparator": "." },
55+
"@schematics/angular:module": { "typeSeparator": "." },
56+
"@schematics/angular:pipe": { "typeSeparator": "." },
57+
"@schematics/angular:resolver": { "typeSeparator": "." }
10858
},
10959
"targetDefaults": {
11060
"build": {
@@ -113,27 +63,14 @@
11363
"cache": true
11464
},
11565
"test-ui": {
116-
"inputs": [
117-
"default",
118-
"^production",
119-
{
120-
"runtime": "env | grep PW"
121-
}
122-
],
66+
"inputs": ["default", "^production", { "runtime": "env | grep PW" }],
12367
"cache": true
12468
},
12569
"@nx/jest:jest": {
12670
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
12771
"cache": true,
128-
"options": {
129-
"passWithNoTests": true
130-
},
131-
"configurations": {
132-
"ci": {
133-
"ci": true,
134-
"codeCoverage": true
135-
}
136-
}
72+
"options": { "passWithNoTests": true },
73+
"configurations": { "ci": { "ci": true, "codeCoverage": true } }
13774
},
13875
"@nx/eslint:lint": {
13976
"inputs": [
@@ -157,5 +94,5 @@
15794
"!{projectRoot}/eslint.config.mjs"
15895
]
15996
},
160-
"nxCloudId": "68d46679bd4038601a660428"
97+
"nxCloudId": "690640bab43dd482385f6d97"
16198
}

0 commit comments

Comments
 (0)