Skip to content

Commit 875f5db

Browse files
committed
Initial commit
1 parent f57d709 commit 875f5db

28 files changed

+6871
-0
lines changed

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.vscode
3+
4+
*.d.ts
5+
*.config.js

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@nick-mazuk/eslint-config/svelte"]
3+
}

.github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test-push:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node: [10, 12, 14]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/[email protected]
14+
with:
15+
node-version: ${{ matrix.node }}
16+
- run: npx pnpm i
17+
- run: npm run lint
18+
- run: npm run test

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
node_modules
3+
/.svelte
4+
/build
5+
/functions
6+
.vercel_build_output

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.svelte
2+
pnpm-lock.yaml
3+
.vercel_build_output

.prettierrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 100,
4+
"tabWidth": 4,
5+
"useTabs": false,
6+
"semi": false,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": true,
9+
"trailingComma": "es5",
10+
"bracketSpacing": true,
11+
"arrowParens": "always",
12+
"proseWrap": "never",
13+
"htmlWhitespaceSensitivity": "css",
14+
"endOfLine": "lf",
15+
"embeddedLanguageFormatting": "auto",
16+
"pluginSearchDirs": ["."],
17+
"plugins": ["prettier-plugin-svelte"],
18+
"svelteStrictMode": true,
19+
"svelteAllowShorthand": true,
20+
"svelteBracketNewLine": true,
21+
"svelteIndentScriptAndStyle": true
22+
}

.vscode/settings.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": true,
4+
"source.fixAll": true
5+
},
6+
"eslint.run": "onType",
7+
"javascript.updateImportsOnFileMove.enabled": "always",
8+
"typescript.updateImportsOnFileMove.enabled": "always",
9+
"search.exclude": {
10+
"**/node_modules": true,
11+
"**/bower_components": true
12+
},
13+
"importCost.mediumPackageSize": 25,
14+
"importCost.smallPackageSize": 5,
15+
"importCost.timeout": 200000,
16+
"editor.formatOnPaste": true,
17+
"editor.formatOnSave": true,
18+
"editor.defaultFormatter": "esbenp.prettier-vscode",
19+
"[svelte]": {
20+
"editor.defaultFormatter": "svelte.svelte-vscode"
21+
}
22+
}

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Sveltekit template
2+
3+
This is a very opinionated Sveltekit template. It's configured for my personal setup.
4+
5+
## Getting started
6+
7+
Use [degit](https://www.npmjs.com/package/degit) to copy the contents of this repo into your current directory. By using `degit`, you remove all git data and history.
8+
9+
```bash
10+
pnpx degit nick-mazuk/sveltekit-template
11+
```
12+
13+
Then install the dependencies:
14+
15+
```bash
16+
pnpm i
17+
```
18+
19+
Now, you should be able to do whatever you want.
20+
21+
```bash
22+
pnpm dev #start development server
23+
pnpm dev:open # start development server and open in new browser tab
24+
pnpm build # create production build, by default uses vercel adapter
25+
pnpm start # starts the production server
26+
27+
pnpm test # run tests
28+
pnpm lint # format and lint everything
29+
```

package.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "sveltekit-test",
3+
"version": "0.0.1",
4+
"type": "module",
5+
"scripts": {
6+
"dev": "svelte-kit dev",
7+
"dev:open": "svelte-kit dev --open",
8+
"build": "svelte-kit build",
9+
"start": "svelte-kit start",
10+
"check-types": "tsc --noemit",
11+
"prettier": "prettier --write . --plugin-search-dir=. --quiet",
12+
"svelte-check": "svelte-check",
13+
"eslint": "eslint . --quiet --fix",
14+
"lint": "npm run prettier && npm run check-types && npm run svelte-check && npm run eslint"
15+
},
16+
"devDependencies": {
17+
"@nick-mazuk/eslint-config": "0.7.46",
18+
"@nick-mazuk/ui-config": "0.8.48",
19+
"@sveltejs/adapter-node": "next",
20+
"@sveltejs/kit": "next",
21+
"@tailwindcss/jit": "^0.1.8",
22+
"@tailwindcss/typography": "^0.4.0",
23+
"autoprefixer": "^10.2.5",
24+
"eslint": "^7.22.0",
25+
"postcss": "^8.2.8",
26+
"postcss-load-config": "^3.0.1",
27+
"prettier": "^2.2.1",
28+
"prettier-plugin-svelte": "^2.2.0",
29+
"svelte": "^3.29.0",
30+
"svelte-check": "^1.3.0",
31+
"svelte-preprocess": "^4.0.0",
32+
"tailwindcss": "^2.0.4",
33+
"tslib": "^2.0.0",
34+
"typescript": "^4.0.0",
35+
"vite": "2.1.2"
36+
},
37+
"dependencies": {
38+
"@nick-mazuk/lib": "^0.8.34",
39+
"@nick-mazuk/ui-svelte": "0.1.27",
40+
"@sveltejs/adapter-vercel": "^1.0.0-next.8",
41+
"@tailwindcss/aspect-ratio": "^0.2.0",
42+
"@tailwindcss/forms": "^0.3.2",
43+
"@tailwindcss/line-clamp": "^0.2.0",
44+
"i": "^0.3.6",
45+
"jest": "^26.6.3",
46+
"svelte-intersection-observer": "^0.6.0"
47+
}
48+
}

0 commit comments

Comments
 (0)