Skip to content

Commit f77f7d7

Browse files
committed
chore(worksapce): migrate to NX cli
1 parent a67750e commit f77f7d7

File tree

9 files changed

+24004
-16129
lines changed

9 files changed

+24004
-16129
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ testem.log
4545
# System Files
4646
.DS_Store
4747
Thumbs.db
48+
49+
.angular

angular.json

-39
This file was deleted.

jest.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { getJestProjects } from '@nrwl/jest';
2+
3+
export default {
4+
projects: getJestProjects(),
5+
};

jest.preset.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const nxPreset = require('@nrwl/jest/preset').default;
2+
3+
module.exports = { ...nxPreset };

nx.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"targetDefaults": {
3+
"test": {
4+
"inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"]
5+
}
6+
},
7+
"tasksRunnerOptions": {
8+
"default": {
9+
"runner": "nx/tasks-runners/default",
10+
"options": {
11+
"cacheableOperations": []
12+
}
13+
}
14+
},
15+
"cli": {
16+
"schematicCollections": ["@angular-eslint/schematics"],
17+
"analytics": false
18+
},
19+
"generators": {
20+
"@nrwl/angular:application": {
21+
"style": "css",
22+
"linter": "eslint",
23+
"unitTestRunner": "jest",
24+
"e2eTestRunner": "cypress"
25+
},
26+
"@nrwl/angular:library": {
27+
"linter": "eslint",
28+
"unitTestRunner": "jest"
29+
},
30+
"@nrwl/angular:component": {
31+
"style": "css"
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)