Skip to content

Commit

Permalink
feat!: update to Angular 12 (#2110)
Browse files Browse the repository at this point in the history
* feat!: update to Angular 12

* feat(demo): new utility `assets` (to get URL to file from assets)

* chore: run `ng update @angular/cli@12 --migrate-only production-by-default`

* fix(demo-integrations): addition to `stubExternalIcons`

* fix: update `@nguniversal/express-engine`-dependency
  • Loading branch information
nsbarsukov authored Jul 15, 2022
1 parent d84484d commit 5d14172
Show file tree
Hide file tree
Showing 39 changed files with 9,410 additions and 15,556 deletions.
50 changes: 30 additions & 20 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@
"builder": "@angular-devkit/build-angular:browser",
"outputs": ["dist/demo"],
"options": {
"aot": true,
"outputPath": "dist/demo/browser",
"index": "projects/demo/src/index.html",
"main": "projects/demo/src/main.browser.ts",
Expand Down Expand Up @@ -507,7 +506,13 @@
"node_modules/prismjs/components/prism-markup.min.js",
"node_modules/prismjs/components/prism-typescript.min.js"
],
"allowedCommonJsDependencies": ["angular2-text-mask", "markdown-it"]
"allowedCommonJsDependencies": ["angular2-text-mask", "markdown-it"],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand All @@ -521,9 +526,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": false,
"vendorChunk": true,
"buildOptimizer": true,
"statsJson": false,
"progress": false,
Expand All @@ -548,9 +550,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": false,
"vendorChunk": true,
"buildOptimizer": true,
"statsJson": false,
"progress": false,
Expand Down Expand Up @@ -582,8 +581,10 @@
},
"ru": {
"localize": ["ru"]
}
}
},
"development": {}
},
"defaultConfiguration": "production"
},
"mkcert": {
"builder": "@nrwl/workspace:run-commands",
Expand All @@ -602,7 +603,6 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demo:build",
"port": 3333,
"sslCert": ".ssl/localhost.pem",
"sslKey": ".ssl/localhost-key.pem"
Expand All @@ -620,8 +620,12 @@
},
"ru": {
"browserTarget": "demo:build:ru"
},
"development": {
"browserTarget": "demo:build:development"
}
}
},
"defaultConfiguration": "development"
},
"serve:ssl": {
"builder": "@nrwl/workspace:run-commands",
Expand All @@ -645,16 +649,18 @@
},
"serve:ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
"options": {
"browserTarget": "demo:build",
"serverTarget": "demo:server"
},
"options": {},
"configurations": {
"production": {
"browserTarget": "demo:build:production",
"serverTarget": "demo:server:production"
},
"development": {
"serverTarget": "demo:server:development",
"browserTarget": "demo:build:development"
}
}
},
"defaultConfiguration": "development"
},
"serve:compiled": {
"builder": "@nrwl/workspace:run-commands",
Expand All @@ -668,15 +674,19 @@
"tsConfig": "projects/demo/tsconfig.server.json",
"stylePreprocessorOptions": {
"includePaths": ["projects/core/styles"]
}
},
"sourceMap": true,
"optimization": false
},
"configurations": {
"production": {
"outputHashing": "media",
"sourceMap": false,
"optimization": true
}
}
},
"development": {}
},
"defaultConfiguration": "production"
},
"prerender": {
"builder": "@nguniversal/builders:prerender",
Expand Down
Loading

0 comments on commit 5d14172

Please sign in to comment.