The Treble Framework comes loaded with the
@threekit-tools/treble-scripts package to facilitate the development and deployment of a Treble App. It gives the ability to run the following scripts/commands straight from our projects root directory.
If no Threekit environment is explicitly provided the scripts will default to using the Threekit
Run the Treble app in its local development mode. Open http://localhost:3000 to view it in your browser.
The page will reload when any edits are saved.
You can specify the Threekit Environment you'd wish to use by passing it in as a flag in the run script. By default the Threekit Environment is set to
yarn start --admin-fts
Bundles your app into the
threekit-embed.js. Having a static name for across deployment allows us to redeploy without having to update the embed script tag for our app.
Your app is ready for deployment!
yarn build --preview