Skip to content

Commit 262e19e

Browse files
committed
nx migrations
1 parent b751392 commit 262e19e

File tree

5 files changed

+116
-277
lines changed

5 files changed

+116
-277
lines changed

libs/ngx-http-request-state/package.json

+40-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,44 @@
2121
"url": "https://github.com/daiscog/ngx-http-request-state.git",
2222
"directory": "libs/ngx-http-request-state"
2323
},
24-
"license": "MIT"
24+
"license": "MIT",
25+
"nx": {
26+
"targets": {
27+
"build": {
28+
"executor": "@nrwl/angular:package",
29+
"options": {
30+
"tsConfig": "libs/ngx-http-request-state/tsconfig.lib.json",
31+
"project": "libs/ngx-http-request-state/ng-package.json",
32+
"updateBuildableProjectDepsInPackageJson": true
33+
},
34+
"configurations": {
35+
"production": {
36+
"tsConfig": "libs/ngx-http-request-state/tsconfig.lib.prod.json"
37+
}
38+
}
39+
},
40+
"lint": {
41+
"executor": "@nrwl/linter:eslint",
42+
"options": {
43+
"lintFilePatterns": [
44+
"libs/ngx-http-request-state/src/**/*.ts",
45+
"libs/ngx-http-request-state/src/**/*.html"
46+
]
47+
},
48+
"outputs": [
49+
"{options.outputFile}"
50+
]
51+
},
52+
"test": {
53+
"executor": "@nrwl/jest:jest",
54+
"outputs": [
55+
"{workspaceRoot}/coverage/libs/ngx-http-request-state"
56+
],
57+
"options": {
58+
"jestConfig": "libs/ngx-http-request-state/jest.config.ts",
59+
"passWithNoTests": true
60+
}
61+
}
62+
}
63+
}
2564
}

migrations.json

-180
This file was deleted.

nx.json

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"implicitDependencies": {
3-
"package.json": {
4-
"dependencies": "*",
5-
"devDependencies": "*"
6-
},
7-
".eslintrc.json": "*"
8-
},
92
"affected": {
103
"defaultBase": "origin/main"
114
},
@@ -54,5 +47,24 @@
5447
"style": "css",
5548
"changeDetection": "OnPush"
5649
}
50+
},
51+
"targetDefaults": {
52+
"e2e": {
53+
"inputs": ["default", "^default"]
54+
},
55+
"test": {
56+
"inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"]
57+
},
58+
"lint": {
59+
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
60+
},
61+
"build": {
62+
"inputs": ["production", "^production"]
63+
}
64+
},
65+
"namedInputs": {
66+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
67+
"sharedGlobals": [],
68+
"production": ["default"]
5769
}
5870
}

0 commit comments

Comments
 (0)