Skip to content

Commit 418fc72

Browse files
author
Martynas Žilinskas
committed
Readme.
1 parent c2fc5af commit 418fc72

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

README.md

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,52 @@
1-
# dts-bundle-to-js-proxy-generator
1+
# dts-bundle-proxyjs
22
Generate js proxy files from dts-bundle file
3+
4+
## Get started
5+
```sh
6+
$ npm install dts-bundle -g
7+
```
8+
## Features
9+
- Creates JS proxy from bundled dts.
10+
11+
## Usage
12+
```sh
13+
$ dts-bundle-proxyjs --help
14+
```
15+
16+
### Examples
17+
_Using config:_
18+
Default config is `dts-bundle.js`.
19+
```sh
20+
$ dts-bundle-proxy -c dts-bundle.json
21+
```
22+
23+
## Config
24+
25+
### Example JSON
26+
```json
27+
{
28+
"name": "example-lib",
29+
"main": "./dist/index.d.ts",
30+
"out": "./dist/example-lib.d.ts",
31+
"removeSource": true,
32+
"proxyjs": {
33+
"default": "Hello",
34+
"generateDir": "./dist",
35+
"requireFile": "./dist/build.js"
36+
}
37+
}
38+
```
39+
40+
### Explanation
41+
`proxyjs` part:
42+
43+
| Argument | Type | Default | Description |
44+
|-----------------|--------|---------|------------------------------------------------|
45+
| default | string | none | Parts that must be included. |
46+
| generateDir `*` | string | none | Parts that will be generated js files. |
47+
| requireFile `*` | string | none | Bundled js file from where proxy will be made. |
48+
49+
`*` - Required.
50+
51+
## License
52+
Released under the [PGL-3.0 license](LICENSE).

0 commit comments

Comments
 (0)