migrate to nx 17 (#3502)

* migrate to nx 17

* lock file
This commit is contained in:
Denys Vuika 2023-10-31 19:45:49 +00:00 committed by GitHub
parent b23bd3e25b
commit 968febffb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 692 additions and 853 deletions

2
.gitignore vendored
View File

@ -59,3 +59,5 @@ Thumbs.db
/test-results/ /test-results/
/playwright-report/ /playwright-report/
/playwright/.cache/ /playwright/.cache/
.nx/cache

View File

@ -2,3 +2,5 @@ node_modules
src/assets/i18n src/assets/i18n
/angular.json /angular.json
docs/**/*.md docs/**/*.md
/.nx/cache

55
nx.json
View File

@ -1,27 +1,11 @@
{ {
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"test",
"lint"
],
"cacheDirectory": "nxcache"
}
}
},
"defaultBase": "develop", "defaultBase": "develop",
"affected": { "affected": {
"defaultBase": "develop" "defaultBase": "develop"
}, },
"namedInputs": { "namedInputs": {
"sharedGlobals": [], "sharedGlobals": [],
"default": [ "default": ["{projectRoot}/**/*", "sharedGlobals"],
"{projectRoot}/**/*",
"sharedGlobals"
],
"production": [ "production": [
"default", "default",
"!{projectRoot}/tsconfig.spec.json", "!{projectRoot}/tsconfig.spec.json",
@ -32,41 +16,28 @@
}, },
"targetDefaults": { "targetDefaults": {
"build": { "build": {
"dependsOn": [ "dependsOn": ["^build"],
"^build" "inputs": ["production", "^production"],
], "cache": true
"inputs": [
"production",
"^production"
]
}, },
"test": { "test": {
"inputs": [ "inputs": ["default", "^production", "{workspaceRoot}/karma.conf.js"],
"default", "cache": true
"^production",
"{workspaceRoot}/karma.conf.js"
]
}, },
"lint": { "lint": {
"executor": "@angular-eslint/builder:lint", "executor": "@angular-eslint/builder:lint",
"outputs": [ "outputs": ["{options.outputFile}"],
"{options.outputFile}"
],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": ["{projectRoot}/**/*.ts", "{projectRoot}/**/*.html"],
"{projectRoot}/**/*.ts",
"{projectRoot}/**/*.html"
],
"cache": true, "cache": true,
"cacheLocation": ".eslintcache", "cacheLocation": ".eslintcache",
"ignorePath": ".eslintignore" "ignorePath": ".eslintignore"
} },
"cache": true
}, },
"e2e": { "e2e": {
"inputs": [ "inputs": ["default", "^production"]
"default",
"^production"
]
}
} }
},
"cacheDirectory": "nxcache"
} }

1477
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -79,9 +79,9 @@
"@angular/compiler-cli": "14.1.3", "@angular/compiler-cli": "14.1.3",
"@angular/language-service": "14.1.3", "@angular/language-service": "14.1.3",
"@cspell/eslint-plugin": "^7.3.6", "@cspell/eslint-plugin": "^7.3.6",
"@nx/angular": "16.10.0", "@nx/angular": "17.0.2",
"@nx/eslint-plugin": "16.10.0", "@nx/eslint-plugin": "17.0.2",
"@nx/workspace": "16.10.0", "@nx/workspace": "17.0.2",
"@playwright/test": "^1.37.1", "@playwright/test": "^1.37.1",
"@schematics/angular": "14.1.2", "@schematics/angular": "14.1.2",
"@types/event-emitter": "^0.3.3", "@types/event-emitter": "^0.3.3",
@ -117,7 +117,7 @@
"lint-staged": "^14.0.1", "lint-staged": "^14.0.1",
"ng-packagr": "^14.2.2", "ng-packagr": "^14.2.2",
"node-stream-zip": "^1.14.0", "node-stream-zip": "^1.14.0",
"nx": "16.10.0", "nx": "17.0.2",
"prettier": "2.8.8", "prettier": "2.8.8",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"protractor-retry-angular-cli": "^2.0.3", "protractor-retry-angular-cli": "^2.0.3",
@ -132,3 +132,4 @@
"webdriver-manager": "12.1.8" "webdriver-manager": "12.1.8"
} }
} }