Skip to content

Commit

Permalink
build: backward support angular v11
Browse files Browse the repository at this point in the history
  • Loading branch information
enten committed Oct 9, 2023
1 parent f08bf83 commit 5620c9c
Show file tree
Hide file tree
Showing 16 changed files with 10,275 additions and 32,213 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
node-version:
- 16.x
- 14.x

steps:
- uses: actions/checkout@v2
Expand Down
31 changes: 13 additions & 18 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
Expand All @@ -38,13 +38,13 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
"maximumWarning": "6kb",
"maximumError": "10kb"
}
],
"fileReplacements": [
Expand All @@ -65,20 +65,18 @@
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "ngx-sticky-app:build:development"
},
"configurations": {
"production": {
"browserTarget": "ngx-sticky-app:build:production"
},
"development": {
"browserTarget": "ngx-sticky-app:build:development"
}
},
"defaultConfiguration": "development"
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
Expand Down Expand Up @@ -106,17 +104,14 @@
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/ngx-sticky/ng-package.json"
"project": "projects/ngx-sticky/ng-package.json",
"tsConfig": "projects/ngx-sticky/tsconfig.lib.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-sticky/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ngx-sticky/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
Expand Down
Loading

0 comments on commit 5620c9c

Please sign in to comment.