migrate to nx 16 (#3465)

* migrate to nx 16

* lock file
This commit is contained in:
Denys Vuika 2023-10-05 17:12:54 +01:00 committed by GitHub
parent f2d09e8b1a
commit 18542ebf8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 4079 additions and 3864 deletions

View File

@ -1,9 +1,7 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"plugins": ["@nrwl/nx"],
"ignorePatterns": ["projects/**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts"],
@ -15,17 +13,11 @@
}
},
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"parserOptions": {
"createDefaultProgram": true
},
"extends": [
"plugin:@nrwl/nx/typescript",
"plugin:@nrwl/nx/angular",
"plugin:@cspell/recommended"
],
"extends": ["plugin:@nx/typescript", "plugin:@nx/angular", "plugin:@cspell/recommended"],
"plugins": [
"rxjs",
"unicorn",
@ -42,13 +34,34 @@
"rules": {
"ban/ban": [
"error",
{ "name": "eval", "message": "Calls to eval is not allowed." },
{ "name": "fdescribe", "message": "Calls to fdescribe is not allowed" },
{ "name": "fit", "message": "Calls to fit is not allowed" },
{ "name": "xit", "message": "Calls to xit is not allowed" },
{ "name": "xdescribe", "message": "Calls to xdescribe is not allowed" },
{ "name": ["test", "only"], "message": "Calls to test.only is not allowed" },
{ "name": ["describe", "only"], "message": "Calls to describe.only is not allowed" }
{
"name": "eval",
"message": "Calls to eval is not allowed."
},
{
"name": "fdescribe",
"message": "Calls to fdescribe is not allowed"
},
{
"name": "fit",
"message": "Calls to fit is not allowed"
},
{
"name": "xit",
"message": "Calls to xit is not allowed"
},
{
"name": "xdescribe",
"message": "Calls to xdescribe is not allowed"
},
{
"name": ["test", "only"],
"message": "Calls to test.only is not allowed"
},
{
"name": ["describe", "only"],
"message": "Calls to describe.only is not allowed"
}
],
"license-header/header": [
"error",
@ -85,11 +98,7 @@
"error",
{
"type": "element",
"prefix": [
"app",
"aca",
"adf"
],
"prefix": ["app", "aca", "adf"],
"style": "kebab-case"
}
],
@ -154,35 +163,30 @@
"error",
{
"selector": "enum",
"format": [
"PascalCase"
]
"format": ["PascalCase"]
}
],
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true
"ignoreParameters": true
}
],
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"arrow-parents": [
"off",
"always"
],
"arrow-parents": ["off", "always"],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
"allowSingleLine": true
}
],
"constructor-super": "error",
@ -202,10 +206,10 @@
"prefer-spread": "error",
"import/order": "off",
"max-len": [
"error",
{
"code": 180
}
"error",
{
"code": 180
}
],
"no-duplicate-imports": "error",
"no-extra-semi": "off",
@ -223,29 +227,29 @@
"no-global-assign": "error",
"no-cond-assign": "error",
"no-console": [
"error",
{
"allow": [
"warn",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"error",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context"
]
}
"error",
{
"allow": [
"warn",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"error",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context"
]
}
],
"no-case-declarations": "error",
"no-debugger": "error",
@ -274,56 +278,41 @@
"rxjs/ban-operators": "error",
"rxjs/no-ignored-subscribe": "error",
"rxjs/no-unsafe-catch": [
"error",
{
"observable": "action(s|\\$)?"
}
"error",
{
"observable": "action(s|\\$)?"
}
],
"rxjs/no-unsafe-switchmap": [
"error",
{
"disallow": [
"add",
"create",
"delete",
"post",
"put",
"remove",
"set",
"update"
],
"observable": "action(s|\\$)?"
}
"error",
{
"disallow": ["add", "create", "delete", "post", "put", "remove", "set", "update"],
"observable": "action(s|\\$)?"
}
],
"semi": "error",
"use-isnan": "error",
"spaced-comment": [
"error",
"always",
{
"markers": ["/"],
"exceptions": ["!", "*"]
}
"error",
"always",
{
"markers": ["/"],
"exceptions": ["!", "*"]
}
],
"space-before-function-paren": "off",
"space-in-parens": [
"off",
"never"
],
"space-in-parens": ["off", "never"],
"unicorn/filename-case": "error"
}
},
{
"files": ["*.js"],
"extends": ["plugin:@nrwl/nx/javascript"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": [
"*.html"
],
"extends": ["plugin:@nrwl/nx/angular-template", "plugin:@angular-eslint/template/accessibility"],
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template", "plugin:@angular-eslint/template/accessibility"],
"parser": "@angular-eslint/template-parser",
"rules": {
"@angular-eslint/template/no-negated-async": "off",
@ -333,11 +322,11 @@
}
},
{
"files": ["*.spec.ts", "*.test.ts"],
"rules": {
"@typescript-eslint/no-floating-promises": "off",
"max-lines": "off"
}
"files": ["*.spec.ts", "*.test.ts"],
"rules": {
"@typescript-eslint/no-floating-promises": "off",
"max-lines": "off"
}
}
]
}

