@0xobelisk/sui-cli 1.2.0-pre.115 → 1.2.0-pre.118
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/dist/dubhe.js +81 -79
- package/dist/dubhe.js.map +1 -1
- package/package.json +3 -3
- package/src/commands/{schemagen.ts → generate.ts} +4 -3
- package/src/commands/index.ts +4 -4
- package/src/commands/{configStore.ts → storeConfig.ts} +1 -1
- package/src/commands/test.ts +100 -37
- package/src/commands/watch.ts +7 -7
- package/src/utils/publishHandler.ts +59 -17
- package/src/utils/storeConfig.ts +24 -13
- package/src/utils/upgradeHandler.ts +26 -8
- package/src/utils/utils.ts +39 -22
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ The Dubhe CLI is used for building and developing a Dubhe project.
|
|
|
4
4
|
|
|
5
5
|
It comes with
|
|
6
6
|
|
|
7
|
-
1. `
|
|
7
|
+
1. `generate`: Generate Move code from dubhe.config.ts
|
|
8
8
|
2. `publish`: Deploy your own project on the specified sui network.
|
|
9
9
|
3. `upgrade`: Upgrade your own project on the specified sui network.
|
|
10
10
|
4. `localnode`: Start a local Sui node for development
|
|
@@ -18,19 +18,19 @@ Instead, you should add the CLI as a dev dependency to your project (done automa
|
|
|
18
18
|
|
|
19
19
|
## Using the CLI
|
|
20
20
|
|
|
21
|
-
Some commands expect a Dubhe config in the same folder where the CLI is being executed. This includes `
|
|
21
|
+
Some commands expect a Dubhe config in the same folder where the CLI is being executed. This includes `generate` and `publish`.
|
|
22
22
|
|
|
23
23
|
`faucet`, and `localnode` can be executed anywhere.
|
|
24
24
|
|
|
25
25
|
## Commands
|
|
26
26
|
|
|
27
|
-
### `
|
|
27
|
+
### `generate`
|
|
28
28
|
|
|
29
|
-
Generates Store libraries from a `dubhe.config.ts` file. See the [Store Config and `
|
|
29
|
+
Generates Store libraries from a `dubhe.config.ts` file. See the [Store Config and `generate` documentation](https://dubhe-docs.obelisk.build/dubhe/sui/store/config) in the Store section for more details.
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
# in a folder with a dubhe.config.ts
|
|
33
|
-
dubhe
|
|
33
|
+
dubhe generate --config-path dubhe.config.ts
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
### `publish`
|