ng2-rest 16.444.6 → 16.444.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -135
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/client/README.md +24 -24
- package/client/package.json +31 -31
- package/firedev.jsonc +43 -43
- package/package.json +4 -4
- package/tmp-environment.json +35 -35
- package/websql/README.md +24 -24
package/README.md
CHANGED
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
|
|
2
|
-
## ng2-rest ##
|
|
3
|
-
|
|
4
|
-
Robust isomorphic REST framework for browser (Angular, React etc.) and backend (NodeJS) JavaScript/TypeScript apps.
|
|
5
|
-
|
|
6
|
-
Features:
|
|
7
|
-
- Compatible with Angular (2+) (newest 13,14 also...) , React, Vue , NodeJS (works everywhere)
|
|
8
|
-
- Compatible with RxJS operators (exhaustMap, switchMap, request cancelation etc.)
|
|
9
|
-
- Based on [axios](https://axios-http.com/) => excellent alternative to Angular's [HttpClient](https://angular.io/api/common/http/HttpClient)
|
|
10
|
-
- JSONP api request handling
|
|
11
|
-
- Transfer class instance from server to client and back
|
|
12
|
-
- Elegant way of dealing with REST api ( *similar to ExpressJS routes definitions* )
|
|
13
|
-
|
|
14
|
-
(more documentation soon... )
|
|
15
|
-
|
|
16
|
-
To install this package run:
|
|
17
|
-
|
|
18
|
-
npm install ng2-rest --save
|
|
19
|
-
|
|
20
|
-
Import Resource class:
|
|
21
|
-
```ts
|
|
22
|
-
import { Resource } from 'ng2-rest/browser';
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Resource
|
|
26
|
-
========
|
|
27
|
-
|
|
28
|
-
Fit you existing API (not only REST) into new fluent objects with **Resource**
|
|
29
|
-
class observables. Use power of **async** in new angular templates;
|
|
30
|
-
|
|
31
|
-
**template.html**
|
|
32
|
-
```html
|
|
33
|
-
Users:
|
|
34
|
-
<ul *ngIf="model.allUsers() | async; else loader; let users" >
|
|
35
|
-
|
|
36
|
-
<li *ngFor="let user of users">
|
|
37
|
-
{{user.id}} {{user.fullName()}}
|
|
38
|
-
<br>
|
|
39
|
-
<input type="name" [(NgModel)]="user.name" >
|
|
40
|
-
<button (click)="model.update(user)" > Update </button>
|
|
41
|
-
</li>
|
|
42
|
-
|
|
43
|
-
</ul>
|
|
44
|
-
|
|
45
|
-
<ng-template #loader> loading users... </ng-template>
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
**component.ts**
|
|
49
|
-
```ts
|
|
50
|
-
class User {
|
|
51
|
-
name: string;
|
|
52
|
-
surname: string;
|
|
53
|
-
id: number;
|
|
54
|
-
|
|
55
|
-
fullName() {
|
|
56
|
-
return `Surname: ${this.surname}, Name: ${this.name}`;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Express.js style url endpoint model
|
|
61
|
-
// you can ommit "<User>" part is you don't wanna see response interface
|
|
62
|
-
// also you can ommit third argument ",User" is you don't wanna
|
|
63
|
-
// map response object to User class objects
|
|
64
|
-
const rest = Resource.create<User>("http://yourbackend.com/api","users/:id",{'':User} )
|
|
65
|
-
|
|
66
|
-
class UserComponent {
|
|
67
|
-
|
|
68
|
-
// Prepare your beautiful interface
|
|
69
|
-
model = {
|
|
70
|
-
allUsers: () => rest.model()
|
|
71
|
-
.array
|
|
72
|
-
.get()
|
|
73
|
-
.observable // Observable resposne (useful for Angular 2+ html templates)
|
|
74
|
-
.pipe( map({ body } => body.json) ) // get all users, body.json => User[]
|
|
75
|
-
|
|
76
|
-
userBy: (id) => rest.model({id})
|
|
77
|
-
.get() // Promise response by default
|
|
78
|
-
.then({ body } => console.log(body.json)) // get user by id, body.json => User
|
|
79
|
-
|
|
80
|
-
update: async (user:User) =>{
|
|
81
|
-
try {
|
|
82
|
-
await rest.model({id:user.id}).put(user) // Promise response by default
|
|
83
|
-
|
|
84
|
-
alert('Update sucess')
|
|
85
|
-
} catch(e) {
|
|
86
|
-
alert(e)
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
constructor() { }
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Specification
|
|
97
|
-
============
|
|
98
|
-
Example **UrlParams[]** :
|
|
99
|
-
`[ { sort: true },{ filter: 'id,5' }, { filter: 'name,test' } ]`
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
| Name | Parameters | Description |
|
|
103
|
-
| :---: | --- | ---: |
|
|
104
|
-
| **.array.** | get,post,put,head,delete,jsonp | for everything, but with arrays |
|
|
105
|
-
| **get** | `UrlParams[] ` | get model by parameters |
|
|
106
|
-
| **post** | `model, UrlParams[] ` | post object model |
|
|
107
|
-
| **put** | `model, UrlParams[]` | put object model |
|
|
108
|
-
| **head** | `model, UrlParams[]` | get head for model |
|
|
109
|
-
| **delete** | `UrlParams[]` | remove object by params |
|
|
110
|
-
| **jsonp** | `UrlParams[]` | get jsonp data |
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
# Production mode
|
|
115
|
-
===
|
|
116
|
-
Nice things to do in production mode:
|
|
117
|
-
|
|
118
|
-
**1. Disable warnings.**
|
|
119
|
-
|
|
120
|
-
If you don't wanna see warning, disable it like this:
|
|
121
|
-
```ts
|
|
122
|
-
if (environment.production) {
|
|
123
|
-
Resource.enableWarnings = false;
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
# Angular 2+ ngZone
|
|
128
|
-
If you are using Angular 2+ you need to do this in your root **app.component**:
|
|
129
|
-
```ts
|
|
130
|
-
constructor(zone:NgZone) {
|
|
131
|
-
Resource.initAngularNgZone(zone)
|
|
132
|
-
}
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
|
|
1
|
+
|
|
2
|
+
## ng2-rest ##
|
|
3
|
+
|
|
4
|
+
Robust isomorphic REST framework for browser (Angular, React etc.) and backend (NodeJS) JavaScript/TypeScript apps.
|
|
5
|
+
|
|
6
|
+
Features:
|
|
7
|
+
- Compatible with Angular (2+) (newest 13,14 also...) , React, Vue , NodeJS (works everywhere)
|
|
8
|
+
- Compatible with RxJS operators (exhaustMap, switchMap, request cancelation etc.)
|
|
9
|
+
- Based on [axios](https://axios-http.com/) => excellent alternative to Angular's [HttpClient](https://angular.io/api/common/http/HttpClient)
|
|
10
|
+
- JSONP api request handling
|
|
11
|
+
- Transfer class instance from server to client and back
|
|
12
|
+
- Elegant way of dealing with REST api ( *similar to ExpressJS routes definitions* )
|
|
13
|
+
|
|
14
|
+
(more documentation soon... )
|
|
15
|
+
|
|
16
|
+
To install this package run:
|
|
17
|
+
|
|
18
|
+
npm install ng2-rest --save
|
|
19
|
+
|
|
20
|
+
Import Resource class:
|
|
21
|
+
```ts
|
|
22
|
+
import { Resource } from 'ng2-rest/browser';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Resource
|
|
26
|
+
========
|
|
27
|
+
|
|
28
|
+
Fit you existing API (not only REST) into new fluent objects with **Resource**
|
|
29
|
+
class observables. Use power of **async** in new angular templates;
|
|
30
|
+
|
|
31
|
+
**template.html**
|
|
32
|
+
```html
|
|
33
|
+
Users:
|
|
34
|
+
<ul *ngIf="model.allUsers() | async; else loader; let users" >
|
|
35
|
+
|
|
36
|
+
<li *ngFor="let user of users">
|
|
37
|
+
{{user.id}} {{user.fullName()}}
|
|
38
|
+
<br>
|
|
39
|
+
<input type="name" [(NgModel)]="user.name" >
|
|
40
|
+
<button (click)="model.update(user)" > Update </button>
|
|
41
|
+
</li>
|
|
42
|
+
|
|
43
|
+
</ul>
|
|
44
|
+
|
|
45
|
+
<ng-template #loader> loading users... </ng-template>
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
**component.ts**
|
|
49
|
+
```ts
|
|
50
|
+
class User {
|
|
51
|
+
name: string;
|
|
52
|
+
surname: string;
|
|
53
|
+
id: number;
|
|
54
|
+
|
|
55
|
+
fullName() {
|
|
56
|
+
return `Surname: ${this.surname}, Name: ${this.name}`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Express.js style url endpoint model
|
|
61
|
+
// you can ommit "<User>" part is you don't wanna see response interface
|
|
62
|
+
// also you can ommit third argument ",User" is you don't wanna
|
|
63
|
+
// map response object to User class objects
|
|
64
|
+
const rest = Resource.create<User>("http://yourbackend.com/api","users/:id",{'':User} )
|
|
65
|
+
|
|
66
|
+
class UserComponent {
|
|
67
|
+
|
|
68
|
+
// Prepare your beautiful interface
|
|
69
|
+
model = {
|
|
70
|
+
allUsers: () => rest.model()
|
|
71
|
+
.array
|
|
72
|
+
.get()
|
|
73
|
+
.observable // Observable resposne (useful for Angular 2+ html templates)
|
|
74
|
+
.pipe( map({ body } => body.json) ) // get all users, body.json => User[]
|
|
75
|
+
|
|
76
|
+
userBy: (id) => rest.model({id})
|
|
77
|
+
.get() // Promise response by default
|
|
78
|
+
.then({ body } => console.log(body.json)) // get user by id, body.json => User
|
|
79
|
+
|
|
80
|
+
update: async (user:User) =>{
|
|
81
|
+
try {
|
|
82
|
+
await rest.model({id:user.id}).put(user) // Promise response by default
|
|
83
|
+
|
|
84
|
+
alert('Update sucess')
|
|
85
|
+
} catch(e) {
|
|
86
|
+
alert(e)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
constructor() { }
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Specification
|
|
97
|
+
============
|
|
98
|
+
Example **UrlParams[]** :
|
|
99
|
+
`[ { sort: true },{ filter: 'id,5' }, { filter: 'name,test' } ]`
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
| Name | Parameters | Description |
|
|
103
|
+
| :---: | --- | ---: |
|
|
104
|
+
| **.array.** | get,post,put,head,delete,jsonp | for everything, but with arrays |
|
|
105
|
+
| **get** | `UrlParams[] ` | get model by parameters |
|
|
106
|
+
| **post** | `model, UrlParams[] ` | post object model |
|
|
107
|
+
| **put** | `model, UrlParams[]` | put object model |
|
|
108
|
+
| **head** | `model, UrlParams[]` | get head for model |
|
|
109
|
+
| **delete** | `UrlParams[]` | remove object by params |
|
|
110
|
+
| **jsonp** | `UrlParams[]` | get jsonp data |
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# Production mode
|
|
115
|
+
===
|
|
116
|
+
Nice things to do in production mode:
|
|
117
|
+
|
|
118
|
+
**1. Disable warnings.**
|
|
119
|
+
|
|
120
|
+
If you don't wanna see warning, disable it like this:
|
|
121
|
+
```ts
|
|
122
|
+
if (environment.production) {
|
|
123
|
+
Resource.enableWarnings = false;
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
# Angular 2+ ngZone
|
|
128
|
+
If you are using Angular 2+ you need to do this in your root **app.component**:
|
|
129
|
+
```ts
|
|
130
|
+
constructor(zone:NgZone) {
|
|
131
|
+
Resource.initAngularNgZone(zone)
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
|
2
2
|
|
|
3
|
-
Assets from this folder are being shipped with this npm package (ng2-rest@16.444.
|
|
3
|
+
Assets from this folder are being shipped with this npm package (ng2-rest@16.444.7)
|
|
4
4
|
created from this project.
|
|
5
5
|
|
|
6
6
|
THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
package/browser/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MyLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# MyLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
package/client/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MyLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# MyLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
package/client/package.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"workerPlugins": {}
|
|
54
54
|
},
|
|
55
55
|
"name": "ng2-rest",
|
|
56
|
-
"version": "16.444.
|
|
56
|
+
"version": "16.444.7",
|
|
57
57
|
"bugs": {
|
|
58
58
|
"url": "https://github.com/darekf77/ng2-rest/issues"
|
|
59
59
|
},
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"@types/lodash": "4.14.92",
|
|
77
77
|
"axios": "1.3.5",
|
|
78
78
|
"diff": "3.2.0",
|
|
79
|
-
"json10": "16.444.
|
|
79
|
+
"json10": "~16.444.8",
|
|
80
80
|
"json5": "2.2.1",
|
|
81
81
|
"lodash": "4.17.20",
|
|
82
|
-
"ng2-logger": "16.444.
|
|
82
|
+
"ng2-logger": "~16.444.8"
|
|
83
83
|
},
|
|
84
84
|
"license": "MIT",
|
|
85
85
|
"private": false,
|
|
86
|
-
"lastBuildTagHash": "
|
|
86
|
+
"lastBuildTagHash": "c4079786401fa0186f6ae8209a6d9752df3a2747",
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@angular-builders/custom-webpack": "~16.0.2-beta.2",
|
|
89
89
|
"@angular-devkit/build-angular": "~16.0.5",
|
|
@@ -168,9 +168,9 @@
|
|
|
168
168
|
"angular-material-css-vars": "5.0.2",
|
|
169
169
|
"angular-resize-event": "3.2.0",
|
|
170
170
|
"animate.css": "4.1.1 ",
|
|
171
|
-
"any-project-cli": "16.444.
|
|
171
|
+
"any-project-cli": "~16.444.8",
|
|
172
172
|
"app-root-path": "3.0.0",
|
|
173
|
-
"background-worker-process": "16.100.10",
|
|
173
|
+
"background-worker-process": "~16.100.10",
|
|
174
174
|
"base32": "0.0.7",
|
|
175
175
|
"bcryptjs": "2.4.3",
|
|
176
176
|
"body-parser": "1.18.2",
|
|
@@ -222,13 +222,13 @@
|
|
|
222
222
|
"file-saver": "2.0.5",
|
|
223
223
|
"file-type": "18.5.0",
|
|
224
224
|
"firedev": "^16",
|
|
225
|
-
"firedev-crud": "16.444.
|
|
226
|
-
"firedev-crud-deamon": "16.444.
|
|
227
|
-
"firedev-ports": "16.444.
|
|
228
|
-
"firedev-storage": "16.444.5",
|
|
229
|
-
"firedev-type-sql": "16.444.
|
|
230
|
-
"firedev-typeorm": "16.444.5",
|
|
231
|
-
"firedev-ui": "16.444.1",
|
|
225
|
+
"firedev-crud": "~16.444.7",
|
|
226
|
+
"firedev-crud-deamon": "~16.444.8",
|
|
227
|
+
"firedev-ports": "~16.444.7",
|
|
228
|
+
"firedev-storage": "~16.444.5",
|
|
229
|
+
"firedev-type-sql": "~16.444.7",
|
|
230
|
+
"firedev-typeorm": "~16.444.5",
|
|
231
|
+
"firedev-ui": "~16.444.1",
|
|
232
232
|
"fkill": "6.1.0",
|
|
233
233
|
"font-awesome": "4.7.0",
|
|
234
234
|
"form-data": "4.0.0",
|
|
@@ -246,11 +246,11 @@
|
|
|
246
246
|
"image-focus": "1.2.1",
|
|
247
247
|
"immer": "10.0.2",
|
|
248
248
|
"immutable": "4.3.0",
|
|
249
|
-
"incremental-compiler": "16.444.
|
|
249
|
+
"incremental-compiler": "~16.444.9",
|
|
250
250
|
"inquirer": "7.3.3",
|
|
251
251
|
"inquirer-autocomplete-prompt": "1.3.0",
|
|
252
252
|
"is-elevated": "3.0.0",
|
|
253
|
-
"isomorphic-region-loader": "16.444.
|
|
253
|
+
"isomorphic-region-loader": "~16.444.8",
|
|
254
254
|
"istanbul-instrumenter-loader": "2.0.0",
|
|
255
255
|
"jest": "29.5.0",
|
|
256
256
|
"jest-date-mock": "1.0.8",
|
|
@@ -261,16 +261,16 @@
|
|
|
261
261
|
"joi": "17.9.2",
|
|
262
262
|
"jscodeshift": "0.6.3",
|
|
263
263
|
"json-stringify-safe": "5.0.1",
|
|
264
|
-
"json10-writer": "16.444.
|
|
264
|
+
"json10-writer": "~16.444.8",
|
|
265
265
|
"json5-writer": "0.2.0",
|
|
266
266
|
"jszip": "3.10.1",
|
|
267
267
|
"karma-cli": "1.0.1",
|
|
268
268
|
"lnk": "1.0.1",
|
|
269
269
|
"localforage": "1.10.0",
|
|
270
270
|
"lockfile": "1.0.4",
|
|
271
|
-
"lodash-walk-object": "16.444.
|
|
271
|
+
"lodash-walk-object": "~16.444.7",
|
|
272
272
|
"lowdb": "7.0.1",
|
|
273
|
-
"magic-renamer": "16.444.
|
|
273
|
+
"magic-renamer": "~16.444.7",
|
|
274
274
|
"material-design-icons": "3.0.1",
|
|
275
275
|
"method-override": "2.3.10",
|
|
276
276
|
"minimist": "1.2.0",
|
|
@@ -281,9 +281,9 @@
|
|
|
281
281
|
"ng-in-viewport": "15.0.2",
|
|
282
282
|
"ng-lock": "16.0.1",
|
|
283
283
|
"ng-packagr": "16.0.1",
|
|
284
|
-
"ng-talkback": "16.444.1",
|
|
284
|
+
"ng-talkback": "~16.444.1",
|
|
285
285
|
"ng2-pdfjs-viewer": "16.0.4",
|
|
286
|
-
"ng2-rest": "16.444.
|
|
286
|
+
"ng2-rest": "~16.444.6",
|
|
287
287
|
"ngx-ace-wrapper": "14.0.0",
|
|
288
288
|
"ngx-editor": "15.3.0",
|
|
289
289
|
"ngx-highlightjs": "9.0.0",
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
"ngx-scrolltop": "6.0.0",
|
|
297
297
|
"ngx-store": "3.1.1",
|
|
298
298
|
"ngx-typed-js": "2.1.1",
|
|
299
|
-
"node-cli-tester": "16.444.1",
|
|
299
|
+
"node-cli-tester": "~16.444.1",
|
|
300
300
|
"node-localstorage": "2.1.6",
|
|
301
301
|
"node-notifier": "6.0.0",
|
|
302
302
|
"node-polyfill-webpack-plugin": "2.0.1",
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
"q": "1.5.1",
|
|
326
326
|
"rallax.js": "2.0.4",
|
|
327
327
|
"randomcolor": "0.5.3",
|
|
328
|
-
"record-replay-req-res-scenario": "16.444.1",
|
|
328
|
+
"record-replay-req-res-scenario": "~16.444.1",
|
|
329
329
|
"reflect-metadata": "0.1.10",
|
|
330
330
|
"rimraf": "2.6.2",
|
|
331
331
|
"rxjs": "~7.8.0",
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
"socket.io-client": "4.7.5",
|
|
338
338
|
"sort-package-json": "1.11.0",
|
|
339
339
|
"sql.js": "1.8.0",
|
|
340
|
-
"static-columns": "16.444.3",
|
|
340
|
+
"static-columns": "~16.444.3",
|
|
341
341
|
"string-similarity": "4.0.2",
|
|
342
342
|
"sudo-block": "3.0.0",
|
|
343
343
|
"supertest": "6.3.3",
|
|
@@ -345,12 +345,12 @@
|
|
|
345
345
|
"systeminformation": "3.45.7",
|
|
346
346
|
"task.js": "0.1.5",
|
|
347
347
|
"threads": "1.7.0",
|
|
348
|
-
"tnp-cli": "16.444.1",
|
|
349
|
-
"tnp-config": "16.444.
|
|
350
|
-
"tnp-core": "16.444.
|
|
351
|
-
"tnp-db": "16.444.
|
|
352
|
-
"tnp-helpers": "16.444.
|
|
353
|
-
"tnp-models": "16.444.
|
|
348
|
+
"tnp-cli": "~16.444.1",
|
|
349
|
+
"tnp-config": "~16.444.8",
|
|
350
|
+
"tnp-core": "~16.444.9",
|
|
351
|
+
"tnp-db": "~16.444.7",
|
|
352
|
+
"tnp-helpers": "~16.444.11",
|
|
353
|
+
"tnp-models": "~16.444.8",
|
|
354
354
|
"ts-debug": "1.3.0",
|
|
355
355
|
"ts-json-schema-generator": "2.1.1",
|
|
356
356
|
"ts-loader": "2.3.1",
|
|
@@ -361,13 +361,13 @@
|
|
|
361
361
|
"typedoc": "0.25.13",
|
|
362
362
|
"typedoc-plugin-markdown": "4.0.3",
|
|
363
363
|
"typescript": "~5.0.2",
|
|
364
|
-
"typescript-class-helpers": "~16.444.
|
|
364
|
+
"typescript-class-helpers": "~16.444.8",
|
|
365
365
|
"typescript-formatter": "~7.2.2",
|
|
366
366
|
"underscore": "1.9.1",
|
|
367
367
|
"uuid": "8.3.2",
|
|
368
368
|
"validator": "9.2.0",
|
|
369
369
|
"video.js": "8.3.0",
|
|
370
|
-
"vpn-split": "16.444.1",
|
|
370
|
+
"vpn-split": "~16.444.1",
|
|
371
371
|
"vscode": "1.1.37",
|
|
372
372
|
"wait-on": "7.0.1",
|
|
373
373
|
"watch": "1.0.2",
|
package/firedev.jsonc
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"resources": ["README.md"],
|
|
3
|
-
"overrided": {
|
|
4
|
-
"dependencies": {},
|
|
5
|
-
"includeAsDev": [],
|
|
6
|
-
"includeOnly": [
|
|
7
|
-
"@types/diff",
|
|
8
|
-
"diff",
|
|
9
|
-
"axios",
|
|
10
|
-
"lodash",
|
|
11
|
-
"@types/lodash",
|
|
12
|
-
"ng2-logger",
|
|
13
|
-
"json5",
|
|
14
|
-
"json10",
|
|
15
|
-
],
|
|
16
|
-
"ignoreDepsPattern": [],
|
|
17
|
-
"linkedFolders": [],
|
|
18
|
-
"npmFixes": [],
|
|
19
|
-
},
|
|
20
|
-
"smartContainerBuildTarget": "",
|
|
21
|
-
"linkedRepos": [],
|
|
22
|
-
"libReleaseOptions": {
|
|
23
|
-
"nodts": false,
|
|
24
|
-
"obscure": false,
|
|
25
|
-
"ugly": false,
|
|
26
|
-
"includeNodeModules": false,
|
|
27
|
-
"cliBuildNoDts": false,
|
|
28
|
-
"cliBuildObscure": false,
|
|
29
|
-
"cliBuildIncludeNodeModules": false,
|
|
30
|
-
"cliBuildUglify": false,
|
|
31
|
-
},
|
|
32
|
-
"smartContainerTarget": "",
|
|
33
|
-
"type": "isomorphic-lib",
|
|
34
|
-
"version": "v16",
|
|
35
|
-
"additionalNpmNames": ["firedev-rest"],
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"private": false,
|
|
38
|
-
"author": {
|
|
39
|
-
"name": "Dariusz Filipiak",
|
|
40
|
-
},
|
|
41
|
-
"homepage": "https://github.com/darekf77/ng2-rest#readme",
|
|
42
|
-
"keywords": ["isomorphic", "logger", "log", "typescript"],
|
|
43
|
-
"workerPlugins": {},
|
|
1
|
+
{
|
|
2
|
+
"resources": ["README.md"],
|
|
3
|
+
"overrided": {
|
|
4
|
+
"dependencies": {},
|
|
5
|
+
"includeAsDev": [],
|
|
6
|
+
"includeOnly": [
|
|
7
|
+
"@types/diff",
|
|
8
|
+
"diff",
|
|
9
|
+
"axios",
|
|
10
|
+
"lodash",
|
|
11
|
+
"@types/lodash",
|
|
12
|
+
"ng2-logger",
|
|
13
|
+
"json5",
|
|
14
|
+
"json10",
|
|
15
|
+
],
|
|
16
|
+
"ignoreDepsPattern": [],
|
|
17
|
+
"linkedFolders": [],
|
|
18
|
+
"npmFixes": [],
|
|
19
|
+
},
|
|
20
|
+
"smartContainerBuildTarget": "",
|
|
21
|
+
"linkedRepos": [],
|
|
22
|
+
"libReleaseOptions": {
|
|
23
|
+
"nodts": false,
|
|
24
|
+
"obscure": false,
|
|
25
|
+
"ugly": false,
|
|
26
|
+
"includeNodeModules": false,
|
|
27
|
+
"cliBuildNoDts": false,
|
|
28
|
+
"cliBuildObscure": false,
|
|
29
|
+
"cliBuildIncludeNodeModules": false,
|
|
30
|
+
"cliBuildUglify": false,
|
|
31
|
+
},
|
|
32
|
+
"smartContainerTarget": "",
|
|
33
|
+
"type": "isomorphic-lib",
|
|
34
|
+
"version": "v16",
|
|
35
|
+
"additionalNpmNames": ["firedev-rest"],
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"private": false,
|
|
38
|
+
"author": {
|
|
39
|
+
"name": "Dariusz Filipiak",
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/darekf77/ng2-rest#readme",
|
|
42
|
+
"keywords": ["isomorphic", "logger", "log", "typescript"],
|
|
43
|
+
"workerPlugins": {},
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"workerPlugins": {}
|
|
54
54
|
},
|
|
55
55
|
"name": "ng2-rest",
|
|
56
|
-
"version": "16.444.
|
|
56
|
+
"version": "16.444.7",
|
|
57
57
|
"bugs": {
|
|
58
58
|
"url": "https://github.com/darekf77/ng2-rest/issues"
|
|
59
59
|
},
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"@types/lodash": "4.14.92",
|
|
77
77
|
"axios": "1.3.5",
|
|
78
78
|
"diff": "3.2.0",
|
|
79
|
-
"json10": "16.444.
|
|
79
|
+
"json10": "~16.444.8",
|
|
80
80
|
"json5": "2.2.1",
|
|
81
81
|
"lodash": "4.17.20",
|
|
82
|
-
"ng2-logger": "16.444.
|
|
82
|
+
"ng2-logger": "~16.444.8"
|
|
83
83
|
},
|
|
84
84
|
"license": "MIT",
|
|
85
85
|
"private": false,
|
|
86
|
-
"lastBuildTagHash": "
|
|
86
|
+
"lastBuildTagHash": "c4079786401fa0186f6ae8209a6d9752df3a2747",
|
|
87
87
|
"devDependencies": {},
|
|
88
88
|
"main": "dist/app.electron.js"
|
|
89
89
|
}
|
package/tmp-environment.json
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"workerPlugins": {}
|
|
58
58
|
},
|
|
59
59
|
"name": "ng2-rest",
|
|
60
|
-
"version": "16.444.
|
|
60
|
+
"version": "16.444.7",
|
|
61
61
|
"bugs": {
|
|
62
62
|
"url": "https://github.com/darekf77/ng2-rest/issues"
|
|
63
63
|
},
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"@types/lodash": "4.14.92",
|
|
81
81
|
"axios": "1.3.5",
|
|
82
82
|
"diff": "3.2.0",
|
|
83
|
-
"json10": "16.444.
|
|
83
|
+
"json10": "~16.444.8",
|
|
84
84
|
"json5": "2.2.1",
|
|
85
85
|
"lodash": "4.17.20",
|
|
86
|
-
"ng2-logger": "16.444.
|
|
86
|
+
"ng2-logger": "~16.444.8"
|
|
87
87
|
},
|
|
88
88
|
"license": "MIT",
|
|
89
89
|
"private": false,
|
|
90
|
-
"lastBuildTagHash": "
|
|
90
|
+
"lastBuildTagHash": "c4079786401fa0186f6ae8209a6d9752df3a2747",
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@angular-builders/custom-webpack": "~16.0.2-beta.2",
|
|
93
93
|
"@angular-devkit/build-angular": "~16.0.5",
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
"angular-material-css-vars": "5.0.2",
|
|
173
173
|
"angular-resize-event": "3.2.0",
|
|
174
174
|
"animate.css": "4.1.1 ",
|
|
175
|
-
"any-project-cli": "16.444.
|
|
175
|
+
"any-project-cli": "~16.444.8",
|
|
176
176
|
"app-root-path": "3.0.0",
|
|
177
|
-
"background-worker-process": "16.100.10",
|
|
177
|
+
"background-worker-process": "~16.100.10",
|
|
178
178
|
"base32": "0.0.7",
|
|
179
179
|
"bcryptjs": "2.4.3",
|
|
180
180
|
"body-parser": "1.18.2",
|
|
@@ -226,13 +226,13 @@
|
|
|
226
226
|
"file-saver": "2.0.5",
|
|
227
227
|
"file-type": "18.5.0",
|
|
228
228
|
"firedev": "^16",
|
|
229
|
-
"firedev-crud": "16.444.
|
|
230
|
-
"firedev-crud-deamon": "16.444.
|
|
231
|
-
"firedev-ports": "16.444.
|
|
232
|
-
"firedev-storage": "16.444.5",
|
|
233
|
-
"firedev-type-sql": "16.444.
|
|
234
|
-
"firedev-typeorm": "16.444.5",
|
|
235
|
-
"firedev-ui": "16.444.1",
|
|
229
|
+
"firedev-crud": "~16.444.7",
|
|
230
|
+
"firedev-crud-deamon": "~16.444.8",
|
|
231
|
+
"firedev-ports": "~16.444.7",
|
|
232
|
+
"firedev-storage": "~16.444.5",
|
|
233
|
+
"firedev-type-sql": "~16.444.7",
|
|
234
|
+
"firedev-typeorm": "~16.444.5",
|
|
235
|
+
"firedev-ui": "~16.444.1",
|
|
236
236
|
"fkill": "6.1.0",
|
|
237
237
|
"font-awesome": "4.7.0",
|
|
238
238
|
"form-data": "4.0.0",
|
|
@@ -250,11 +250,11 @@
|
|
|
250
250
|
"image-focus": "1.2.1",
|
|
251
251
|
"immer": "10.0.2",
|
|
252
252
|
"immutable": "4.3.0",
|
|
253
|
-
"incremental-compiler": "16.444.
|
|
253
|
+
"incremental-compiler": "~16.444.9",
|
|
254
254
|
"inquirer": "7.3.3",
|
|
255
255
|
"inquirer-autocomplete-prompt": "1.3.0",
|
|
256
256
|
"is-elevated": "3.0.0",
|
|
257
|
-
"isomorphic-region-loader": "16.444.
|
|
257
|
+
"isomorphic-region-loader": "~16.444.8",
|
|
258
258
|
"istanbul-instrumenter-loader": "2.0.0",
|
|
259
259
|
"jest": "29.5.0",
|
|
260
260
|
"jest-date-mock": "1.0.8",
|
|
@@ -265,16 +265,16 @@
|
|
|
265
265
|
"joi": "17.9.2",
|
|
266
266
|
"jscodeshift": "0.6.3",
|
|
267
267
|
"json-stringify-safe": "5.0.1",
|
|
268
|
-
"json10-writer": "16.444.
|
|
268
|
+
"json10-writer": "~16.444.8",
|
|
269
269
|
"json5-writer": "0.2.0",
|
|
270
270
|
"jszip": "3.10.1",
|
|
271
271
|
"karma-cli": "1.0.1",
|
|
272
272
|
"lnk": "1.0.1",
|
|
273
273
|
"localforage": "1.10.0",
|
|
274
274
|
"lockfile": "1.0.4",
|
|
275
|
-
"lodash-walk-object": "16.444.
|
|
275
|
+
"lodash-walk-object": "~16.444.7",
|
|
276
276
|
"lowdb": "7.0.1",
|
|
277
|
-
"magic-renamer": "16.444.
|
|
277
|
+
"magic-renamer": "~16.444.7",
|
|
278
278
|
"material-design-icons": "3.0.1",
|
|
279
279
|
"method-override": "2.3.10",
|
|
280
280
|
"minimist": "1.2.0",
|
|
@@ -285,9 +285,9 @@
|
|
|
285
285
|
"ng-in-viewport": "15.0.2",
|
|
286
286
|
"ng-lock": "16.0.1",
|
|
287
287
|
"ng-packagr": "16.0.1",
|
|
288
|
-
"ng-talkback": "16.444.1",
|
|
288
|
+
"ng-talkback": "~16.444.1",
|
|
289
289
|
"ng2-pdfjs-viewer": "16.0.4",
|
|
290
|
-
"ng2-rest": "16.444.
|
|
290
|
+
"ng2-rest": "~16.444.6",
|
|
291
291
|
"ngx-ace-wrapper": "14.0.0",
|
|
292
292
|
"ngx-editor": "15.3.0",
|
|
293
293
|
"ngx-highlightjs": "9.0.0",
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"ngx-scrolltop": "6.0.0",
|
|
301
301
|
"ngx-store": "3.1.1",
|
|
302
302
|
"ngx-typed-js": "2.1.1",
|
|
303
|
-
"node-cli-tester": "16.444.1",
|
|
303
|
+
"node-cli-tester": "~16.444.1",
|
|
304
304
|
"node-localstorage": "2.1.6",
|
|
305
305
|
"node-notifier": "6.0.0",
|
|
306
306
|
"node-polyfill-webpack-plugin": "2.0.1",
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"q": "1.5.1",
|
|
330
330
|
"rallax.js": "2.0.4",
|
|
331
331
|
"randomcolor": "0.5.3",
|
|
332
|
-
"record-replay-req-res-scenario": "16.444.1",
|
|
332
|
+
"record-replay-req-res-scenario": "~16.444.1",
|
|
333
333
|
"reflect-metadata": "0.1.10",
|
|
334
334
|
"rimraf": "2.6.2",
|
|
335
335
|
"rxjs": "~7.8.0",
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
"socket.io-client": "4.7.5",
|
|
342
342
|
"sort-package-json": "1.11.0",
|
|
343
343
|
"sql.js": "1.8.0",
|
|
344
|
-
"static-columns": "16.444.3",
|
|
344
|
+
"static-columns": "~16.444.3",
|
|
345
345
|
"string-similarity": "4.0.2",
|
|
346
346
|
"sudo-block": "3.0.0",
|
|
347
347
|
"supertest": "6.3.3",
|
|
@@ -349,12 +349,12 @@
|
|
|
349
349
|
"systeminformation": "3.45.7",
|
|
350
350
|
"task.js": "0.1.5",
|
|
351
351
|
"threads": "1.7.0",
|
|
352
|
-
"tnp-cli": "16.444.1",
|
|
353
|
-
"tnp-config": "16.444.
|
|
354
|
-
"tnp-core": "16.444.
|
|
355
|
-
"tnp-db": "16.444.
|
|
356
|
-
"tnp-helpers": "16.444.
|
|
357
|
-
"tnp-models": "16.444.
|
|
352
|
+
"tnp-cli": "~16.444.1",
|
|
353
|
+
"tnp-config": "~16.444.8",
|
|
354
|
+
"tnp-core": "~16.444.9",
|
|
355
|
+
"tnp-db": "~16.444.7",
|
|
356
|
+
"tnp-helpers": "~16.444.11",
|
|
357
|
+
"tnp-models": "~16.444.8",
|
|
358
358
|
"ts-debug": "1.3.0",
|
|
359
359
|
"ts-json-schema-generator": "2.1.1",
|
|
360
360
|
"ts-loader": "2.3.1",
|
|
@@ -365,13 +365,13 @@
|
|
|
365
365
|
"typedoc": "0.25.13",
|
|
366
366
|
"typedoc-plugin-markdown": "4.0.3",
|
|
367
367
|
"typescript": "~5.0.2",
|
|
368
|
-
"typescript-class-helpers": "~16.444.
|
|
368
|
+
"typescript-class-helpers": "~16.444.8",
|
|
369
369
|
"typescript-formatter": "~7.2.2",
|
|
370
370
|
"underscore": "1.9.1",
|
|
371
371
|
"uuid": "8.3.2",
|
|
372
372
|
"validator": "9.2.0",
|
|
373
373
|
"video.js": "8.3.0",
|
|
374
|
-
"vpn-split": "16.444.1",
|
|
374
|
+
"vpn-split": "~16.444.1",
|
|
375
375
|
"vscode": "1.1.37",
|
|
376
376
|
"wait-on": "7.0.1",
|
|
377
377
|
"watch": "1.0.2",
|
|
@@ -384,14 +384,14 @@
|
|
|
384
384
|
"main": "dist/app.electron.js"
|
|
385
385
|
},
|
|
386
386
|
"build": {
|
|
387
|
-
"number":
|
|
388
|
-
"date": "2024-06-
|
|
389
|
-
"hash": "
|
|
387
|
+
"number": 925,
|
|
388
|
+
"date": "2024-06-29T20:02:30.000Z",
|
|
389
|
+
"hash": "36a9fccd5d1f183c0e65b96f9511ef6d2433fd37"
|
|
390
390
|
},
|
|
391
391
|
"currentProjectName": "ng2-rest",
|
|
392
392
|
"currentProjectGenericName": "ng2-rest",
|
|
393
393
|
"currentProjectType": "isomorphic-lib",
|
|
394
|
-
"currentFrameworkVersion": "16.444.
|
|
394
|
+
"currentFrameworkVersion": "16.444.10",
|
|
395
395
|
"isStandaloneProject": true,
|
|
396
396
|
"isSmartContainer": false,
|
|
397
397
|
"pathesTsconfig": "\"paths\": {\"ng2-rest\":[\"./src/lib\"],\"ng2-rest/*\":[\"./src/lib/*\"]},",
|
package/websql/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MyLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# MyLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|