Skip to content

Commit 2d98bc1

Browse files
authored
Merge pull request #361 from firebase/jamesdaniels_nuxt3
Migrate to Nuxt 3, update to Node v22
2 parents a64e81d + 6971638 commit 2d98bc1

File tree

91 files changed

+21184
-34973
lines changed

Some content is hidden

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

91 files changed

+21184
-34973
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ build-functions: build-shared
1313
&& cd -
1414

1515
deploy-functions: build-functions
16-
firebase --project=$(PROD_PROJECT) deploy --only functions
16+
npx -y firebase-tools --project=$(PROD_PROJECT) deploy --only functions
1717

1818
build-hosting: build-shared
1919
cd frontend \
2020
&& npm install \
21-
&& npm run export \
21+
&& npm run generate \
2222
&& cd -
2323

2424
deploy-hosting: build-hosting
25-
firebase --project=$(PROD_PROJECT) deploy --only hosting
25+
npx -y firebase-tools --project=$(PROD_PROJECT) deploy --only hosting
2626

2727
deploy: deploy-functions deploy-hosting

firebase.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"hosting": {
3-
"public": "frontend/dist",
3+
"public": "frontend/.output/public",
44
"ignore": [
55
"firebase.json",
66
"**/.*",
@@ -17,6 +17,9 @@
1717
}
1818
]
1919
},
20+
"functions": {
21+
"source": "functions"
22+
},
2023
"firestore": {
2124
"rules": "firestore.rules",
2225
"indexes": "firestore.indexes.json"

frontend/.eslintrc.js

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

frontend/.gitignore

Lines changed: 17 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,24 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
### Node template
3-
# Logs
4-
/logs
5-
*.log
6-
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
9-
10-
# Runtime data
11-
pids
12-
*.pid
13-
*.seed
14-
*.pid.lock
15-
16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# nyc test coverage
23-
.nyc_output
24-
25-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26-
.grunt
27-
28-
# Bower dependency directory (https://bower.io/)
29-
bower_components
30-
31-
# node-waf configuration
32-
.lock-wscript
33-
34-
# Compiled binary addons (https://nodejs.org/api/addons.html)
35-
build/Release
36-
37-
# Dependency directories
38-
node_modules/
39-
jspm_packages/
40-
41-
# TypeScript v1 declaration files
42-
typings/
43-
44-
# Optional npm cache directory
45-
.npm
46-
47-
# Optional eslint cache
48-
.eslintcache
49-
50-
# Optional REPL history
51-
.node_repl_history
52-
53-
# Output of 'npm pack'
54-
*.tgz
55-
56-
# Yarn Integrity file
57-
.yarn-integrity
58-
59-
# dotenv environment variables file
60-
.env
61-
62-
# parcel-bundler cache (https://parceljs.org/)
63-
.cache
64-
65-
# next.js build output
66-
.next
67-
68-
# nuxt.js build output
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
694
.nuxt
70-
71-
# Nuxt generate
5+
.nitro
6+
.cache
727
dist
738

74-
# vuepress build output
75-
.vuepress/dist
76-
77-
# Serverless directories
78-
.serverless
79-
80-
# IDE / Editor
81-
.idea
9+
# Node dependencies
10+
node_modules
8211

83-
# Service worker
84-
sw.*
12+
# Logs
13+
logs
14+
*.log
8515

86-
# macOS
16+
# Misc
8717
.DS_Store
18+
.fleet
19+
.idea
8820

89-
# Vim swap files
90-
*.swp
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example

frontend/.prettierrc

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

frontend/app.html

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

frontend/app.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<div>
3+
<NuxtLayout>
4+
<NuxtPage />
5+
</NuxtLayout>
6+
</div>
7+
</template>

frontend/assets/classes.ts

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

frontend/assets/dbUtils.ts

Lines changed: 0 additions & 163 deletions
This file was deleted.
-7.24 KB
Loading

0 commit comments

Comments
 (0)