Skip to content

Commit

Permalink
update to angular 13
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko committed Nov 8, 2021
1 parent 24ea42d commit add1c08
Show file tree
Hide file tree
Showing 8 changed files with 739 additions and 2,725 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.angular/cache
.idea/
typings/
node_modules/
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Angular CC Library - for validation and formating of input parameters
npm install angular-cc-library --save
```


## Version Compatibility
Version `3.*` and above built with [partial Ivy metadata](https://angular.io/guide/creating-libraries#ensuring-library-version-compatibility) and compatible with Angular >= 13 .

If you use an older version of Angular please use version `2.*`

## Formatting Directive
On the input fields, add the specific directive to format inputs.
All fields must be `type='tel'` in order to support spacing and additional characters
Expand Down
23 changes: 0 additions & 23 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@
"tsConfig": "tsconfig.spec.json",
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/angular-cc-library/tsconfig.lib.json",
"projects/angular-cc-library/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
Expand Down Expand Up @@ -129,17 +117,6 @@
"browserTarget": "example:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/example/tsconfig.app.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-cc-library",
"version": "2.1.3",
"version": "3.0.0",
"scripts": {
"run:demo": "ng serve example",
"build:library": "ng build angular-cc-library --configuration production ",
Expand All @@ -12,33 +12,33 @@
},
"private": true,
"dependencies": {
"@angular-builders/jest": "^12.1.2",
"@angular/common": "~12.2.13",
"@angular/compiler": "~12.2.13",
"@angular/core": "~12.2.13",
"@angular/forms": "~12.2.13",
"@angular/platform-browser": "~12.2.13",
"@angular/platform-browser-dynamic": "~12.2.13",
"@angular-builders/jest": "^13.0.0-beta.0",
"@angular/common": "~13.0.0",
"@angular/compiler": "~13.0.0",
"@angular/core": "~13.0.0",
"@angular/forms": "~13.0.0",
"@angular/platform-browser": "~13.0.0",
"@angular/platform-browser-dynamic": "~13.0.0",
"@types/jest": "^27.0.2",
"jest": "^27.3.1",
"rxjs": "~6.6.3",
"tslib": "^2.1.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~12.2.13",
"@angular/cli": "~12.2.13",
"@angular/compiler-cli": "~12.2.13",
"@angular/language-service": "~12.2.13",
"@angular-devkit/build-angular": "~13.0.1",
"@angular/cli": "~13.0.1",
"@angular/compiler-cli": "~13.0.0",
"@angular/language-service": "~13.0.0",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"husky": "^4.2.3",
"lint-staged": "^11.2.6",
"ng-packagr": "^12.2.5",
"ng-packagr": "^13.0.3",
"ngx-deploy-npm": "^1.3.2",
"ts-node": "~9.1.1",
"tslint": "~6.1.3",
"typescript": "~4.3.5"
"typescript": "~4.4.4"
},
"lint-staged": {
"*.ts": [
Expand Down
9 changes: 5 additions & 4 deletions projects/angular-cc-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-cc-library",
"version": "2.1.3",
"version": "3.0.0",
"description": "angular credit card library",
"keywords": [
"angular",
Expand All @@ -20,10 +20,11 @@
"url": "git+https://github.com/thekip/angular-cc-library.git"
},
"dependencies": {
"tslib": "^2.0.0"

},
"peerDependencies": {
"@angular/common": ">6 <13",
"@angular/core": ">6 <13"
"@angular/common": "13",
"@angular/core": "13",
"tslib": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion projects/angular-cc-library/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"declarationMap": false
},
"angularCompilerOptions": {
"enableIvy": false
"compilationMode": "partial"
}
}
10 changes: 0 additions & 10 deletions projects/example/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
Expand Down
Loading

1 comment on commit add1c08

@Datcam
Copy link

@Datcam Datcam commented on add1c08 Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good afternoon, Timofei. I am a front-end developer and I am using your library: angular-cc-library.

May I ask you to update your library to the Angular 17 version, please?

I appreciate it.

Thank you and have a nice day :)

Please sign in to comment.