Skip to content

feat: upgrade to angular 13 #18

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
Expand All @@ -21,7 +24,9 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"parserOptions": { "project": "./tsconfig.*?.json" },
"parserOptions": {
"project": "./tsconfig.*?.json"
},
"rules": {}
},
{
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
!.vscode/extensions.json

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
245 changes: 112 additions & 133 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,130 +1,43 @@
{
"version": 1,
"projects": {
"docs": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "less"
}
},
"root": "apps/docs",
"sourceRoot": "apps/docs/src",
"prefix": "micro-sentry",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/apps/docs",
"index": "apps/docs/src/index.html",
"main": "apps/docs/src/main.ts",
"polyfills": "apps/docs/src/polyfills.ts",
"tsConfig": "apps/docs/tsconfig.app.json",
"aot": true,
"assets": ["apps/docs/src/favicon.ico", "apps/docs/src/assets"],
"styles": ["apps/docs/src/styles.less"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "apps/docs/src/environments/environment.ts",
"with": "apps/docs/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "docs:build"
},
"configurations": {
"production": {
"browserTarget": "docs:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "docs:build"
}
},
"lint": {
"builder": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["apps/docs/src/**/*.ts"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/docs/jest.config.js",
"passWithNoTests": true
}
}
}
},
"core": {
"angular": {
"projectType": "library",
"root": "libs/core",
"sourceRoot": "libs/core/src",
"root": "libs/angular",
"sourceRoot": "libs/angular/src",
"prefix": "micro-sentry",
"architect": {
"build": {
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/core/tsconfig.lib.json",
"project": "libs/core/ng-package.json",
"tsConfig": "libs/angular/tsconfig.lib.json",
"project": "libs/angular/ng-package.json",
"updateBuildableProjectDepsInPackageJson": false
},
"configurations": {
"production": {
"tsConfig": "libs/core/tsconfig.lib.prod.json"
"tsConfig": "libs/angular/tsconfig.lib.prod.json"
}
}
},
"lint": {
"builder": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["libs/core/src/**/*.ts"]
"lintFilePatterns": ["libs/angular/src/**/*.ts"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/core/jest.config.js",
"jestConfig": "libs/angular/jest.config.js",
"passWithNoTests": true
}
},
"semrel": {
"builder": "@ng-builders/semrel:release",
"options": {
"npm": {
"pkgRoot": "dist/libs/core"
"pkgRoot": "dist/libs/angular"
},
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
Expand All @@ -145,11 +58,12 @@
"release": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": ["nx build core --prod", "nx semrel core"],
"commands": ["nx build angular --prod", "nx semrel angular"],
"parallel": false
}
}
}
},
"tags": []
},
"browser": {
"projectType": "library",
Expand Down Expand Up @@ -212,45 +126,46 @@
"parallel": false
}
}
}
},
"tags": []
},
"angular": {
"core": {
"projectType": "library",
"root": "libs/angular",
"sourceRoot": "libs/angular/src",
"root": "libs/core",
"sourceRoot": "libs/core/src",
"prefix": "micro-sentry",
"architect": {
"build": {
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/angular/tsconfig.lib.json",
"project": "libs/angular/ng-package.json",
"tsConfig": "libs/core/tsconfig.lib.json",
"project": "libs/core/ng-package.json",
"updateBuildableProjectDepsInPackageJson": false
},
"configurations": {
"production": {
"tsConfig": "libs/angular/tsconfig.lib.prod.json"
"tsConfig": "libs/core/tsconfig.lib.prod.json"
}
}
},
"lint": {
"builder": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["libs/angular/src/**/*.ts"]
"lintFilePatterns": ["libs/core/src/**/*.ts"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/angular/jest.config.js",
"jestConfig": "libs/core/jest.config.js",
"passWithNoTests": true
}
},
"semrel": {
"builder": "@ng-builders/semrel:release",
"options": {
"npm": {
"pkgRoot": "dist/libs/angular"
"pkgRoot": "dist/libs/core"
},
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
Expand All @@ -271,35 +186,99 @@
"release": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": ["nx build angular --prod", "nx semrel angular"],
"commands": ["nx build core --prod", "nx semrel core"],
"parallel": false
}
}
}
}
},
"cli": {
"defaultCollection": "@nrwl/angular"
},
"schematics": {
"@nrwl/angular": {
"application": {
"linter": "eslint"
},
"library": {
"linter": "eslint"
},
"storybook-configuration": {
"linter": "eslint"
}
"tags": []
},
"@nrwl/angular:application": {
"unitTestRunner": "jest",
"e2eTestRunner": "cypress"
},
"@nrwl/angular:library": {
"unitTestRunner": "jest"
"docs": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "less"
}
},
"root": "apps/docs",
"sourceRoot": "apps/docs/src",
"prefix": "micro-sentry",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/apps/docs",
"index": "apps/docs/src/index.html",
"main": "apps/docs/src/main.ts",
"polyfills": "apps/docs/src/polyfills.ts",
"tsConfig": "apps/docs/tsconfig.app.json",
"aot": true,
"assets": ["apps/docs/src/favicon.ico", "apps/docs/src/assets"],
"styles": ["apps/docs/src/styles.less"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "apps/docs/src/environments/environment.ts",
"with": "apps/docs/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "docs:build"
},
"configurations": {
"production": {
"browserTarget": "docs:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "docs:build"
}
},
"lint": {
"builder": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["apps/docs/src/**/*.ts"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/docs/jest.config.js",
"passWithNoTests": true
}
}
},
"tags": []
}
},
"defaultProject": "docs"
}
}
6 changes: 5 additions & 1 deletion apps/docs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} }
{
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*"],
"rules": {}
}
Loading