This is a well featured template for Svelte development. It includes a hash based routing solution, sass and css preprocessors and linting.
# clone recent files
git clone --depth 1 https://gitlab.com/team-tecnologia/templates-and-snippets/svelte-template project-name
# enter the project
cd project-name
# remove git repository
rm -rf .git
Install the asdf.
Install the asdf node plugin.
Install the node with asdf:
asdf install
Install the node packages:
npm install
npm run dev # live reloading mode
npm run build # generate production build
npm run start # serve the production build
npm run test # run jest tests and snapshot tests
npm run test:ui # run screenshot test with server to view diffs
npm run test:ui-cli # run screenshot test without server (docker must be running)
npm run storybook # run the storybook server (docker must be running)
Learn to configure the linter to work with your code editor in the
eslint-plugin-svelte3 integrations page.
You can add linter configurations on the file .eslintrc.cjs
but be careful and
add Typescript related rules only for typescript.