Skip to content

Commit 2c041e2

Browse files
authored
Refactor to Nuxt (#602)
1 parent 6784372 commit 2c041e2

File tree

99 files changed

+5877
-2869
lines changed

Some content is hidden

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

99 files changed

+5877
-2869
lines changed

.bundlewatchrc

-22
This file was deleted.

.env.sample

+12-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
VERCEL_ENV=development
22

3-
VITE_SUPABASE_URL=http://localhost:54321
4-
VITE_SUPABASE_PUBLIC_KEY=
5-
#VITE_SUPABASE_URL=https://zumvzhjvopgyallrtymo.supabase.co
6-
#VITE_SUPABASE_PUBLIC_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inp1bXZ6aGp2b3BneWFsbHJ0eW1vIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NjA1ODA4NjEsImV4cCI6MTk3NjE1Njg2MX0.dUj7wiTkNEbyuOsoLqj2VfP7_kkJfJzWuF2AZe2i36Y
7-
VITE_API_URL=http://localhost:3000
8-
VITE_FATHOM_SITE_ID=FVADOKGJ
9-
10-
SENTRY_DSN=https://[email protected]/5721085
3+
## Supabase
4+
SUPABASE_URL=http://localhost:54321
5+
SUPABASE_KEY=
6+
#SUPABASE_URL=https://zumvzhjvopgyallrtymo.supabase.co
7+
#SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inp1bXZ6aGp2b3BneWFsbHJ0eW1vIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NjA1ODA4NjEsImV4cCI6MTk3NjE1Njg2MX0.dUj7wiTkNEbyuOsoLqj2VfP7_kkJfJzWuF2AZe2i36Y
8+
# Secret
9+
SUPABASE_SERVICE_KEY=
1110

12-
VITE_VAPID_PUBLIC_KEY=BMxxkM7nyik9wtBsK6wVnHxfsOgPVsA05QmW3AE5M8bPAVoAV9LGX3i26p-mZkDJd7zj7iZufOPdI7Cpd2IYs1M
13-
VAPID_PRIVATE_KEY=
11+
NUXT_VAPID_PRIVATE_KEY=
1412

15-
SUPABASE_SERVICE_KEY=
16-
GCM_API_KEY=
13+
NUXT_GCM_API_KEY=
1714
# Token that is required to run `/api/check`
18-
CHECK_TOKEN=
15+
NUXT_CHECK_TOKEN=
1916
# Discord stuff
20-
DISCORD_CLIENT_ID=
21-
DISCORD_CLIENT_SECRET=
17+
NUXT_DISCORD_CLIENT_ID=
18+
NUXT_DISCORD_CLIENT_SECRET=

.eslintignore

-2
This file was deleted.

.eslintrc.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
/** @type import("eslint-define-config").ESLintConfig */
12
module.exports = {
23
root: true,
4+
ignorePatterns: ["node_modules", ".output", ".nuxt"],
35
env: {
46
es2021: true,
57
browser: true,
@@ -9,12 +11,12 @@ module.exports = {
911
"plugin:@beequeue/vue",
1012
"plugin:@beequeue/typescript",
1113
],
12-
globals: {
13-
defineProps: "readonly",
14-
defineEmits: "readonly",
15-
},
1614
rules: {
15+
"no-undef": "off",
16+
"no-console": "error",
17+
"unicorn/prefer-module": "off",
1718
"@typescript-eslint/naming-convention": "off",
1819
"vue/multi-word-component-names": "off",
20+
"vue/no-undef-components": "off",
1921
},
2022
}

.github/workflows/ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
- name: Install dependencies
3333
run: pnpm install --frozen-lockfile
3434

35+
- run: pnpm nuxi prepare
3536
- run: pnpm lint --format compact
37+
env:
38+
NODE_OPTIONS: "--max-old-space-size=8192"
3639

3740
typecheck:
3841
runs-on: ubuntu-latest
@@ -87,8 +90,3 @@ jobs:
8790
run: pnpm install --frozen-lockfile
8891

8992
- run: pnpm build
90-
91-
- run: pnpm bundlewatch
92-
env:
93-
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
94-
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}

.gitignore

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.idea
2+
.DS_Store
23

34
node_modules
45

5-
.DS_Store
6-
dist
7-
.env
8-
96
.vercel
10-
11-
stats.html
7+
.nuxt
8+
.nitro
9+
.cache
10+
.output
11+
.env

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
save-exact = true
22
shell-emulator = true
3-
use-lockfile-v6 = true
43
shamefully-hoist = true

api/_sentry.ts

-96
This file was deleted.

api/_supabase.ts

-138
This file was deleted.

0 commit comments

Comments
 (0)