https://github.com/pyncz/sui-example
Example Sui package with dev environment setup
https://github.com/pyncz/sui-example
Last synced: 2 months ago
JSON representation
Example Sui package with dev environment setup
- Host: GitHub
- URL: https://github.com/pyncz/sui-example
- Owner: pyncz
- Created: 2024-12-06T11:32:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-06T11:33:08.000Z (over 1 year ago)
- Last Synced: 2025-10-12T10:44:16.621Z (6 months ago)
- Language: Move
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Development
### ๐ ๏ธ Setup
- [Install Sui CLI](https://docs.sui.io/guides/developer/getting-started/sui-install), e.g. with `brew install sui`
- Install `move-analyzer` language server
```
cargo install --git https://github.com/move-language/move move-analyzer
```
- Install `sui-move-analyzer` language server
```
cargo install --git http://github.com/movebit/sui-move-analyzer --branch master sui-move-analyzer
```
Also, if you use **vsc\*de**, don't sleep on the recommended extensions!
### ๐ค Formatting
Formatting is supported via Prettier and [Sui's Move prettier plugin](https://github.com/MystenLabs/sui/tree/main/external-crates/move/crates/move-analyzer/prettier-plugin#installation).
It's not _MOVED_ into a separate npm package yet, so the build artifacts of that plugin are actually included in the repo (see `./prettier-plugin-move`), as the opposite of cloning and compiling it locally.
### ๐ฆ Build
Generate the build artifacts in `./build`:
```
sui move build
```
### ๐งช Test
```
sui move test
```
### ๐ Publish
```
sui client publish --gas-budget 69420
```