Skip to content

Commit 58c982f

Browse files
committed
feat: first pass, still plenty to do
1 parent 941ce65 commit 58c982f

36 files changed

+1155
-269
lines changed

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v3
16+
with:
17+
version: 8
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "20"
23+
cache: "pnpm"
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Build
29+
run: pnpm build
30+
31+
- name: Upload Artifacts
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: "build/"
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
40+
permissions:
41+
pages: write
42+
id-token: write
43+
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
48+
steps:
49+
- name: Deploy
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.prettierignore

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

.prettierrc

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

eslint.config.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
import prettier from 'eslint-config-prettier';
2-
import js from '@eslint/js';
3-
import { includeIgnoreFile } from '@eslint/compat';
4-
import svelte from 'eslint-plugin-svelte';
5-
import globals from 'globals';
6-
import { fileURLToPath } from 'node:url';
7-
import ts from 'typescript-eslint';
8-
import svelteConfig from './svelte.config.js';
1+
import { includeIgnoreFile } from "@eslint/compat";
2+
import js from "@eslint/js";
3+
import prettier from "eslint-config-prettier";
4+
import svelte from "eslint-plugin-svelte";
5+
import globals from "globals";
6+
import { fileURLToPath } from "node:url";
7+
import ts from "typescript-eslint";
8+
import svelteConfig from "./svelte.config.js";
99

10-
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
10+
const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url));
1111

1212
export default ts.config(
13-
includeIgnoreFile(gitignorePath),
14-
js.configs.recommended,
15-
...ts.configs.recommended,
16-
...svelte.configs.recommended,
17-
prettier,
18-
...svelte.configs.prettier,
19-
{
20-
languageOptions: {
21-
globals: { ...globals.browser, ...globals.node }
22-
},
23-
rules: { 'no-undef': 'off' }
24-
},
25-
{
26-
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
27-
languageOptions: {
28-
parserOptions: {
29-
projectService: true,
30-
extraFileExtensions: ['.svelte'],
31-
parser: ts.parser,
32-
svelteConfig
33-
}
34-
}
35-
}
13+
includeIgnoreFile(gitignorePath),
14+
js.configs.recommended,
15+
...ts.configs.recommended,
16+
...svelte.configs.recommended,
17+
prettier,
18+
...svelte.configs.prettier,
19+
{
20+
languageOptions: {
21+
globals: { ...globals.browser, ...globals.node },
22+
},
23+
rules: { "no-undef": "off" },
24+
},
25+
{
26+
files: ["**/*.svelte", "**/*.svelte.ts", "**/*.svelte.js"],
27+
languageOptions: {
28+
parserOptions: {
29+
projectService: true,
30+
extraFileExtensions: [".svelte"],
31+
parser: ts.parser,
32+
svelteConfig,
33+
},
34+
},
35+
},
3636
);

package.json

Lines changed: 45 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,47 @@
11
{
2-
"name": "alpoi.github.io",
3-
"private": true,
4-
"version": "0.0.1",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite dev",
8-
"build": "vite build",
9-
"preview": "vite preview",
10-
"prepare": "svelte-kit sync || echo ''",
11-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
12-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
13-
"format": "prettier --write .",
14-
"lint": "prettier --check . && eslint ."
15-
},
16-
"devDependencies": {
17-
"@eslint/compat": "^1.2.5",
18-
"@eslint/js": "^9.18.0",
19-
"@sveltejs/adapter-static": "^3.0.8",
20-
"@sveltejs/kit": "^2.16.0",
21-
"@sveltejs/vite-plugin-svelte": "^5.0.0",
22-
"eslint": "^9.18.0",
23-
"eslint-config-prettier": "^10.0.1",
24-
"eslint-plugin-svelte": "^3.0.0",
25-
"globals": "^16.0.0",
26-
"prettier": "^3.4.2",
27-
"prettier-plugin-svelte": "^3.3.3",
28-
"svelte": "^5.0.0",
29-
"svelte-check": "^4.0.0",
30-
"typescript": "^5.0.0",
31-
"typescript-eslint": "^8.20.0",
32-
"vite": "^6.2.6"
33-
},
34-
"pnpm": {
35-
"onlyBuiltDependencies": [
36-
"esbuild"
37-
]
38-
}
2+
"name": "alpoi.github.io",
3+
"private": true,
4+
"version": "0.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite dev",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"prepare": "svelte-kit sync || echo ''",
11+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
12+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
13+
"format": "prettier --write .",
14+
"lint": "prettier --check . && eslint ."
15+
},
16+
"devDependencies": {
17+
"@eslint/compat": "^1.2.5",
18+
"@eslint/js": "^9.18.0",
19+
"@sveltejs/adapter-static": "^3.0.8",
20+
"@sveltejs/kit": "^2.16.0",
21+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
22+
"@tailwindcss/vite": "^4.0.0",
23+
"eslint": "^9.18.0",
24+
"eslint-config-prettier": "^10.0.1",
25+
"eslint-plugin-svelte": "^3.0.0",
26+
"globals": "^16.0.0",
27+
"prettier": "^3.5.3",
28+
"prettier-plugin-organize-imports": "^4.1.0",
29+
"prettier-plugin-svelte": "^3.3.3",
30+
"prettier-plugin-tailwindcss": "^0.6.11",
31+
"svelte": "^5.0.0",
32+
"svelte-check": "^4.0.0",
33+
"tailwindcss": "^4.0.0",
34+
"typescript": "^5.0.0",
35+
"typescript-eslint": "^8.20.0",
36+
"vite": "^6.3.5"
37+
},
38+
"pnpm": {
39+
"onlyBuiltDependencies": [
40+
"@tailwindcss/oxide",
41+
"esbuild"
42+
]
43+
},
44+
"dependencies": {
45+
"@lucide/svelte": "^0.510.0"
46+
}
3947
}

0 commit comments

Comments
 (0)