An open API service indexing awesome lists of open source software.

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

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
```