fundid / Svelte-Star

Svelte Star Tribune Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Star Tribune Svelte + Vite Template

This is a template for building Svelte apps at the Star Tribune. It's intended to replace the old svelte+webpack template.

Starting a project

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

Development

To run the dev server run npm run dev.

To build for deployment, run npm run build.

Deploying

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.

About

Svelte Star Tribune Template


Languages

Language:SCSS 88.6%Language:Shell 5.8%Language:JavaScript 3.3%Language:HTML 1.9%Language:Svelte 0.5%