What's this? my personal website! There's bound to be a homepage and, fingers crossed, a blog too. Past that, I'm open to suggestions.
Development notes
Following the documentation with excessive detail.
Getting started
dated September 21st 2021
npm init svelte@nextRunning the code prompts a series of questions to scaffold the project
-
Directory not empty. Continue? y
-
Which Svelte app template? Skeleton project
-
Use TypeScript? No
-
Add ESLint for code linting? Yes
-
Add Prettier for code formatting? Yes
The command line highlights a few steps to continue
-
npm install -
optional commit (this is already a git & Github repository)
-
npm run dev -- --open
The existing README.md is replaced with the documentation for create-svelte, but the markup is one Ctrl-Z key away. The documentation does provide a few helpful notes though:
-
to create a production version you need to first install an adapter. Afterwards:
npm run build
-
to preview the built application:
npm run preview
Up and running
dated September 22nd 2021
I intend to deploy the website through Netlify, and the relevant adapter is adapter-netlify.
npm i -D @sveltejs/adapter-netlify@nextFrom the Github repo, the relevant configuration happens in svelte.config.js.
Import:
import adapter from '@sveltejs/adapter-netlify';Add the adapter to the field describing the kit:
export default {
kit: {
adapter: adapter(),
target: '#svelte'
}
};The project's README highlights a couple of warnings, among which one describing the node version.
Netlify defaults to Node 12.16. SvelteKit requires Node v12.20 to build.
Among the proposed options, I decided to require a valid node version with a netlify.toml config file.
[context.production]
environment = { NODE_VERSION = "14.16.0" }The config file is also required to specify which command to run on build.
[build]
command = "npm run build"
publish = "build/"With this setup, build:
npm run buildPreview:
npm run previewDirecting Netlify to the Github repo should then be enough to have the project live.

