Skip to content

Commit cc3efb2

Browse files
authored
SvelteKit migration (#19)
1 parent 7150af0 commit cc3efb2

File tree

201 files changed

+12654
-6942
lines changed

Some content is hidden

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

201 files changed

+12654
-6942
lines changed

.github/workflows/deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: svelte deploy gh pages
2+
3+
on:
4+
push:
5+
branches: ['svelte']
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
15+
concurrency:
16+
group: 'pages'
17+
cancel-in-progress: false
18+
19+
jobs:
20+
deploy:
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v5
30+
- name: Use Node.js
31+
uses: actions/setup-node@v2
32+
with:
33+
node-version: 24
34+
- name: Install dependencies
35+
run: npm ci
36+
- name: Build the code
37+
run: npm run build
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
# Upload entire repository
42+
path: 'build'
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
1-
# borrowed from
2-
# https://github.com/github/gitignore.git
1+
node_modules
32

4-
# Jekyll.gitignore
5-
_site/
6-
.sass-cache/
7-
.jekyll-cache/
8-
.jekyll-metadata
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
/reports
911

10-
# Ruby.gitignore
11-
*.gem
12-
*.rbc
13-
/.bundle/
14-
# for a library or gem, you might want to ignore these files since the code is
15-
# intended to run in multiple environments; otherwise, check them in:
16-
Gemfile.lock
17-
.ruby-version
18-
.ruby-gemset
12+
# OS
13+
.DS_Store
14+
Thumbs.db
1915

20-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
21-
.rvmrc
16+
# Env
17+
.env
18+
.env.*
19+
!.env.example
20+
!.env.test
2221

23-
# Node.gitignore
24-
node_modules/
25-
npm-debug.log*
26-
package-lock.json
27-
28-
# Editor generated files
29-
.vscode
30-
*.swp
22+
# Vite
23+
vite.config.js.timestamp-*
24+
vite.config.ts.timestamp-*

.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
added at the advice of https://svelte.dev/docs/kit/adapter-static#GitHub-Pages

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock
5+
bun.lock
6+
bun.lockb
7+
8+
# Miscellaneous
9+
/static/

.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": false,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
],
15+
"tailwindStylesheet": "./src/app.css"
16+
}

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations":[
3+
"bradlc.vscode-tailwindcss",
4+
"svelte.svelte-vscode",
5+
"yzhang.markdown-all-in-one",
6+
7+
],
8+
}

.vscode/settings.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
// editor tweaks
3+
"editor.wordWrap": "wordWrapColumn",
4+
"editor.wordWrapColumn": 120,
5+
"editor.rulers": [120],
6+
// show files before folders for consistency
7+
"explorer.sortOrder": "filesFirst",
8+
"explorer.fileNesting.enabled": true,
9+
"explorer.fileNesting.expand": false,
10+
"explorer.fileNesting.patterns": {
11+
"+layout.svelte": "+layout.server.ts,+layout.server.js,+layout.ts,+layout.js,+layout.gql",
12+
"+page.svelte": "+page.server.ts,+page.server.js,+page.ts,+page.js,+page.gql"
13+
},
14+
"files.associations": {
15+
"*.svx": "markdown",
16+
"*.css": "tailwindcss"
17+
},
18+
// custom tab colors
19+
"workbench.editor.customLabels.patterns": {
20+
// Page
21+
"**/routes/**/*/+page.svelte": "${dirname} ❱ page",
22+
"**/routes/+page.svelte": "/ ❱ page",
23+
// Layout
24+
"**/routes/**/*/+layout.svelte": "${dirname} ❱ layout",
25+
"**/routes/+layout.svelte": "/ ❱ layout",
26+
// Page Data
27+
"**/routes/**/*/+page.[tj]s": "${dirname} ❱ page",
28+
"**/routes/+page.[tj]s": "/ ❱ page",
29+
// Layout Data
30+
"**/routes/**/*/+layout.[tj]s": "${dirname} ❱ layout",
31+
"**/routes/+layout.[tj]s": "/ ❱ layout",
32+
// Page Server Data
33+
"**/routes/**/*/+page.server.[tj]s": "${dirname} ❱ page.server",
34+
"**/routes/+page.server.[tj]s": "/ ❱ page.server",
35+
// Page Layout Data
36+
"**/routes/**/*/+layout.server.[tj]s": "${dirname} ❱ layout.server",
37+
"**/routes/+layout.server.[tj]s": "/ ❱ layout.server",
38+
// Error Page
39+
"**/routes/**/*/+error.svelte": "${dirname} ❱ error",
40+
"**/routes/+error.svelte": "/ ❱ error",
41+
// Server Endpoint
42+
"**/routes/**/*/+server.[tj]s": "${dirname} ❱ API",
43+
"**/routes/+server.[tj]s": "/ ❱ API"
44+
}
45+
}

CHANGELOG.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
brdsa.org
1+
brdsa.teauxfu.dev

0 commit comments

Comments
 (0)