- Tact 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
npm run tact-build
to compile the Tact 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 npm install
start a development server:
npm run dev
# Use the Network option to view it on your phone
# or start the server and open the app in a new browser tab
npm run dev -- --open
- Test the app in dev mode.
- Make sure to update the version in
package.json
. - Run
npm run build
which will build to thedocs
directory. - Run
npm run preview
to test the app in production mode.