Skip to content

Commit 2c3e6ea

Browse files
committed
first commit
0 parents  commit 2c3e6ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+5225
-0
lines changed

.gitignore

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

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=false

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.svelte-kit/**
2+
static/**
3+
build/**
4+
node_modules/**

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"svelteSortOrder": "options-scripts-markup-styles",
3+
"htmlWhitespaceSensitivity": "ignore",
4+
"trailingComma": "none",
5+
"singleQuote": true,
6+
"printWidth": 140,
7+
"useTabs": true,
8+
"tabWidth": 4,
9+
"semi": false
10+
}

.vscode/extensions.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"recommendations": [
3+
/*
4+
* Important extentions
5+
*/
6+
"christian-kohler.path-intellisense",
7+
"ms-vscode.vscode-typescript-next",
8+
"fivethree.vscode-svelte-snippets",
9+
"aaron-bond.better-comments",
10+
"pivaszbs.svelte-autoimport",
11+
"dbaeumer.vscode-eslint",
12+
"svelte.svelte-vscode", //? Svelte
13+
"silvenon.mdx" //? MDSvex Language Support
14+
15+
/*
16+
* Honorable mentions
17+
*/
18+
// "github.vscode-pull-request-github",
19+
// "ardenivanov.svelte-intellisense",
20+
// "ziyasal.vscode-open-in-github",
21+
// "pflannery.vscode-versionlens",
22+
// "wayou.vscode-todo-highlight",
23+
// "alefragnani.project-manager",
24+
// "ms-vsliveshare.vsliveshare",
25+
// "pkief.material-icon-theme",
26+
// "wallabyjs.quokka-vscode",
27+
// "naumovs.color-highlight",
28+
// "stevencl.adddoccomments",
29+
// "inu1255.easy-snippet",
30+
// "anseki.vscode-color",
31+
// "vsls-contrib.gistfs",
32+
// "mhutchie.git-graph",
33+
// "henoc.svgeditor"
34+
]
35+
}

.vscode/settings.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"files.associations": {
3+
"[*.md, *.svx, *.mdsvex]": "mdx", //* https://github.com/pngwn/MDsveX/issues/121#issuecomment-675106929
4+
"*.xml": "html", //* Prettier
5+
"*.svg": "html" //* Prettier
6+
},
7+
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
10+
"editor.formatOnSave": true,
11+
12+
"[svelte]": {
13+
"editor.defaultFormatter": "svelte.svelte-vscode"
14+
},
15+
16+
"workbench.iconTheme": "material-icon-theme",
17+
18+
//* More subtle Template Tags
19+
"editor.tokenColorCustomizations": {
20+
"textMateRules": [
21+
{
22+
"scope": [
23+
"punctuation.definition.tag",
24+
"entity.name.tag.svelte",
25+
"punctuation.separator.key-value.svelte",
26+
"constant.name.attribute.tag.pug"
27+
],
28+
"settings": {
29+
"foreground": "#ff85a9aa"
30+
}
31+
}
32+
]
33+
}
34+
}

README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# [Svelte Hack](https://github.com/fractalhq/sveltehack)
2+
3+
Minimal Sveltekit Starter Template.
4+
5+
<br>
6+
7+
### download
8+
9+
```bash
10+
npx degit fractalhq/sveltehack app
11+
```
12+
13+
### launch
14+
15+
```bash
16+
cd app
17+
npm install
18+
npm run dev
19+
```
20+
21+
### cusomize
22+
23+
- Generate static files with [realfavicongenerator](https://realfavicongenerator.net/) and drop the result into `/static` to replace content like icons / pwa metadata with your own.
24+
25+
- Generate metatags [here](https://metatags.io/) and paste them into `/src/app.html` to replace the meta with your own.
26+
27+
### features
28+
29+
- [Vercel](https://vercel.com)
30+
- [Typescript](https://www.typescriptlang.org)
31+
- [MDSvex](https://mdsvex.com)
32+
- [Stylelint](https://github.com/stylelint/stylelint)
33+
- [SCSS/SASS](https://sass-lang.com)
34+
- [PostCSS](https://postcss.org)
35+
- [CSSNano](https://github.com/cssnano/cssnano)
36+
- [Autoprefixer](https://github.com/postcss/autoprefixer)
37+
- [Dark Theme](https://github.com/fractalhq/#ThemeToggle)
38+
- [Fractils](https://github.com/fractalhq/fractils)
39+
- [Greset](https://github.com/ghostdevv/greset)
40+
- [Local](https://github.com/FractalHQ/sveltehack/tree/main/static/fonts) Font [Setup](https://github.com/FractalHQ/sveltehack/blob/main/src/styles/app.scss#L4-L24)
41+
- PWA / Service Worker

mdsvex.config.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import autolinkHeadings from 'rehype-autolink-headings'
2+
import github from 'remark-github'
3+
import slug from 'rehype-slug'
4+
import abbr from 'remark-abbr'
5+
6+
const mdsvexConfig = {
7+
extensions: ['.svelte.md', '.md', '.svx'],
8+
smartypants: {
9+
dashes: 'oldschool'
10+
},
11+
remarkPlugins: [abbr],
12+
rehypePlugins: [
13+
slug,
14+
[
15+
autolinkHeadings,
16+
{
17+
behavior: 'wrap'
18+
}
19+
]
20+
]
21+
}
22+
23+
export default mdsvexConfig

package.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "sveltehack",
3+
"version": "0.0.1",
4+
"description": "Fractal's personal sveltekit starter template",
5+
"keywords": [
6+
"svelte",
7+
"sveltekit",
8+
"kit",
9+
"starter",
10+
"template"
11+
],
12+
"type": "module",
13+
"scripts": {
14+
"postinstall": "svelte-kit sync",
15+
"dev": "svelte-kit dev",
16+
"build": "svelte-kit build",
17+
"preview": "svelte-kit preview",
18+
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
19+
"format": "prettier --write --plugin-search-dir=. ."
20+
},
21+
"devDependencies": {
22+
"@sveltejs/adapter-vercel": "next",
23+
"@sveltejs/kit": "next",
24+
"@types/node": "^18.0.0",
25+
"autoprefixer": "^10.4.7",
26+
"cssnano": "^5.1.12",
27+
"fractils": "^2.0.1",
28+
"greset": "2.0.0-8",
29+
"mdsvex": "^0.10.6",
30+
"postcss": "^8.4.14",
31+
"postcss-load-config": "^3.1.4",
32+
"prettier": "^2.7.1",
33+
"prettier-plugin-svelte": "^2.7.0",
34+
"pug": "^3.0.2",
35+
"rehype-autolink-headings": "^6.1.1",
36+
"rehype-slug": "^5.0.1",
37+
"remark-abbr": "^1.4.1",
38+
"remark-github": "^11.2.3",
39+
"sass": "^1.52.3",
40+
"svelte": "^3.48.0",
41+
"svelte-preprocess": "^4.10.7",
42+
"tslib": "^2.4.0",
43+
"typescript": "^4.7.4"
44+
}
45+
}

0 commit comments

Comments
 (0)