Install degit
globally
bun i -g degit || pnpm i -g degit || yarn global add degit || npm i -g degit
Create a new project from this template
degit rajput-hemant/sveltekit-template <project-name>
cd <project-name>
Install dependencies
bun i || pnpm i || yarn || npm i
Initialize a new git repository (Optional):
git init
git add .
git commit --no-verify -m "init"
In the project directory, you can run:
Script | Description |
---|---|
dev |
Runs the app in the development mode. |
build |
Builds the app for production. |
start |
Runs the built app in the production mode. |
preview |
Builds and serves the app in the production mode. |
lint |
Runs next lint on the project. |
check |
Runs SvelteKit checks. |
check:watch |
Runs SvelteKit checks in watch mode. |
fmt:check |
Checks if the code is formatted with Prettier. |
fmt:write |
Formats the code with Prettier. |
prepare |
Installs husky git hooks. |
.
āāā public
āĀ Ā āāā favicon.png
āāā src
āĀ Ā āāā components
āĀ Ā āĀ Ā āāā tailwind-indicator.svelte
āĀ Ā āāā lib
āĀ Ā āĀ Ā āāā utils.ts
āĀ Ā āāā routes
āĀ Ā āĀ Ā āāā +layout.svelte
āĀ Ā āĀ Ā āāā +page.svelte
āĀ Ā āāā types
āĀ Ā ā āāā reset.d.ts
āĀ Ā āāā app.css
āĀ Ā āāā app.d.ts
āĀ Ā āāā app.html
āāā bun.lockb
āāā LICENSE
āāā package.json
āāā postcss.config.js
āāā README.md
āāā renovate.json
āāā svelte.config.js
āāā tailwind.config.js
āāā tsconfig.json
āāā vite.config.ts
package.json
with your project details.README.md
with your project details.LICENSE
with your name and year.This template uses bun as the default package manager. If you want to use pnpm
, npm
or yarn
, you need to remove the bun.lockb
file and run pnpm i
, npm i
or yarn
to generate the lock file for the respective package manager.
This project is licensed under the MIT License - see the LICENSE file for details.
Note: It may take up to 24h for the contrib.rocks plugin to update because it's refreshed once a day.