View File

@ -1,22 +1,14 @@
{
"extends": "../.eslintrc.json",
"ignorePatterns": [
"!**/*"
],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"parserOptions": {
"project": [
"app/tsconfig.app.json",
"app/tsconfig.spec.json"
],
"project": ["app/tsconfig.app.json", "app/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
}
"rules": {}
}
]
}

View File

@ -1,6 +1,6 @@
{
"$schema": "../node_modules/nx/schemas/project-schema.json",
"name": "content-ce",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "app/src",
"projectType": "application",
"targets": {
@ -12,17 +12,9 @@
"main": "app/src/main.ts",
"tsConfig": "app/tsconfig.app.json",
"polyfills": "app/src/polyfills.ts",
"allowedCommonJsDependencies": [
"moment-es6",
"minimatch",
"moment",
"cropperjs"
],
"allowedCommonJsDependencies": ["moment-es6", "minimatch", "moment", "cropperjs"],
"stylePreprocessorOptions": {
"includePaths": [
"projects/aca-content/src/lib/ui",
"node_modules"
]
"includePaths": ["projects/aca-content/src/lib/ui", "node_modules"]
},
"assets": [
{
@ -99,11 +91,7 @@
"projects/aca-content/src/lib/ui/application.scss",
"app/src/styles.scss"
],
"scripts": [
"node_modules/pdfjs-dist/build/pdf.js",
"node_modules/pdfjs-dist/web/pdf_viewer.js",
"node_modules/moment/min/moment.min.js"
],
"scripts": ["node_modules/pdfjs-dist/build/pdf.js", "node_modules/pdfjs-dist/web/pdf_viewer.js", "node_modules/moment/min/moment.min.js"],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
@ -195,9 +183,7 @@
}
},
"defaultConfiguration": "",
"outputs": [
"{options.outputPath}"
]
"outputs": ["{options.outputPath}"]
},
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",

View File

