Just a simple music album website written in Svelte and a lot of CSS!
However you get the code, you can install dependencies and run the project in development mode with:
cd my-app
npm install # or yarn
npm run devOpen up localhost:3000 and start clicking around.
Consult sapper.svelte.dev for help getting started.
To start a production version of your app, run npm run build && npm start. This will disable live reloading, and activate the appropriate bundler plugins.
You can deploy your application to any environment that supports Node 10 or above. As an example, to deploy to Vercel Now when using sapper export, run these commands:
npm install -g vercel
vercelIf your app can't be exported to a static site, you can use the now-sapper builder. You can find instructions on how to do so in its README.
When using Svelte components installed from npm, such as @sveltejs/svelte-virtual-list, Svelte needs the original component source (rather than any precompiled JavaScript that ships with the component). This allows the component to be rendered server-side, and also keeps your client-side app smaller.
Because of that, it's essential that the bundler doesn't treat the package as an external dependency. You can either modify the external option under server in rollup.config.js or the externals option in webpack.config.js, or simply install the package to devDependencies rather than dependencies, which will cause it to get bundled (and therefore compiled) with your app:
npm install -D @sveltejs/svelte-virtual-listSapper is in early development, and may have the odd rough edge here and there. Please be vocal over on the Sapper issue tracker.