From 6dc2747da06eadf5ddbf1729802da7aaa4d55a84 Mon Sep 17 00:00:00 2001 From: timdeschryver <28659384+timdeschryver@users.noreply.github.com> Date: Mon, 6 Dec 2021 19:00:25 +0100 Subject: [PATCH] fix: correct peer dependencies --- angular.json | 296 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 296 insertions(+) create mode 100644 angular.json diff --git a/angular.json b/angular.json new file mode 100644 index 00000000..50afdec9 --- /dev/null +++ b/angular.json @@ -0,0 +1,296 @@ +{ + "version": 1, + "cli": { + "analytics": false + }, + "defaultProject": "example-app", + "projects": { + "example-app": { + "projectType": "application", + "root": "apps/example-app", + "sourceRoot": "apps/example-app/src", + "prefix": "app", + "schematics": {}, + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/apps/example-app", + "index": "apps/example-app/src/index.html", + "main": "apps/example-app/src/main.ts", + "polyfills": "apps/example-app/src/polyfills.ts", + "tsConfig": "apps/example-app/tsconfig.app.json", + "assets": ["apps/example-app/src/favicon.ico", "apps/example-app/src/assets"], + "styles": ["apps/example-app/src/styles.css"], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "apps/example-app/src/environments/environment.ts", + "with": "apps/example-app/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + }, + "outputs": ["{options.outputPath}"] + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "example-app:build" + }, + "configurations": { + "production": { + "browserTarget": "example-app:build:production" + } + } + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "example-app:build" + } + }, + "lint": { + "builder": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "apps/example-app/**/*.ts", + "apps/example-app/**/*.html", + "apps/example-app/src/**/*.html", + "apps/example-app/src/**/*.html", + "apps/example-app/src/**/*.html" + ] + }, + "outputs": ["{options.outputFile}"] + }, + "test": { + "builder": "@nrwl/jest:jest", + "options": { + "jestConfig": "apps/example-app/jest.config.js" + }, + "outputs": ["coverage/"] + } + } + }, + "example-app-karma": { + "projectType": "application", + "root": "apps/example-app-karma", + "sourceRoot": "apps/example-app-karma/src", + "prefix": "app", + "schematics": {}, + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/apps/example-app-karma", + "index": "apps/example-app-karma/src/index.html", + "main": "apps/example-app-karma/src/main.ts", + "polyfills": "apps/example-app-karma/src/polyfills.ts", + "tsConfig": "apps/example-app-karma/tsconfig.app.json", + "assets": ["apps/example-app-karma/src/favicon.ico", "apps/example-app-karma/src/assets"], + "styles": [], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "apps/example-app-karma/src/environments/environment.ts", + "with": "apps/example-app-karma/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + }, + "outputs": ["{options.outputPath}"] + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "example-app-karma:build" + }, + "configurations": { + "production": { + "browserTarget": "example-app-karma:build:production" + } + } + }, + "lint": { + "builder": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "apps/example-app-karma/**/*.ts", + "apps/example-app-karma/**/*.html", + "apps/example-app-karma/src/**/*.html", + "apps/example-app-karma/src/**/*.html", + "apps/example-app-karma/src/**/*.html" + ] + }, + "outputs": ["{options.outputFile}"] + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "apps/example-app-karma/src/test.ts", + "tsConfig": "apps/example-app-karma/tsconfig.spec.json", + "polyfills": "apps/example-app-karma/src/polyfills.ts", + "karmaConfig": "apps/example-app-karma/karma.conf.js", + "styles": [], + "scripts": [], + "assets": [] + } + } + } + }, + "jest-utils": { + "root": "projects/jest-utils", + "sourceRoot": "projects/jest-utils/src", + "projectType": "library", + "prefix": "lib", + "architect": { + "build-package": { + "builder": "@angular-devkit/build-angular:ng-packagr", + "options": { + "tsConfig": "projects/jest-utils/tsconfig.lib.json", + "project": "projects/jest-utils/ng-package.json" + }, + "configurations": { + "production": { + "project": "projects/jest-utils/ng-package.json", + "tsConfig": "projects/jest-utils/tsconfig.lib.json" + } + } + }, + "lint": { + "builder": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "projects/jest-utils/**/*.ts", + "projects/jest-utils/**/*.html", + "projects/jest-utils/src/**/*.html", + "projects/jest-utils/src/**/*.html", + "projects/jest-utils/src/**/*.html" + ] + }, + "outputs": ["{options.outputFile}"] + }, + "build": { + "builder": "@nrwl/workspace:run-commands", + "options": { + "parallel": false, + "commands": [ + { + "command": "ng run jest-utils:build-package" + } + ] + } + }, + "test": { + "builder": "@nrwl/jest:jest", + "options": { + "jestConfig": "projects/jest-utils/jest.config.js" + }, + "outputs": ["coverage/projects/jest-utils"] + } + } + }, + "testing-library": { + "root": "projects/testing-library", + "sourceRoot": "projects/testing-library/src", + "projectType": "library", + "prefix": "lib", + "architect": { + "build-package": { + "builder": "@angular-devkit/build-angular:ng-packagr", + "options": { + "tsConfig": "projects/testing-library/tsconfig.lib.json", + "project": "projects/testing-library/ng-package.json" + }, + "configurations": { + "production": { + "project": "projects/testing-library/ng-package.json", + "tsConfig": "projects/testing-library/tsconfig.lib.json" + } + } + }, + "lint": { + "builder": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "projects/testing-library/**/*.ts", + "projects/testing-library/**/*.html", + "projects/testing-library/src/**/*.html", + "projects/testing-library/src/**/*.html", + "projects/testing-library/src/**/*.html" + ] + }, + "outputs": ["{options.outputFile}"] + }, + "build": { + "builder": "@nrwl/workspace:run-commands", + "options": { + "parallel": false, + "commands": [ + { + "command": "ng run testing-library:build-package" + }, + { + "command": "npm run build:schematics" + }, + { + "command": "cpy ./README.md ./dist/@testing-library/angular" + } + ] + } + }, + "test": { + "builder": "@nrwl/jest:jest", + "options": { + "jestConfig": "projects/testing-library/jest.config.js" + }, + "outputs": ["coverage/projects/testing-library"] + } + } + } + } +}