-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.sh
31 lines (21 loc) · 847 Bytes
/
firebase.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
# ------------------------------------------------------------------------------
e_pending "Installing Google Firebase Tools"
# ------------------------------------------------------------------------------
if test ! $(which aws); then
# Install Firebase CLI
echo "------------------------------"
echo "Setting up Firebase CLI."
curl -sL firebase.tools | bash
npm install -g firebase-tools
npm install firebase-functions@latest firebase-admin@latest --save
firebase emulators:start
# https://firebase.google.com/docs/emulator-suite
# install firebase cli client
# https://github.com/ragingwind/fcm-cli#readme
npm install -g fcm-cli
else
npm update -g firebase-tools
npm install firebase-functions@latest firebase-admin@latest --save
firebase emulators:start
fi