mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-19 17:14:45 +00:00
parent
f2d09e8b1a
commit
18542ebf8b
@ -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,9 +163,7 @@
|
||||
"error",
|
||||
{
|
||||
"selector": "enum",
|
||||
"format": [
|
||||
"PascalCase"
|
||||
]
|
||||
"format": ["PascalCase"]
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-inferrable-types": [
|
||||
@ -174,10 +181,7 @@
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/type-annotation-spacing": "error",
|
||||
"arrow-parents": [
|
||||
"off",
|
||||
"always"
|
||||
],
|
||||
"arrow-parents": ["off", "always"],
|
||||
"brace-style": [
|
||||
"error",
|
||||
"1tbs",
|
||||
@ -282,22 +286,12 @@
|
||||
"rxjs/no-unsafe-switchmap": [
|
||||
"error",
|
||||
{
|
||||
"disallow": [
|
||||
"add",
|
||||
"create",
|
||||
"delete",
|
||||
"post",
|
||||
"put",
|
||||
"remove",
|
||||
"set",
|
||||
"update"
|
||||
],
|
||||
"disallow": ["add", "create", "delete", "post", "put", "remove", "set", "update"],
|
||||
"observable": "action(s|\\$)?"
|
||||
}
|
||||
],
|
||||
"semi": "error",
|
||||
"use-isnan": "error",
|
||||
|
||||
"spaced-comment": [
|
||||
"error",
|
||||
"always",
|
||||
@ -307,23 +301,18 @@
|
||||
}
|
||||
],
|
||||
"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",
|
||||
|
@ -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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
4
nx.json
4
nx.json
@ -49,7 +49,9 @@
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@angular-eslint/builder:lint",
|
||||
"outputs": ["{options.outputFile}"],
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
],
|
||||
"options": {
|
||||
"lintFilePatterns": [
|
||||
"{projectRoot}/**/*.ts",
|
||||
|
7574
package-lock.json
generated
7574
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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": {
|
||||
|
@ -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"
|
||||
|
@ -27,4 +27,4 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Alfresco/alfresco-content-app.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -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"
|
||||
|
@ -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"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user