@ -1,15 +1,13 @@
{
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"name": "actions-e2e",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "e2e/playwright/actions/src",
"projectType": "application",
"targets": {
"e2e": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx playwright test --config=e2e/playwright/actions/playwright.config.ts"
]
"commands": ["npx playwright test --config=e2e/playwright/actions/playwright.config.ts"]
},
"configurations": {
"production": {

View File

@ -1,15 +1,13 @@
{
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"name": "authentication-e2e",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "e2e/playwright/authentication/src",
"projectType": "application",
"targets": {
"e2e": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx playwright test --config=e2e/playwright/authentication/playwright.config.ts"
]
"commands": ["npx playwright test --config=e2e/playwright/authentication/playwright.config.ts"]
},
"configurations": {
"production": {

View File

@ -1,15 +1,13 @@
{
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"name": "folder-rules-e2e",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "e2e/playwright/folder-rules/src",
"projectType": "application",
"targets": {
"e2e": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx playwright test --config=e2e/playwright/folder-rules/playwright.config.ts"
]
"commands": ["npx playwright test --config=e2e/playwright/folder-rules/playwright.config.ts"]
},
"configurations": {
"production": {

View File

@ -1,15 +1,13 @@
{
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"name": "navigation-e2e",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "e2e/playwright/navigation/src",
"projectType": "application",
"targets": {
"e2e": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx playwright test --config=e2e/playwright/navigation/playwright.config.ts"
]
"commands": ["npx playwright test --config=e2e/playwright/navigation/playwright.config.ts"]
},
"configurations": {
"production": {

View File

@ -1,15 +1,13 @@
{
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"name": "viewer-e2e",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "e2e/playwright/viewer/src",
"projectType": "application",
"targets": {
"e2e": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx playwright test --config=e2e/playwright/viewer/playwright.config.ts"
]
"commands": ["npx playwright test --config=e2e/playwright/viewer/playwright.config.ts"]
},
"configurations": {
"production": {

View File

@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "app-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "e2e",
"projectType": "application",
"targets": {

View File

@ -49,7 +49,9 @@
},
"lint": {
"executor": "@angular-eslint/builder:lint",
"outputs": ["{options.outputFile}"],
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": [
"{projectRoot}/**/*.ts",

7576
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -83,9 +83,6 @@
"@angular/compiler-cli": "14.1.3",
"@angular/language-service": "14.1.3",
"@cspell/eslint-plugin": "^7.3.6",
"@nrwl/angular": "15.9.2",
"@nrwl/eslint-plugin-nx": "^15.9.2",
"@nrwl/workspace": "15.9.2",
"@playwright/test": "^1.37.1",
"@schematics/angular": "14.1.2",
"@types/event-emitter": "^0.3.3",
@ -121,7 +118,7 @@
"lint-staged": "^14.0.1",
"ng-packagr": "^14.2.2",
"node-stream-zip": "^1.14.0",
"nx": "15.9.2",
"nx": "16.10.0",
"prettier": "2.8.8",
"protractor": "~7.0.0",
"protractor-retry-angular-cli": "^2.0.3",
@ -133,6 +130,9 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "4.2.0",
"typescript": "4.7.4",
"webdriver-manager": "12.1.8"
"webdriver-manager": "12.1.8",
"@nx/workspace": "16.10.0",
"@nx/eslint-plugin": "16.10.0",
"@nx/angular": "16.10.0"
}
}

View File

@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "aca-content",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "projects/aca-content",
"prefix": "lib",
@ -19,9 +19,7 @@
}
},
"defaultConfiguration": "production",
"outputs": [
"{workspaceRoot}/dist/@alfresco/aca-content"
]
"outputs": ["{workspaceRoot}/dist/@alfresco/aca-content"]
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
@ -30,9 +28,7 @@
"main": "projects/aca-content/test.ts",
"tsConfig": "projects/aca-content/tsconfig.spec.json",
"karmaConfig": "projects/aca-content/karma.conf.js",
"styles": [
"projects/aca-content/src/lib/ui/application.scss"
]
"styles": ["projects/aca-content/src/lib/ui/application.scss"]
},
"configurations": {
"adfprod": {

View File

@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "playwright-shared",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/aca-playwright-shared/src",
"projectType": "library",
"prefix": "lib"

View File

@ -1,30 +1,30 @@
{
"name": "@alfresco/aca-shared",
"version": "0.0.1",
"commit": "",
"license": "LGPL-3.0",
"scripts": {},
"peerDependencies": {
"@alfresco/adf-content-services": "^6.4.0-6341205853",
"@alfresco/adf-core": "^6.4.0-6341205853",
"@alfresco/adf-extensions": "^6.4.0-6341205853",
"@alfresco/js-api": "^7.1.0-1349",
"@angular/animations": "^14.1.3",
"@angular/common": "^14.1.3",
"@angular/compiler": "^14.1.3",
"@angular/core": "^14.1.3",
"@angular/forms": "^14.1.3",
"@angular/material": "^14.1.3",
"@ngrx/effects": "^14.2.0",
"@ngrx/router-store": "^14.2.0",
"@ngrx/store": "^14.2.0",
"@ngx-translate/core": "^14.0.0",
"rxjs": "6.6.6",
"tslib": "^2.0.0",
"zone.js": "0.11.8"
},
"repository": {
"type": "git",
"url": "https://github.com/Alfresco/alfresco-content-app.git"
}
"name": "@alfresco/aca-shared",
"version": "0.0.1",
"commit": "",
"license": "LGPL-3.0",
"scripts": {},
"peerDependencies": {
"@alfresco/adf-content-services": "^6.4.0-6341205853",
"@alfresco/adf-core": "^6.4.0-6341205853",
"@alfresco/adf-extensions": "^6.4.0-6341205853",
"@alfresco/js-api": "^7.1.0-1349",
"@angular/animations": "^14.1.3",
"@angular/common": "^14.1.3",
"@angular/compiler": "^14.1.3",
"@angular/core": "^14.1.3",
"@angular/forms": "^14.1.3",
"@angular/material": "^14.1.3",
"@ngrx/effects": "^14.2.0",
"@ngrx/router-store": "^14.2.0",
"@ngrx/store": "^14.2.0",
"@ngx-translate/core": "^14.0.0",
"rxjs": "6.6.6",
"tslib": "^2.0.0",
"zone.js": "0.11.8"
},
"repository": {
"type": "git",
"url": "https://github.com/Alfresco/alfresco-content-app.git"
}
}

View File

@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "aca-shared",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/aca-shared/src",
"projectType": "library",
"prefix": "lib",
@ -17,9 +17,7 @@
}
},
"defaultConfiguration": "production",
"outputs": [
"{workspaceRoot}/dist/@alfresco/aca-shared"
]
"outputs": ["{workspaceRoot}/dist/@alfresco/aca-shared"]
},
"test": {
"executor": "@angular-devkit/build-angular:karma",

View File

@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "aca-testing-shared",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/aca-testing-shared/src",
"projectType": "library",
"prefix": "lib"

View File

@ -21,16 +21,16 @@
"typeRoots": ["node_modules/@types"],
"lib": ["es2019", "dom"],
"paths": {
"@alfresco/aca-shared": ["projects/aca-shared/src/public-api.ts"],
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
"@alfresco/aca-shared/rules": ["projects/aca-shared/rules/src/public-api.ts"],
"@alfresco/aca-content/ms-office": ["projects/aca-content/ms-office/src/public-api.ts"],
"@alfresco/aca-testing-shared": ["projects/aca-testing-shared/src/index.ts"],
"@alfresco/aca-content/folder-rules": ["projects/aca-content/folder-rules/src/public-api.ts"],
"@alfresco/aca-content": ["projects/aca-content/src/public-api.ts"],
"@alfresco/aca-content/about": ["projects/aca-content/about/src/public-api.ts"],
"@alfresco/aca-content/viewer": ["projects/aca-content/viewer/src/public-api.ts"],
"@alfresco/aca-content/folder-rules": ["projects/aca-content/folder-rules/src/public-api.ts"],
"@alfresco/aca-content/ms-office": ["projects/aca-content/ms-office/src/public-api.ts"],
"@alfresco/aca-content/preview": ["projects/aca-content/preview/src/public-api.ts"],
"@alfresco/aca-content/viewer": ["projects/aca-content/viewer/src/public-api.ts"],
"@alfresco/aca-shared": ["projects/aca-shared/src/public-api.ts"],
"@alfresco/aca-shared/rules": ["projects/aca-shared/rules/src/public-api.ts"],
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
"@alfresco/aca-testing-shared": ["projects/aca-testing-shared/src/index.ts"],
"@alfresco/playwright-shared": ["projects/aca-playwright-shared/src/index.ts"],
"package.json": ["package.json"]
}