Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
feat: Upgrade to angular 12
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires angular 12
  • Loading branch information
scttcper committed May 31, 2021
1 parent 252f3b7 commit f505ebb
Show file tree
Hide file tree
Showing 18 changed files with 28,338 additions and 10,357 deletions.
4 changes: 2 additions & 2 deletions .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major version
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-11 # For IE 9-11 support, remove 'not'.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
version: 2.1
orbs:
browser-tools: circleci/browser-tools@1.1.0
jobs:
test:
docker:
- image: circleci/node:14-browsers
- image: cimg/node:current-browsers
environment:
CHROME_BIN: '/usr/bin/google-chrome'
steps:
- browser-tools/install-chrome
- checkout
- run:
name: npm-install
Expand All @@ -16,12 +19,15 @@ jobs:
- run:
name: lint
command: npm run lint
- run:
name: ghpages
command: npm run ghpages
- run:
name: codecov
command: bash <(curl -s https://codecov.io/bash)
release:
docker:
- image: circleci/node:14
- image: cimg/node:current
steps:
- checkout
- run: npm ci
Expand Down
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ Latest version available for each version of Angular
| 3.4.3 | 6.x 7.x |
| 4.0.2 | 8.x |
| 5.0.1 | 9.x |
| current | >= 10.x |
| 6.1.1 | >= 10.x |
| current | >= 12.x |

### Quickstart

Expand Down
28 changes: 17 additions & 11 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,20 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -101,18 +106,19 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}},
"defaultProject": "ngx-trend"
}
},
"defaultProject": "ngx-trend",
"cli": {
"defaultCollection": "@angular-eslint/schematics"
}
}
Loading

0 comments on commit f505ebb

Please sign in to comment.