diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f3cd608 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: ['**'] + +jobs: + lint-and-typecheck: + name: Lint and Type Check + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run ESLint + run: pnpm lint + + - name: Run TypeScript type check + run: pnpm exec tsc -b --noEmit diff --git a/.gitignore b/.gitignore index 60e2d59..7905e0a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,13 +6,11 @@ yarn-debug.log* yarn-error.log* pnpm-debug.log* lerna-debug.log* -*.cache node_modules dist dist-ssr *.local -build # Editor directories and files .vscode/* @@ -26,10 +24,4 @@ build *.sw? .env -.env.development -functions/.runtimeconfig.json -/functions/lib -.env.production -.env.* -functions/.env -.runtimeconfig.json +.github/copilot-*.md \ No newline at end of file diff --git a/README.md b/README.md index 124aed6..5f98e76 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ \▓▓▓▓▓▓▓▓ \▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓ \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓ \▓▓▓▓▓▓ -2023 / 2024 +2026 / 2027 ``` @@ -26,7 +26,6 @@ ## Development :computer:   -   @@ -47,15 +46,4 @@ $ pnpm i > Launch local server ```sh $ pnpm dev -``` - -> Launch Storybook server -```sh -$ pnpm storybook -``` - -> ⚠️ Note: Storybook runs independently from the development server. Run both servers to observe changes on the web app and storybook. - -
-
+```
\ No newline at end of file
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 0000000..5e6b472
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,23 @@
+import js from '@eslint/js'
+import globals from 'globals'
+import reactHooks from 'eslint-plugin-react-hooks'
+import reactRefresh from 'eslint-plugin-react-refresh'
+import tseslint from 'typescript-eslint'
+import { defineConfig, globalIgnores } from 'eslint/config'
+
+export default defineConfig([
+ globalIgnores(['dist']),
+ {
+ files: ['**/*.{ts,tsx}'],
+ extends: [
+ js.configs.recommended,
+ tseslint.configs.recommended,
+ reactHooks.configs.flat.recommended,
+ reactRefresh.configs.vite,
+ ],
+ languageOptions: {
+ ecmaVersion: 2020,
+ globals: globals.browser,
+ },
+ },
+])
diff --git a/index.html b/index.html
index 7944e0a..d189215 100644
--- a/index.html
+++ b/index.html
@@ -1,32 +1,86 @@
-
+
-
-
-
-
-