diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..79f3e60 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run check +npm run format +npm run lint + diff --git a/jsconfig.json b/jsconfig.json index fe45e13..6b40d38 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,6 +1,7 @@ { "extends": "./.svelte-kit/tsconfig.json", "compilerOptions": { + "jsx": "react", "allowJs": true, "checkJs": true, "esModuleInterop": true, @@ -9,7 +10,8 @@ "skipLibCheck": true, "sourceMap": true, "strict": true - } + }, + "exclude": ["./src/lib/studio/**/*"] // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files // // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes diff --git a/package.json b/package.json index e81a90e..c2b34f1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch", "lint": "prettier --plugin-search-dir . --check . && eslint .", - "format": "prettier --plugin-search-dir . --write ." + "format": "prettier --plugin-search-dir . --write .", + "prepare": "husky install" }, "devDependencies": { "@flydotio/dockerfile": "^0.4.11", @@ -35,7 +36,8 @@ "svelte-check": "^3.5.2", "tailwindcss": "^3.3.3", "typescript": "^5.2.2", - "vite": "^4.4.9" + "vite": "^4.4.9", + "husky": "^8.0.0" }, "type": "module", "dependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d4cfefc..adf6d1c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -127,6 +127,9 @@ devDependencies: eslint-plugin-svelte: specifier: ^2.33.2 version: 2.33.2(eslint@8.50.0)(svelte@3.59.2) + husky: + specifier: ^8.0.0 + version: 8.0.3 postcss: specifier: ^8.4.31 version: 8.4.31 @@ -4654,6 +4657,12 @@ packages: resolution: {integrity: sha512-4+p3fCRF21oUqxhK0yZ6yaSP/H5/wZumc7q1fH99RkW7Q13aAxDeP78BKjoR+6y+kaHqKF/JWuQhsNuuI2NKtA==} dev: false + /husky@8.0.3: + resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} + engines: {node: '>=14'} + hasBin: true + dev: true + /iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} diff --git a/src/lib/components/common/DonateHero.svelte b/src/lib/components/common/DonateHero.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/components/common/Footer.svelte b/src/lib/components/common/Footer.svelte index fb5f3b3..18357ef 100644 --- a/src/lib/components/common/Footer.svelte +++ b/src/lib/components/common/Footer.svelte @@ -23,7 +23,7 @@