File tree Expand file tree Collapse file tree 1 file changed +51
-1
lines changed
Expand file tree Collapse file tree 1 file changed +51
-1
lines changed Original file line number Diff line number Diff line change 1- # dts-bundle-to-js-proxy-generator
1+ # dts-bundle-proxyjs
22Generate 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 ) .
You can’t perform that action at this time.
0 commit comments