@weclapp/sdk 2.0.0-dev.23 → 2.0.0-dev.25
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 +5 -5
- package/bin/cli.js +1 -1
- package/dist/cli.js +476 -383
- package/package.json +34 -27
- package/tsconfig.sdk.json +14 -0
- package/tsconfig.lib.json +0 -17
package/README.md
CHANGED
|
@@ -31,10 +31,10 @@ This way, every time someone installs or updates dependencies, the SDK is genera
|
|
|
31
31
|
```json5
|
|
32
32
|
{
|
|
33
33
|
// in your package.json
|
|
34
|
-
|
|
34
|
+
scripts: {
|
|
35
35
|
"sdk:generate": "build-weclapp-sdk company.weclapp.com --key [your api key] --cache --target browser",
|
|
36
|
-
|
|
37
|
-
}
|
|
36
|
+
postinstall: "npm run sdk:generate",
|
|
37
|
+
},
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ Check out the [docs](docs) for how the generated SDK looks like and how to use i
|
|
|
44
44
|
### Available flags
|
|
45
45
|
|
|
46
46
|
| Flag | Description | Value / Type |
|
|
47
|
-
|
|
47
|
+
| ------------------- | ----------------------------------------------------------------------------- | -------------------------------------------- |
|
|
48
48
|
| `--help` / `-h` | Show help. | `boolean` |
|
|
49
49
|
| `--version` / `-v` | Show version of SDK. | `boolean` |
|
|
50
50
|
| `--key` / `-k` | API Key in case of using a remote. | `string` |
|
|
@@ -55,4 +55,4 @@ Check out the [docs](docs) for how the generated SDK looks like and how to use i
|
|
|
55
55
|
|
|
56
56
|
### Contributing
|
|
57
57
|
|
|
58
|
-
Check out the [contributing guidelines](.github/CONTRIBUTING.md).
|
|
58
|
+
Check out the [contributing guidelines](.github/CONTRIBUTING.md).
|
package/bin/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import "../dist/cli.js";
|