Skip to content

Commit

Permalink
Update solution to Angular v17
Browse files Browse the repository at this point in the history
  • Loading branch information
changhuixu committed Dec 1, 2023
1 parent 4377ac3 commit 52e97c3
Show file tree
Hide file tree
Showing 9 changed files with 4,134 additions and 2,287 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/ngx-digit-only
folder: dist/ngx-digit-only/browser
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"configurations": [
{
"name": "ng serve",
"type": "pwa-chrome",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
Expand Down
48 changes: 24 additions & 24 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
"ngx-digit-only": {
"projectType": "application",
"schematics": {
"@schematics/angular:class": {
"skipTests": true
},
"@schematics/angular:component": {
"skipTests": true,
"standalone": false
},
"@schematics/angular:class": {
"skipTests": true
},
"@schematics/angular:directive": {
"skipTests": true
"skipTests": true,
"standalone": false
},
"@schematics/angular:guard": {
"skipTests": true
Expand All @@ -22,7 +24,8 @@
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
"skipTests": true,
"standalone": false
},
"@schematics/angular:resolver": {
"skipTests": true
Expand All @@ -36,22 +39,15 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ngx-digit-only",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"browser": "src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
Expand All @@ -71,12 +67,9 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"sourceMap": true
}
},
"defaultConfiguration": "production"
Expand All @@ -85,18 +78,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "ngx-digit-only:build:production"
"buildTarget": "ngx-digit-only:build:production"
},
"development": {
"browserTarget": "ngx-digit-only:build:development"
"buildTarget": "ngx-digit-only:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ngx-digit-only:build"
"buildTarget": "ngx-digit-only:build"
}
}
}
Expand All @@ -121,6 +114,13 @@
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": "projects/uiowa/digit-only/tsconfig.spec.json",
"polyfills": ["zone.js", "zone.js/testing"]
}
}
}
}
Expand Down
Loading

0 comments on commit 52e97c3

Please sign in to comment.