Skip to content

Commit

Permalink
upgrade angular to v17
Browse files Browse the repository at this point in the history
  • Loading branch information
biaogebusy committed Jun 21, 2024
1 parent ec24d4d commit 456e490
Show file tree
Hide file tree
Showing 374 changed files with 36,081 additions and 64,225 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@

| Web builder | Angular |
| :---------- | :------ |
| v8 | v17 |
| v7 | v16 |
| v6 | v14 |
| v5 | v12 |
| <=v4 | v11 |
Expand Down
165 changes: 55 additions & 110 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/browser",
"outputPath": {
"base": "dist"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": [
{
Expand Down Expand Up @@ -55,9 +56,13 @@
"styles": [
"src/styles.scss",
"node_modules/swiper/swiper-bundle.css",
"node_modules/ngx-lightbox/lightbox.css",
"node_modules/social-share.js/dist/css/share.min.css",
"node_modules/video.js/dist/video-js.css",
"node_modules/lightgallery/css/lightgallery-bundle.min.css",
"node_modules/material-design-icons/iconfont/material-icons.css",
"node_modules/quill/dist/quill.core.css",
"node_modules/quill/dist/quill.snow.css",
"node_modules/jsoneditor/dist/jsoneditor.min.css",
{
"input": "src/theme/theme-config/blue-config.scss",
"bundleName": "blue-theme"
Expand All @@ -80,25 +85,23 @@
"node_modules/social-share.js/src/js/social-share.js"
],
"allowedCommonJsDependencies": [
"hammerjs",
"highlight.js",
"lodash",
"ngx-lightbox",
"ngx-packery",
"crypto-js",
"@babel",
"@babel/runtime/helpers/inherits",
"@babel/runtime/helpers/construct",
"@babel/runtime/helpers/inheritsLoose",
"global/document",
"jspdf-autotable"
"jspdf-autotable",
"jsoneditor",
"quill",
"dompurify"
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"browser": "src/main.ts",
"server": "src/main.server.ts",
"stylePreprocessorOptions": {
"includePaths": ["."]
},
"prerender": true,
"ssr": {
"entry": "server.ts"
}
},
"configurations": {
"production": {
Expand All @@ -113,8 +116,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -128,108 +129,43 @@
}
]
},
"xinshi": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.xinshi.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "3mb",
"maximumError": "8mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "20kb",
"maximumError": "32kb"
}
]
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": false
}
},
"defaultConfiguration": ""
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json",
"sourceMap": true,
"optimization": false
},
"configurations": {
"production": {
"outputHashing": "media",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"sourceMap": false,
"optimization": true
},
"xinshi": {
"outputHashing": "media",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.xinshi.ts"
}
],
"sourceMap": false,
"optimization": true
}
},
"defaultConfiguration": ""
},
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
"options": {
"browserTarget": "xinshi:build",
"serverTarget": "xinshi:server"
},
"configurations": {
"production": {
"browserTarget": "xinshi:build:production",
"serverTarget": "xinshi:server:production"
}
}
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "xinshi:build",
"proxyConfig": "config/proxy.config.js",
"disableHostCheck": true
"disableHostCheck": true,
"buildTarget": "xinshi:build"
},
"configurations": {
"production": {
"browserTarget": "xinshi:build:production"
"buildTarget": "xinshi:build:production"
},
"development": {
"buildTarget": "xinshi:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "xinshi:build"
"buildTarget": "xinshi:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
Expand Down Expand Up @@ -261,15 +197,24 @@
}
}
},
"prerender": {
"builder": "@nguniversal/builders:prerender",
"storybook": {
"builder": "@storybook/angular:start-storybook",
"options": {
"configDir": ".storybook",
"browserTarget": "xinshi:build:development",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"port": 6006
}
},
"build-storybook": {
"builder": "@storybook/angular:build-storybook",
"options": {
"configDir": ".storybook",
"browserTarget": "xinshi:build:production",
"serverTarget": "xinshi:server:production",
"routes": ["/"]
},
"configurations": {
"production": {}
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"outputDir": "storybook-static"
}
}
}
Expand Down
Loading

0 comments on commit 456e490

Please sign in to comment.