Skip to content

Commit c227afd

Browse files
committed
first commit 🎉
0 parents  commit c227afd

36 files changed

+20647
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
.angular
33+
/.angular/cache
34+
.sass-cache/
35+
/connect.lock
36+
/coverage
37+
/libpeerconnection.log
38+
testem.log
39+
/typings
40+
41+
# System files
42+
.DS_Store
43+
Thumbs.db

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "pwa-chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# NgxInputCounter
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.1.3.
4+
5+
## Getting Started
6+
7+
### Versions
8+
9+
| Angular | lib |
10+
| -------- |:------:|
11+
| >=15.0.0 | v0.0.x |
12+
13+
### Instalation
14+
15+
```
16+
npm i lib
17+
```
18+
19+
## Usage
20+
21+
Import the module
22+
23+
```typescript
24+
import { NgxInputCounterModule } from 'lib';
25+
@NgModule({
26+
...
27+
imports: [
28+
...,
29+
NgxInputCounterModule,
30+
],
31+
})
32+
```
33+
34+
Use in your components
35+
36+
<ngx-input-counter [(ngModel)]="qty"></ngx-input-counter>
37+
38+
39+
## Development server
40+
41+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
42+
43+
## Running unit tests
44+
45+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
46+
47+
## Running end-to-end tests
48+
49+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
50+
51+
## Contributing
52+
53+
See Contributing Guide.
54+
55+
## License
56+
57+
MIT

angular.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ngx-input-counter": {
7+
"projectType": "library",
8+
"root": "projects/ngx-input-counter",
9+
"sourceRoot": "projects/ngx-input-counter/src",
10+
"prefix": "lib",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-angular:ng-packagr",
14+
"options": {
15+
"project": "projects/ngx-input-counter/ng-package.json"
16+
},
17+
"configurations": {
18+
"production": {
19+
"tsConfig": "projects/ngx-input-counter/tsconfig.lib.prod.json"
20+
},
21+
"development": {
22+
"tsConfig": "projects/ngx-input-counter/tsconfig.lib.json"
23+
}
24+
},
25+
"defaultConfiguration": "production"
26+
},
27+
"test": {
28+
"builder": "@angular-devkit/build-angular:karma",
29+
"options": {
30+
"tsConfig": "projects/ngx-input-counter/tsconfig.spec.json",
31+
"polyfills": [
32+
"zone.js",
33+
"zone.js/testing"
34+
]
35+
}
36+
}
37+
}
38+
},
39+
"demo": {
40+
"projectType": "application",
41+
"schematics": {
42+
"@schematics/angular:component": {
43+
"style": "scss"
44+
}
45+
},
46+
"root": "projects/demo",
47+
"sourceRoot": "projects/demo/src",
48+
"prefix": "app",
49+
"architect": {
50+
"build": {
51+
"builder": "@angular-devkit/build-angular:browser",
52+
"options": {
53+
"outputPath": "dist/demo",
54+
"index": "projects/demo/src/index.html",
55+
"main": "projects/demo/src/main.ts",
56+
"polyfills": [
57+
"zone.js"
58+
],
59+
"tsConfig": "projects/demo/tsconfig.app.json",
60+
"inlineStyleLanguage": "scss",
61+
"assets": [
62+
"projects/demo/src/favicon.ico",
63+
"projects/demo/src/assets"
64+
],
65+
"styles": [
66+
"projects/demo/src/styles.scss"
67+
],
68+
"scripts": []
69+
},
70+
"configurations": {
71+
"production": {
72+
"budgets": [
73+
{
74+
"type": "initial",
75+
"maximumWarning": "500kb",
76+
"maximumError": "1mb"
77+
},
78+
{
79+
"type": "anyComponentStyle",
80+
"maximumWarning": "2kb",
81+
"maximumError": "4kb"
82+
}
83+
],
84+
"outputHashing": "all"
85+
},
86+
"development": {
87+
"buildOptimizer": false,
88+
"optimization": false,
89+
"vendorChunk": true,
90+
"extractLicenses": false,
91+
"sourceMap": true,
92+
"namedChunks": true
93+
}
94+
},
95+
"defaultConfiguration": "production"
96+
},
97+
"serve": {
98+
"builder": "@angular-devkit/build-angular:dev-server",
99+
"configurations": {
100+
"production": {
101+
"browserTarget": "demo:build:production"
102+
},
103+
"development": {
104+
"browserTarget": "demo:build:development"
105+
}
106+
},
107+
"defaultConfiguration": "development"
108+
},
109+
"extract-i18n": {
110+
"builder": "@angular-devkit/build-angular:extract-i18n",
111+
"options": {
112+
"browserTarget": "demo:build"
113+
}
114+
},
115+
"test": {
116+
"builder": "@angular-devkit/build-angular:karma",
117+
"options": {
118+
"polyfills": [
119+
"zone.js",
120+
"zone.js/testing"
121+
],
122+
"tsConfig": "projects/demo/tsconfig.spec.json",
123+
"inlineStyleLanguage": "scss",
124+
"assets": [
125+
"projects/demo/src/favicon.ico",
126+
"projects/demo/src/assets"
127+
],
128+
"styles": [
129+
"projects/demo/src/styles.scss"
130+
],
131+
"scripts": []
132+
}
133+
}
134+
}
135+
}
136+
}
137+
}

0 commit comments

Comments
 (0)