Skip to content

Commit 8181fed

Browse files
author
Phoomparin Mano
committed
🔥 Added Firebase!
1 parent a4935b4 commit 8181fed

File tree

14 files changed

+7879
-23
lines changed

14 files changed

+7879
-23
lines changed

.babelrc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
{
2-
"extends": "react-static/.babelrc"
2+
"extends": "react-static/.babelrc",
3+
"env": {
4+
"production": {
5+
"plugins": [
6+
["emotion", {"sourceMap": false, "hoist": true, "autoLabel": true}]
7+
]
8+
},
9+
"development": {
10+
"plugins": [
11+
["emotion", {"sourceMap": true, "hoist": true, "autoLabel": true}]
12+
]
13+
}
14+
}
315
}

.eslintrc.js

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

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "noobdevth"
4+
}
5+
}

firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "dist",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

functions/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

functions/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const functions = require('firebase-functions');
2+
3+
// // Create and Deploy Your First Cloud Functions
4+
// // https://firebase.google.com/docs/functions/write-firebase-functions
5+
//
6+
// exports.helloWorld = functions.https.onRequest((request, response) => {
7+
// response.send("Hello from Firebase!");
8+
// });

0 commit comments

Comments
 (0)