You can learn about Mud.js more by ✨ 👉 Clicking 👈 ✨
# Install project builder
npm i @trickle/mud-cli -g
# Create a mud project
mud-cli create <name>
When developing Mud.js, Here are some usual methods to make program execution result more intuitive:
Method 0
The most simple way is setting src
of <script>
to the entry file path, like this:
<script type="module" src="../src/index/js"></script>
Or do the same thing like this:
import Mud from '../src/index/js'
Method 1
Build the package and start a dev-server with rollup
for hot module replacement:
npm run build:dev
Method 2
Use yalc
to simulate publishing npm package:
npm i yalc -g
yalc publish
yalc add @trickle/mud.js
# Update the package
yalc push
Publish new version:
# Generate change-set file
npx changeset
# Update version
npx changeset version
Thanks for all people mentioned below:
Carbon Serio |
TosukeLi |