Skip to content

Commit

Permalink
Refactoring for Angular 9.
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarrew committed Mar 31, 2020
1 parent 959289a commit 5fb8928
Show file tree
Hide file tree
Showing 28 changed files with 13,880 additions and 93 deletions.
53 changes: 46 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,46 @@
*.d.ts
*.js
*.map
*.metadata.json
aot
node_modules
npm-debug.log
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

21 changes: 13 additions & 8 deletions .vscode/settings.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.detectIndentation": false,
"editor.formatOnSave": true,
"editor.tabSize": 4,
"files.exclude": {
".vscode": true,
"**/*.d.ts": true,
"**/*.js": true,
"**/*.map": true,
"**/*.metadata.json": true,
"aot": true,
"node_modules": true
"**/.classpath": true,
"**/.factorypath": true,
"**/.gitignore": true,
"**/node_modules": true,
},
"html.format.wrapLineLength": 0
}
"html.format.wrapLineLength": 0,
"terminal.integrated.scrollback": 50000,
"workbench.tree.indent": 15,
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ng2-currency-mask

A very simple currency mask directive for Angular that allows using a number attribute with the ngModel. In other words, the model is a number, and not a string with a mask. It was tested in Angular version 4 and 5.
A very simple currency mask directive for Angular that allows using a number attribute with the ngModel. In other words, the model is a number, and not a string with a mask. It was tested in Angular version 9.

Note: This component is ready to AoC (Ahead-of-Time) compilation.

Expand Down
68 changes: 68 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"currency-mask": {
"projectType": "library",
"root": "projects/currency-mask",
"sourceRoot": "projects/currency-mask/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/currency-mask/tsconfig.lib.json",
"project": "projects/currency-mask/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/currency-mask/tsconfig.lib.prod.json"
}
}
}
}
},
"ng2-currency-mask": {
"projectType": "library",
"root": "projects/ng2-currency-mask",
"sourceRoot": "projects/ng2-currency-mask/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ng2-currency-mask/tsconfig.lib.json",
"project": "projects/ng2-currency-mask/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ng2-currency-mask/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ng2-currency-mask/src/test.ts",
"tsConfig": "projects/ng2-currency-mask/tsconfig.spec.json",
"karmaConfig": "projects/ng2-currency-mask/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ng2-currency-mask/tsconfig.lib.json",
"projects/ng2-currency-mask/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "currency-mask"
}
1 change: 0 additions & 1 deletion index.ngsummary.json

This file was deleted.

2 changes: 0 additions & 2 deletions index.ts

This file was deleted.

Loading

0 comments on commit 5fb8928

Please sign in to comment.