Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37460af

Browse files
authored
chore: clean nx targets and npm scripts (#1100)
* chore: clean nx targets and npm scripts * chore(ci): remove `collectCoverageFrom`
1 parent f288526 commit 37460af

File tree

7 files changed

+10
-62
lines changed

7 files changed

+10
-62
lines changed

libs/cdk/jest.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ module.exports = {
55
preset: '../../jest.preset.js',
66
coverageReporters: ['lcov', 'cobertura'],
77
coverageDirectory: '../../docs/test-coverage/cdk',
8-
collectCoverageFrom: [
9-
'./src/**/!(index).ts',
10-
'!./src/lib/experimental/**/*.ts',
11-
],
128
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
139
globals: {
1410
'ts-jest': {

libs/cdk/project.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"options": {
2020
"commands": [
2121
{
22-
"command": "nx test-coverage cdk && nx build-test-coverage-badge cdk"
22+
"command": "nx test cdk --codeCoverage && nx build-test-coverage-badge cdk"
2323
}
2424
]
2525
}
@@ -68,15 +68,6 @@
6868
},
6969
"outputs": ["coverage/libs/cdk"]
7070
},
71-
"test-coverage": {
72-
"executor": "@nrwl/jest:jest",
73-
"options": {
74-
"jestConfig": "libs/cdk/jest.config.js",
75-
"passWithNoTests": true,
76-
"codeCoverage": true
77-
},
78-
"outputs": ["coverage/libs/cdk"]
79-
},
8071
"publish": {
8172
"executor": "@nrwl/workspace:run-commands",
8273
"options": {

libs/state/jest.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ module.exports = {
44
preset: '../../jest.preset.js',
55
coverageReporters: ['lcov', 'cobertura'],
66
coverageDirectory: '../../docs/test-coverage/state',
7-
collectCoverageFrom: [
8-
'./src/**/!(index).ts',
9-
'!./src/lib/experimental/**/*.ts',
10-
],
11-
127
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
138
globals: {
149
'ts-jest': {

libs/state/project.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
"options": {
2626
"commands": [
2727
{
28-
"command": "nx test-coverage state && nx test-coverage-badge state"
28+
"command": "nx test state --codeCoverage && nx build-test-coverage-badge state"
2929
}
3030
]
3131
}
3232
},
33-
"test-coverage-badge": {
33+
"build-test-coverage-badge": {
3434
"executor": "@nrwl/workspace:run-commands",
3535
"options": {
3636
"commands": [
@@ -40,15 +40,6 @@
4040
]
4141
}
4242
},
43-
"test-coverage": {
44-
"executor": "@nrwl/jest:jest",
45-
"options": {
46-
"jestConfig": "libs/state/jest.config.js",
47-
"passWithNoTests": true,
48-
"codeCoverage": true
49-
},
50-
"outputs": ["coverage/libs/state"]
51-
},
5243
"perfBuild": {
5344
"executor": "@nrwl/node:build",
5445
"options": {

libs/template/jest.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ module.exports = {
33
preset: '../../jest.preset.js',
44
coverageReporters: ['lcov', 'cobertura'],
55
coverageDirectory: '../../docs/test-coverage/template',
6-
collectCoverageFrom: [
7-
'./src/**/!(index).ts',
8-
'!./src/lib/experimental/**/*.ts',
9-
],
10-
116
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
127
globals: {
138
'ts-jest': {

libs/template/project.json

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
"options": {
6161
"commands": [
6262
{
63-
"command": "nx test-coverage template && nx test-coverage-badge template"
63+
"command": "nx test template --codeCoverage && nx build-test-coverage-badge template"
6464
}
6565
]
6666
}
6767
},
68-
"test-coverage-badge": {
68+
"build-test-coverage-badge": {
6969
"executor": "@nrwl/workspace:run-commands",
7070
"options": {
7171
"commands": [
@@ -75,25 +75,6 @@
7575
]
7676
}
7777
},
78-
"test-coverage": {
79-
"executor": "@nrwl/jest:jest",
80-
"options": {
81-
"jestConfig": "libs/template/jest.config.js",
82-
"passWithNoTests": true,
83-
"codeCoverage": true
84-
},
85-
"outputs": ["coverage/libs/template"]
86-
},
87-
"changelog": {
88-
"executor": "@nrwl/workspace:run-commands",
89-
"options": {
90-
"commands": [
91-
{
92-
"command": "npx conventional-changelog-cli -p angular -k ./libs/template/package.json -i ./libs/template/CHANGELOG.md -s --commit-path ./libs/template --tagPrefix template@"
93-
}
94-
]
95-
}
96-
},
9778
"link": {
9879
"executor": "@nrwl/workspace:run-commands",
9980
"options": {

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"scripts": {
66
"ng": "nx",
77
"nx": "nx",
8-
"start": "ng serve",
9-
"build": "ng build",
8+
"start": "nx serve",
9+
"build": "nx build",
1010
"test": "nx test",
1111
"test:coverage": "nx test --code-coverage",
12-
"lint": "nx workspace-lint && ng lint",
13-
"e2e": "ng e2e",
12+
"lint": "nx workspace-lint && nx lint",
1413
"affected:apps": "nx affected:apps",
1514
"affected:libs": "nx affected:libs",
1615
"affected:build": "nx affected:build",
@@ -25,12 +24,12 @@
2524
"update": "nx migrate latest",
2625
"dep-graph": "nx dep-graph",
2726
"build-docs-page": "nx run-many --projects state,template,cdk --target build-docs",
28-
"chanelog": "nx changelog state",
2927
"generate-typescript-docs": "ts-node -P tools/tsconfig.tools.json tools/scripts/docs/generate-typescript-docs.ts",
3028
"help": "nx help",
29+
"cdk:publish": "nx publish cdk",
3130
"state:publish": "nx publish state",
3231
"template:publish": "nx publish template",
33-
"tracebench": "tracerbench compare --controlURL http://localhost:4200/rx-angular/demos --experimentURL http://localhost:4242/rx-angular/demos --markers startRouting,endRouting --headless --report",
32+
"tracerbench": "tracerbench compare --controlURL http://localhost:4200/rx-angular/demos --experimentURL http://localhost:4242/rx-angular/demos --markers startRouting,endRouting --headless --report",
3433
"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points && node ./decorate-angular-cli.js && husky install",
3534
"workspace-generator": "nx workspace-generator"
3635
},

0 commit comments

Comments
 (0)