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 10, 2023
1 parent 0a12443 commit c85068b
Show file tree
Hide file tree
Showing 17 changed files with 11,657 additions and 12,706 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

- name: Install dependencies
run: |
npm install
npm ci
npm install -f
npm ci -f
- name: Test
run: |
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 c85068b

Please sign in to comment.