Powered by create-svelte.
Once you've created a project and installed/dupated dependencies with
npm installstart a development server:
npm run dev -- --host
# or start the server and open the app in a new browser tab
npm run dev -- --host --openTo create a production version of your app:
npm install # to ensure dependencies are updated
npm run buildYou can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
The app is deployed as a client-side "single page app" hosted by GitHub pages, by committing
files to the /docs directory. To update /docs with the latest build:
npm run build # if necessary
rm -rf docs/*
touch docs/.nojekyll # so GitHub Pages knows the site is static, not https://jekyllrb.com/
cp -r build/* docs/
Then add/commit/push your repository to update the public app. (You can update your Git
repo without updating the public app as long as you don't change the contents of /docs.)