This is a template for building Svelte apps at the Star Tribune. It's intended to replace the old svelte+webpack template.
To start a new project based on this template, run
npx degit striblab/strib-svelte-vite-template#main name-of-your-new-project
cd name-of-your-new-project
npm install
To run the dev server run npm run dev
.
To build for deployment, run npm run build
.
Deployment is currently handled by a shell script (strib-deploy.sh
) that has two dependencies:
AWS CLI with properly configured credentials for the static.startribune.com bucket using the 'default' profile.
jq, which can be installed on a Mac via Homebrew:
brew install jq
To deploy to staging, run npm run deploy-staging
. For production, run npm run deploy-production
. This will upload to a typical path using your project's name, which is read from package.json
.