- Sway code is under the
src
directory. Thesrc
directory contains the following files:src/routes/(examples)
- The source code for the examples. - The terminal output is located in
src/routes/(examples)/+layout.svelte
file. - Run
yarn build:sway
to compile the Sway code you just added.
- Check the order in the
src/routes/(examples)/examples.json
file. - The
id
determines the sequence of the examples in the app.
Once you've run yarn
start a development server:
yarn dev
# Use the Network option to view it on your phone
# or start the server and open the app in a new browser tab
yarn dev -- --open
- Test the app in dev mode.
- Make sure to update the version in
package.json
. - Run
yarn build
which will build to thedocs
directory. - Run
yarn preview
to test the app in production mode.