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 9077806 commit e39a70b
Show file tree
Hide file tree
Showing 14 changed files with 4,226 additions and 2,529 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- name: Checkout 🛎️
Expand All @@ -26,6 +26,7 @@ jobs:
npm ci
npm run build:lib
npm run build:gh-pages
cp ./dist/date-range-picker-demo/browser/index.html ./dist/date-range-picker-demo/browser/404.html
- name: Run e2e tests 🧪
run: |
Expand All @@ -35,4 +36,4 @@ jobs:
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/date-range-picker-demo
folder: dist/date-range-picker-demo/browser
9 changes: 1 addition & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@
"configurations": [
{
"name": "ng serve",
"type": "pwa-chrome",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"cSpell.words": [
"Changhui",
"devkit",
"packagr",
"uiowa"
Expand Down
18 changes: 0 additions & 18 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
35 changes: 20 additions & 15 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"skipTests": true
"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,14 +39,19 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/date-range-picker-demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
Expand All @@ -55,7 +63,7 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "600kb",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
Expand All @@ -67,12 +75,9 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"sourceMap": true
}
},
"defaultConfiguration": "production"
Expand All @@ -81,18 +86,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "date-range-picker-demo:build:production"
"buildTarget": "date-range-picker-demo:build:production"
},
"development": {
"browserTarget": "date-range-picker-demo:build:development"
"buildTarget": "date-range-picker-demo:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "date-range-picker-demo:build"
"buildTarget": "date-range-picker-demo:build"
}
}
}
Expand Down
Loading

0 comments on commit e39a70b

Please sign in to comment.