Skip to content

Commit

Permalink
Run firebase tools locally
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyersdev committed Oct 6, 2023
1 parent fbf7c1f commit c571d6c
Show file tree
Hide file tree
Showing 7 changed files with 2,042 additions and 33 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:
NUXT_PUBLIC_FIREBASE_EMULATOR_FUNCTIONS_PORT: 32779
NUXT_PUBLIC_FIREBASE_EMULATOR_STORAGE_HOST: localhost
NUXT_PUBLIC_FIREBASE_EMULATOR_STORAGE_PORT: 32778
NUXT_PUBLIC_FIREBASE_LOG_LEVEL:
NUXT_PUBLIC_FIREBASE_LOG_LEVEL: debug
NUXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: fake
NUXT_PUBLIC_FIREBASE_PROJECT_ID: demo-octo
NUXT_PUBLIC_FIREBASE_STORAGE_BUCKET: fake
Expand Down Expand Up @@ -129,13 +129,14 @@ jobs:
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --shamefully-hoist
- run: docker-compose up -d
- uses: cypress-io/[email protected]
with:
build: pnpm build
config: baseUrl=http://localhost:8889
install: false
start: pnpm preview
start: |
pnpm firebase:start
pnpm preview
wait-on: 'http://localhost:8889,http://localhost:32777'
- uses: actions/upload-artifact@v3
if: failure()
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
.vscode
dev-dist
dist
firebase/data
node_modules
public/manifest.webmanifest
supabase
Expand Down
3 changes: 0 additions & 3 deletions firebase/data/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default defineNuxtConfig({
firebaseEmulatorFunctionsPort: '',
firebaseEmulatorStorageHost: '',
firebaseEmulatorStoragePort: '',
firebaseDisabled: '1',
firebaseDisabled: '',
firebaseLogLevel: '',
firebaseMessagingSenderId: '',
firebaseProjectId: '',
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"build": "nuxt prepare && nuxt typecheck && tsx manifest.ts && nuxt generate",
"clean": "rimraf .output dev-dist dist",
"dev": "nuxt dev --port 8888",
"firebase:login": "firebase login",
"firebase:start": "firebase -c ./firebase/firebase.json --project \"${FIREBASE_PROJECT_ID:-demo-octo}\" emulators:start --import ./firebase/data --export-on-exit ./firebase/data",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"lint:todo": "eslint-generate-todo --format json .",
Expand Down Expand Up @@ -70,6 +72,7 @@
"eslint": "^8.50.0",
"eslint-config-artisan": "^0.2.1",
"eslint-generate-todo": "^0.2.0",
"firebase-tools": "^12.6.1",
"happy-dom": "^12.6.0",
"micromark": "^3.1.0",
"npm-run-all": "^4.1.5",
Expand Down
Loading

0 comments on commit c571d6c

Please sign in to comment.