From 7320c6b57aeb040ca7771467d3ea1a473263ce43 Mon Sep 17 00:00:00 2001 From: dominikiwanekhyland <141320833+dominikiwanekhyland@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:09:05 +0200 Subject: [PATCH] Ng16 migration exp fix types roots (#9883) --- angular.json | 1229 ------------------------------- lib/cli/package-lock.json | 8 +- lib/cli/package.json | 2 +- lib/cli/tsconfig.json | 2 +- lib/eslint-angular/project.json | 1 + lib/js-api/package.json | 3 +- lib/js-api/project.json | 77 ++ lib/js-api/tsconfig.json | 2 +- lib/testing/project.json | 1 + package-lock.json | 5 +- tools/doc/tsconfig.json | 2 +- tsconfig.json | 4 +- 12 files changed, 94 insertions(+), 1242 deletions(-) delete mode 100644 angular.json create mode 100644 lib/js-api/project.json diff --git a/angular.json b/angular.json deleted file mode 100644 index a70e62839b0..00000000000 --- a/angular.json +++ /dev/null @@ -1,1229 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "newProjectRoot": "lib", - "projects": { - "demoshell": { - "root": "demo-shell", - "sourceRoot": "demo-shell/src", - "projectType": "application", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "allowedCommonJsDependencies": [ - "minimatch", - "minimatch-browser", - "superagent", - "event-emitter", - "brace-expansion", - "zen-observable", - "subscriptions-transport-ws", - "d", - "chart.js" - ], - "outputPath": "dist/demo-shell", - "index": "demo-shell/src/index.html", - "main": "demo-shell/src/main.ts", - "tsConfig": "tsconfig.dev.json", - "polyfills": "demo-shell/src/polyfills.ts", - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - }, - "assets": [ - "demo-shell/src/assets", - "demo-shell/src/favicon-96x96.png", - "demo-shell/src/app.config.json", - { - "glob": "**/*", - "input": "demo-shell/src/assets", - "output": "/assets" - }, - { - "glob": "app.config.json", - "input": "demo-shell/src", - "output": "/" - }, - { - "glob": "**/*", - "input": "demo-shell/resources", - "output": "/resources" - }, - { - "glob": "**/*", - "input": "lib/core/src/lib/assets", - "output": "/assets" - }, - { - "glob": "**/*", - "input": "lib/process-services/src/lib/assets", - "output": "/assets" - }, - { - "glob": "**/*", - "input": "lib/process-services-cloud/src/lib/assets", - "output": "/assets" - }, - { - "glob": "**/*", - "input": "lib/content-services/src/lib/assets", - "output": "/assets" - }, - { - "glob": "**/*", - "input": "lib/core/src/lib/i18n", - "output": "/assets/adf-core/i18n" - }, - { - "glob": "**/*", - "input": "lib/content-services/src/lib/i18n", - "output": "/assets/adf-content-services/i18n" - }, - { - "glob": "**/*", - "input": "lib/process-services/src/lib/i18n", - "output": "/assets/adf-process-services/i18n" - }, - { - "glob": "**/*", - "input": "lib/process-services-cloud/src/lib/i18n", - "output": "/assets/adf-process-services-cloud/i18n" - }, - { - "glob": "**/*", - "input": "lib/insights/src/lib/i18n", - "output": "/assets/adf-insights/i18n" - }, - { - "glob": "pdf.worker.min.js", - "input": "node_modules/pdfjs-dist/build", - "output": "/" - }, - { - "glob": "**/*", - "input": "node_modules/monaco-editor", - "output": "/assets/monaco/" - } - ], - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "scripts": [ - "node_modules/pdfjs-dist/build/pdf.js", - "node_modules/pdfjs-dist/web/pdf_viewer.js", - "node_modules/raphael/raphael.min.js" - ], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "budgets": [ - { - "type": "anyComponentStyle", - "maximumWarning": "12kb" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "buildOptimizer": true, - "verbose": false, - "fileReplacements": [ - { - "replace": "demo-shell/src/environments/environment.ts", - "with": "demo-shell/src/environments/environment.prod.ts" - } - ] - }, - "canary": { - "fileReplacements": [ - { - "replace": "demo-shell/src/environments/environment.ts", - "with": "demo-shell/src/environments/environment.canary.ts" - } - ] - }, - "e2e": { - "budgets": [ - { - "type": "anyComponentStyle", - "maximumWarning": "6kb" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "buildOptimizer": true, - "verbose": false, - "fileReplacements": [ - { - "replace": "demo-shell/src/environments/environment.ts", - "with": "demo-shell/src/environments/environment.e2e.ts" - } - ] - } - }, - "defaultConfiguration": "" - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "demoshell:build", - "host": "0.0.0.0", - "port": 3000, - "proxyConfig": "demo-shell/proxy.conf.js", - "disableHostCheck": true - }, - "configurations": { - "production": { - "browserTarget": "demoshell:build:production" - }, - "canary": { - "browserTarget": "demoshell:build:canary" - }, - "e2e": { - "browserTarget": "demoshell:build:e2e" - } - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "demo-shell/**/*.ts", - "demo-shell/**/*.html" - ] - } - } - } - }, - "demoshell-e2e": { - "root": "demo-shell", - "sourceRoot": "./demo-shell", - "projectType": "application", - "architect": { - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "proxyConfig": "./e2e/proxy.conf.js", - "browserTarget": "dev:build", - "port": 3000 - }, - "configurations": { - "production": { - "browserTarget": "dev:build:production" - } - } - }, - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "./e2e/protractor.conf.js", - "devServerTarget": "lib-e2e-test:serve" - } - } - } - }, - "js-api": { - "projectType": "library", - "root": "lib/js-api/src", - "sourceRoot": "lib/js-api/src", - "architect": { - "build": { - "builder": "nx:run-commands", - "options": { - "command": "npm run js_api_build" - }, - "configurations": { - "production": {} - }, - "defaultConfiguration": "production" - }, - "bundle": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "echo cli bundle created" - } - ] - }, - "dependsOn": [ - "copyToNodeModules" - ] - }, - "copyToNodeModules": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "rm -rf ./node_modules/@alfresco/js-api/ && mkdir -p ./node_modules/@alfresco/js-api/ && cp -R ./dist/libs/js-api/* ./node_modules/@alfresco/js-api/" - } - ] - }, - "dependsOn": [ - { - "projects": "self", - "target": "build" - } - ] - }, - "test": { - "executor": "nx:run-commands", - "options": { - "commands": ["TS_NODE_PROJECT=lib/js-api/test/tsconfig.json mocha --full-trace --config lib/js-api/.mocharc.json"] - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/js-api/**/*.ts" - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/js-api", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "core": { - "projectType": "library", - "root": "lib/core", - "sourceRoot": "lib/core", - "prefix": "adf", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", - "options": { - "tsConfig": "lib/core/tsconfig.lib.json", - "project": "lib/core/ng-package.json" - }, - "dependsOn": ["^build", "license"], - "configurations": { - "production": { - "project": "lib/core/ng-package.json", - "tsConfig": "lib/core/tsconfig.lib.prod.json" - }, - "development": { - "tsConfig": "lib/core/tsconfig.lib.json" - } - }, - "defaultConfiguration": "production" - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "lib/core/test.ts", - "tsConfig": "lib/core/tsconfig.spec.json", - "karmaConfig": "lib/core/karma.conf.js", - "sourceMap": true, - "codeCoverage": true, - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - }, - "styles": [ - "demo-shell/src/styles.scss" - ] - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/core/**/*.ts", - "lib/core/**/*.html", - "lib/core/api/**/*.ts", - "lib/core/api/**/*.html", - "lib/core/auth/**/*.ts", - "lib/core/auth/**/*.html", - "lib/core/shell/**/*.ts", - "lib/core/shell/**/*.html", - "lib/core/breadcrumbs/**/*.ts", - "lib/core/breadcrumbs/**/*.html", - "lib/core/feature-flags/**/*.ts" - ] - } - }, - "storybook": { - "builder": "@storybook/angular:start-storybook", - "options": { - "port": 4400, - "browserTarget": "core:storybook", - "configDir": "lib/core/.storybook", - "compodoc": false, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "ci": { - "quiet": true - } - } - }, - "build-storybook": { - "builder": "@storybook/angular:build-storybook", - "options": { - "browserTarget": "core:build-storybook", - "configDir": "lib/core/.storybook", - "outputDir": "dist/storybook/core", - "compodoc": false, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "ci": { - "quiet": true - } - } - }, - "stylelint": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx stylelint lib/core/**/*.scss --config .stylelintrc.json" - } - ] - } - }, - "license": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx license-checker --production --failOn 'GPL;GPL-2.0' > licenses.txt" - } - ] - } - }, - "pretheme": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx webpack -- --config ./lib/config/webpack.style.js --progress --profile --bail" - } - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/core", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - } - } - } - }, - "content-services": { - "root": "lib/content-services", - "sourceRoot": "lib/content-services/src", - "projectType": "library", - "prefix": "adf", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", - "options": { - "tsConfig": "lib/content-services/tsconfig.lib.json", - "project": "lib/content-services/ng-package.json" - }, - "configurations": { - "production": { - "project": "lib/content-services/ng-package.json", - "tsConfig": "lib/content-services/tsconfig.lib.prod.json" - } - }, - "defaultConfiguration": "production" - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "lib/content-services/src/test.ts", - "tsConfig": "lib/content-services/tsconfig.spec.json", - "karmaConfig": "lib/content-services/karma.conf.js", - "sourceMap": true, - "codeCoverage": true, - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/content-services/**/*.ts", - "lib/content-services/**/*.html" - ] - } - }, - "storybook": { - "builder": "@storybook/angular:start-storybook", - "options": { - "port": 4400, - "browserTarget": "content-services:storybook", - "configDir": "lib/content-services/.storybook", - "compodoc": false, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "ci": { - "quiet": true - } - } - }, - "build-storybook": { - "builder": "@storybook/angular:build-storybook", - "options": { - "browserTarget": "content-services:build-storybook", - "configDir": "lib/content-services/.storybook", - "outputDir": "dist/storybook/content-services", - "compodoc": false, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "ci": { - "quiet": true - } - } - }, - "stylelint": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx stylelint lib/content-services/**/*.scss --config .stylelintrc.json" - } - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/content-services", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "process-services": { - "root": "lib/process-services", - "sourceRoot": "lib/process-services", - "projectType": "library", - "prefix": "adf", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", - "options": { - "tsConfig": "lib/process-services/tsconfig.lib.json", - "project": "lib/process-services/ng-package.json" - }, - "configurations": { - "production": { - "project": "lib/process-services/ng-package.json", - "tsConfig": "lib/process-services/tsconfig.lib.prod.json" - } - }, - "defaultConfiguration": "production" - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "lib/process-services/src/test.ts", - "tsConfig": "lib/process-services/tsconfig.spec.json", - "karmaConfig": "lib/process-services/karma.conf.js", - "sourceMap": true, - "codeCoverage": true, - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/process-services/**/*.ts", - "lib/process-services/**/*.html" - ] - } - }, - "stylelint": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx stylelint lib/process-services-cloud/**/*.scss --config .stylelintrc.json" - } - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/process-services", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "process-services-cloud": { - "root": "lib/process-services-cloud", - "sourceRoot": "lib/process-services-cloud/src", - "projectType": "library", - "prefix": "adf-cloud", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", - "options": { - "tsConfig": "lib/process-services-cloud/tsconfig.lib.json", - "project": "lib/process-services-cloud/ng-package.json" - }, - "configurations": { - "production": { - "project": "lib/process-services-cloud/ng-package.json", - "tsConfig": "lib/process-services-cloud/tsconfig.lib.prod.json" - } - }, - "defaultConfiguration": "production" - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "lib/process-services-cloud/src/test.ts", - "tsConfig": "lib/process-services-cloud/tsconfig.spec.json", - "karmaConfig": "lib/process-services-cloud/karma.conf.js", - "sourceMap": true, - "codeCoverage": true, - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/process-services-cloud/**/*.ts", - "lib/process-services-cloud/**/*.html" - ] - } - }, - "storybook": { - "builder": "@storybook/angular:start-storybook", - "options": { - "port": 4400, - "browserTarget": "process-services-cloud:storybook", - "configDir": "lib/process-services-cloud/.storybook", - "compodoc": false, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "ci": { - "quiet": true - } - } - }, - "build-storybook": { - "builder": "@storybook/angular:build-storybook", - "options": { - "browserTarget": "process-services-cloud:build-storybook", - "configDir": "lib/process-services-cloud/.storybook", - "outputDir": "dist/storybook/process-services-cloud", - "compodoc": false, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "ci": { - "quiet": true - } - } - }, - - "e2e-playwright": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx playwright test --config='e2e-playwright/playwright.config.ts'" - } - ] - } - }, - "stylelint": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx stylelint lib/process-services-cloud/**/*.scss --config .stylelintrc.json" - } - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/process-services-cloud", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "insights": { - "root": "lib/insights", - "sourceRoot": "lib/insights/src", - "projectType": "library", - "prefix": "adf", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", - "options": { - "tsConfig": "lib/insights/tsconfig.lib.json", - "project": "lib/insights/ng-package.json" - }, - "configurations": { - "production": { - "project": "lib/insights/ng-package.json", - "tsConfig": "lib/insights/tsconfig.lib.prod.json" - } - }, - "defaultConfiguration": "production" - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "lib/insights/src/test.ts", - "tsConfig": "lib/insights/tsconfig.spec.json", - "karmaConfig": "lib/insights/karma.conf.js", - "sourceMap": true, - "codeCoverage": true, - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/insights/**/*.ts", - "lib/insights/**/*.html" - ] - } - }, - "stylelint": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "npx stylelint lib/insights/**/*.scss --config .stylelintrc.json" - } - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/insights", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "extensions": { - "root": "lib/extensions", - "sourceRoot": "lib/extensions/src", - "projectType": "library", - "prefix": "adf", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", - "options": { - "tsConfig": "lib/extensions/tsconfig.lib.json", - "project": "lib/extensions/ng-package.json" - }, - "configurations": { - "production": { - "tsConfig": "lib/extensions/tsconfig.lib.prod.json" - } - }, - "defaultConfiguration": "production" - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "lib/extensions/src/test.ts", - "tsConfig": "lib/extensions/tsconfig.spec.json", - "karmaConfig": "lib/extensions/karma.conf.js", - "sourceMap": true, - "codeCoverage": true, - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/extensions/**/*.ts", - "lib/extensions/**/*.html" - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/extensions", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "testing": { - "root": "lib/testing", - "sourceRoot": "lib/testing/src", - "projectType": "library", - "prefix": "adf", - "architect": { - "build": { - "builder": "@nrwl/node:webpack", - "options": { - "projectRoot": "lib/testing", - "outputPath": "dist/libs/testing", - "main": "lib/testing/index.ts", - "generatePackageJson" : true, - "tsConfig": "lib/testing/tsconfig.lib.prod.json", - "additionalEntryPoints": [ - { - "entryName": "shared", - "entryPath": "/lib/testing/src/lib/shared/index.ts" - } - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "production": { - "projectRoot": "lib/testing", - "outputPath": "dist/libs/testing", - "main": "lib/testing/index.ts", - "generatePackageJson" : true, - "tsConfig": "lib/testing/tsconfig.lib.prod.json" - } - }, - "defaultConfiguration": "production" - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/testing/**/*.ts", - "lib/testing/**/*.html" - ] - } - }, - "bundle": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "echo testing bundle created" - } - ] - }, - "dependsOn": [ - "copyToNodeModules" - ] - }, - "copyToNodeModules": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "rm -rf ./node_modules/@alfresco/adf-testing/ && mkdir -p ./node_modules/@alfresco/adf-testing/ && cp -R ./dist/libs/testing/* ./node_modules/@alfresco/adf-testing/" - } - ] - }, - "dependsOn": [ - { - "projects": "self", - "target": "build" - } - ] - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/testing", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "eslint-angular": { - "root": "lib/eslint-angular", - "sourceRoot": "lib/eslint-angular/src", - "projectType": "library", - "prefix": "adf", - "architect": { - "build": { - "builder": "@nrwl/node:webpack", - "options": { - "projectRoot": "lib/eslint-angular", - "outputPath": "dist/libs/eslint-plugin-eslint-angular", - "main": "lib/eslint-angular/index.ts", - "generatePackageJson" : true, - "tsConfig": "lib/eslint-angular/tsconfig.lib.prod.json", - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "production": { - "projectRoot": "lib/eslint-angular", - "outputPath": "dist/libs/eslint-plugin-eslint-angular", - "main": "lib/eslint-angular/index.ts", - "generatePackageJson" : true, - "tsConfig": "lib/eslint-angular/tsconfig.lib.prod.json" - } - }, - "defaultConfiguration": "production" - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/eslint-angular/**/*.ts" - ] - } - }, - "bundle": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "echo testing bundle created" - } - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/eslint-plugin-eslint-angular", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "cli": { - "root": "lib/cli", - "sourceRoot": "lib/cli", - "projectType": "library", - "prefix": "adf", - "architect": { - "build": { - "builder": "nx:run-commands", - "options": { - "command": "cd lib/cli && npm run dist", - "stylePreprocessorOptions": { - "includePaths": [ - "lib", - "lib/core/src/lib" - ] - } - }, - "configurations": { - "production": { - "tsConfig": "lib/cli/tsconfig.json" - } - }, - "defaultConfiguration": "production" - }, - "bundle": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "echo cli bundle created" - } - ] - }, - "dependsOn": [ - "copyToNodeModules" - ] - }, - "copyToNodeModules": { - "executor": "nx:run-commands", - "options": { - "commands": [ - { - "command": "rm -rf ./node_modules/@alfresco/adf-cli/ && mkdir -p ./node_modules/@alfresco/adf-cli/ && cp -R ./dist/libs/cli/* ./node_modules/@alfresco/adf-cli/" - } - ] - }, - "dependsOn": [ - { - "projects": "self", - "target": "build" - } - ] - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "lib/cli/**/*.ts", - "lib/cli/**/*.html" - ] - } - }, - "npm-publish": { - "executor": "nx:run-commands", - "dependsOn": [ - "build" - ], - "options": { - "cwd": "dist/libs/cli", - "commands": [ - { - "command": "npm publish --tag {args.tag}", - "forwardAllArgs": true - } - ] - } - } - } - }, - "stories": { - "root": "lib/stories", - "sourceRoot": "lib/stories", - "projectType": "library", - "architect": { - "storybook": { - "builder": "@storybook/angular:start-storybook", - "options": { - "port": 4400, - "browserTarget": "stories:storybook", - "configDir": "lib/stories/.storybook", - "compodoc": false, - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - }, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ] - }, - "configurations": { - "ci": { - "quiet": true - } - } - }, - "build-storybook": { - "builder": "@storybook/angular:build-storybook", - "options": { - "browserTarget": "stories:build-storybook", - "configDir": "lib/stories/.storybook", - "outputDir": "dist/storybook/stories", - "compodoc": false, - "styles": [ - "demo-shell/src/styles.scss", - "demo-shell/src/custom-style-dev.scss", - "node_modules/cropperjs/dist/cropper.min.css", - "node_modules/pdfjs-dist/web/pdf_viewer.css" - ], - "stylePreprocessorOptions": { - "includePaths": [ - "lib", "lib/core/src/lib" - ] - } - }, - "configurations": { - "ci": { - "quiet": true - } - } - } - } - } - }, - "defaultProject": "demoshell" -} diff --git a/lib/cli/package-lock.json b/lib/cli/package-lock.json index d14936347f0..fd4e1a744be 100644 --- a/lib/cli/package-lock.json +++ b/lib/cli/package-lock.json @@ -9,7 +9,7 @@ "version": "6.9.0", "license": "Apache-2.0", "dependencies": { - "@alfresco/js-api": ">=7.7.0", + "@alfresco/js-api": ">=7.9.0-0", "commander": "^6.2.1", "ejs": "^3.1.9", "license-checker": "^25.0.1", @@ -30,9 +30,9 @@ } }, "node_modules/@alfresco/js-api": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-7.7.0.tgz", - "integrity": "sha512-qD88MfQ+7fBv3vFi0Ju1oEaDAE9L+VxISlmpXZq1HYkBCNcSrqbFwi8ZCBPb3gZPnKG88edebTTqC6MYsusFmQ==", + "version": "7.9.0-9696486045", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-7.9.0-9696486045.tgz", + "integrity": "sha512-S3OHXjw0v/YmsT90JJWp4WRGw070gpFGEowbleP8PhV6o5A+tJ4d4HYroRzk2mbI6Cq6RKdAw1hwYcE6KAaJnw==", "dependencies": { "event-emitter": "^0.3.5", "superagent": "^9.0.1", diff --git a/lib/cli/package.json b/lib/cli/package.json index 1a8ef5c35f4..99bff9ee828 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -20,7 +20,7 @@ "dist": "rm -rf ../../dist/libs/cli && npm run build && cp -R ./bin ../../dist/libs/cli && cp -R ./resources ../../dist/libs/cli && cp -R ./templates ../../dist/libs/cli && cp ./package.json ../../dist/libs/cli" }, "dependencies": { - "@alfresco/js-api": ">=7.9.0", + "@alfresco/js-api": ">=7.9.0-0", "commander": "^6.2.1", "ejs": "^3.1.9", "license-checker": "^25.0.1", diff --git a/lib/cli/tsconfig.json b/lib/cli/tsconfig.json index 77703f589a1..4606b9b846a 100644 --- a/lib/cli/tsconfig.json +++ b/lib/cli/tsconfig.json @@ -19,7 +19,7 @@ "target": "es2018", "lib": ["es2018", "dom"], "baseUrl": ".", - "typeRoots": ["node_modules/@types"], + "typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ], "types": ["node"], "paths": { "@alfresco/js-api": ["../../dist/libs/js-api"], diff --git a/lib/eslint-angular/project.json b/lib/eslint-angular/project.json index 01755b2c2dd..ad07ef7e16e 100644 --- a/lib/eslint-angular/project.json +++ b/lib/eslint-angular/project.json @@ -12,6 +12,7 @@ "outputPath": "dist/libs/eslint-plugin-eslint-angular", "main": "lib/eslint-angular/index.ts", "generatePackageJson": true, + "isolatedConfig": false, "tsConfig": "lib/eslint-angular/tsconfig.lib.prod.json", "stylePreprocessorOptions": { "includePaths": ["lib", "lib/core/src/lib"] diff --git a/lib/js-api/package.json b/lib/js-api/package.json index 33449e43002..2f919d3c3f5 100644 --- a/lib/js-api/package.json +++ b/lib/js-api/package.json @@ -5,7 +5,8 @@ "description": "JavaScript client library for the Alfresco REST API", "author": "Hyland Software, Inc. and its affiliates", "keywords": [ - "alfresco" + "alfresco", + "js-api" ], "repository": { "type": "git", diff --git a/lib/js-api/project.json b/lib/js-api/project.json new file mode 100644 index 00000000000..10c488304e3 --- /dev/null +++ b/lib/js-api/project.json @@ -0,0 +1,77 @@ +{ + "name": "js-api", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "sourceRoot": "lib/js-api/src", + "prefix": "adf", + "targets": { + "build": { + "executor": "nx:run-commands", + "options": { + "command": "npm run js_api_build" + }, + "configurations": { + "production": {} + }, + "defaultConfiguration": "production" + }, + "bundle": { + "executor": "nx:run-commands", + "options": { + "commands": [ + { + "command": "echo cli bundle created" + } + ] + }, + "dependsOn": [ + "copyToNodeModules" + ] + }, + "copyToNodeModules": { + "executor": "nx:run-commands", + "options": { + "commands": [ + { + "command": "rm -rf ./node_modules/@alfresco/js-api/ && mkdir -p ./node_modules/@alfresco/js-api/ && cp -R ./dist/libs/js-api/* ./node_modules/@alfresco/js-api/" + } + ] + }, + "dependsOn": [ + { + "projects": "self", + "target": "build" + } + ] + }, + "test": { + "executor": "nx:run-commands", + "options": { + "commands": ["TS_NODE_PROJECT=lib/js-api/test/tsconfig.json mocha --full-trace --config lib/js-api/.mocharc.json"] + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "lib/js-api/**/*.ts" + ] + } + }, + "npm-publish": { + "executor": "nx:run-commands", + "dependsOn": [ + "build" + ], + "options": { + "cwd": "dist/libs/js-api", + "commands": [ + { + "command": "npm publish --tag {args.tag}", + "forwardAllArgs": true + } + ] + } + } + } +} diff --git a/lib/js-api/tsconfig.json b/lib/js-api/tsconfig.json index c4d1b98a8fe..d4e7cb31ab2 100644 --- a/lib/js-api/tsconfig.json +++ b/lib/js-api/tsconfig.json @@ -17,7 +17,7 @@ "target": "es2015", "outDir": "./.out", "lib": ["es2018", "dom"], - "typeRoots": ["node_modules/@types"], + "typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ], "types": [] }, "exclude": [".history", "*/node_modules", "config", "performance", "coverage", "node_modules", "package", "dist", "test"] diff --git a/lib/testing/project.json b/lib/testing/project.json index 85797703a6e..122457b86c8 100644 --- a/lib/testing/project.json +++ b/lib/testing/project.json @@ -13,6 +13,7 @@ "main": "lib/testing/index.ts", "generatePackageJson": true, "tsConfig": "lib/testing/tsconfig.lib.prod.json", + "isolatedConfig": false, "stylePreprocessorOptions": { "includePaths": ["lib", "lib/core/src/lib"] }, diff --git a/package-lock.json b/package-lock.json index 1e8b5aa56cc..ef648665ea3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -183,8 +183,9 @@ "link": true }, "node_modules/@alfresco/js-api": { - "version": "7.9.0-9587076202", - "license": "Apache-2.0", + "version": "7.9.0-9696486045", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-7.9.0-9696486045.tgz", + "integrity": "sha512-S3OHXjw0v/YmsT90JJWp4WRGw070gpFGEowbleP8PhV6o5A+tJ4d4HYroRzk2mbI6Cq6RKdAw1hwYcE6KAaJnw==", "dependencies": { "event-emitter": "^0.3.5", "superagent": "^9.0.1", diff --git a/tools/doc/tsconfig.json b/tools/doc/tsconfig.json index 26a4d639810..5c5fd0f875a 100644 --- a/tools/doc/tsconfig.json +++ b/tools/doc/tsconfig.json @@ -7,7 +7,7 @@ "noUnusedLocals": true, "target": "es5", "types": ["node", "@paperist/types-remark"], - "typeRoots": ["./node_modules/@types"], + "typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ], "lib": ["es2018", "dom"] }, "files": [ diff --git a/tsconfig.json b/tsconfig.json index d8ecf9dbb38..4eccfc6f8a8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,7 @@ "target": "es2015", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "typeRoots": ["node_modules/@types"], + "typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ], "types": ["jasmine", "node", "jasminewd2"], "lib": ["es2018", "esnext.array", "esnext.asynciterable", "dom"], "paths": { @@ -35,7 +35,7 @@ "@alfresco/adf-process-services": ["lib/process-services/src/public-api.ts"], "@alfresco/adf-process-services-cloud": ["lib/process-services-cloud/src/public-api.ts"], "@alfresco/adf-testing": ["lib/testing/src/public-api.ts"], - "@alfresco/js-api": ["lib/js-api/src/index.ts"] + "@alfresco/js-api": ["lib/js-api/index.ts"] } }, "exclude": ["lib/config", "integration", "scripts", "assets", "tools", "node_modules"],