@edgedev/firebase 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 plugin for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -0,0 +1,10 @@
1
+ VITE_FIREBASE_API_KEY=
2
+ VITE_FIREBASE_AUTH_DOMAIN=
3
+ VITE_FIREBASE_PROJECT_ID=
4
+ VITE_FIREBASE_STORAGE_BUCKET=
5
+ VITE_FIREBASE_MESSAGING_SENDER_ID=
6
+ VITE_FIREBASE_APP_ID=
7
+ VITE_FIREBASE_MEASUREMENT_ID=
8
+ VITE_FIREBASE_EMULATOR_AUTH=9099
9
+ VITE_FIREBASE_EMULATOR_FIRESTORE=8080
10
+ VITE_FIREBASE_EMULATOR_FUNCTIONS=5001
@@ -0,0 +1,10 @@
1
+ VITE_FIREBASE_API_KEY=
2
+ VITE_FIREBASE_AUTH_DOMAIN=
3
+ VITE_FIREBASE_PROJECT_ID=
4
+ VITE_FIREBASE_STORAGE_BUCKET=
5
+ VITE_FIREBASE_MESSAGING_SENDER_ID=
6
+ VITE_FIREBASE_APP_ID=
7
+ VITE_FIREBASE_MEASUREMENT_ID=
8
+ VITE_FIREBASE_EMULATOR_AUTH=
9
+ VITE_FIREBASE_EMULATOR_FIRESTORE=
10
+ VITE_FIREBASE_EMULATOR_FUNCTIONS=
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "functions",
3
+ "description": "Cloud Functions for Firebase",
4
+ "scripts": {
5
+ "serve": "firebase emulators:start --only functions",
6
+ "shell": "firebase functions:shell",
7
+ "start": "npm run shell",
8
+ "deploy": "firebase deploy --only functions",
9
+ "logs": "firebase functions:log"
10
+ },
11
+ "engines": {
12
+ "node": "16"
13
+ },
14
+ "main": "index.js",
15
+ "dependencies": {
16
+ "@google-cloud/pubsub": "^4.0.6",
17
+ "dotenv": "^16.3.1",
18
+ "firebase-admin": "^10.0.2",
19
+ "firebase-functions": "^4.5.0",
20
+ "twilio": "^4.18.0"
21
+ },
22
+ "devDependencies": {
23
+ "firebase-functions-test": "^0.2.0"
24
+ },
25
+ "private": true
26
+ }
@@ -30,12 +30,27 @@ fi
30
30
  cp ./src/edgeFirebase.js "$project_root/functions/edgeFirebase.js"
31
31
  cp ./src/config.js "$project_root/functions/config.js"
32
32
 
33
- if [ ! -f "$project_root/.env.dev" ]; then
34
- cp ./src/.env.dev "$project_root/.env.dev"
33
+ if [ ! -f "$project_root/functions/.env.dev" ]; then
34
+ cp ./src/.env.dev "$project_root/functions/.env.dev"
35
35
  fi
36
36
 
37
- if [ ! -f "$project_root/.env.prod" ]; then
38
- cp ./src/.env.prod "$project_root/.env.prod"
37
+ if [ ! -f "$project_root/functions/.env.prod" ]; then
38
+ cp ./src/.env.prod "$project_root/functions/.env.prod"
39
+ fi
40
+
41
+ if [ ! -f "$project_root/.env.development" ]; then
42
+ cp ./src/.env.dev "$project_root/.env.development"
43
+ fi
44
+
45
+ if [ ! -f "$project_root/.env.production" ]; then
46
+ cp ./src/.env.prod "$project_root/functions/.env.production"
47
+ fi
48
+
49
+ if [ ! -f "$project_root/functions/package.json" ]; then
50
+ cp ./src/package.json "$project_root/functions/package.json"
51
+ cd "$project_root/functions"
52
+ npm install --no-audit --silent
53
+ cd "$project_root"
39
54
  fi
40
55
 
41
56
  [ "$(tail -c1 $project_root/functions/index.js)" != "" ] && echo "" >> "$project_root/functions/index.js"