generated from Dev-FE-1/Toy_Project_III_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: firebase eslint, prettier 재설정 (#7)
- Loading branch information
1 parent
27c6093
commit 55bde55
Showing
14 changed files
with
254 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,4 +151,7 @@ stats.html | |
*.sw? | ||
|
||
|
||
.firebase | ||
.firebase | ||
|
||
premissions.json | ||
serviceAccountKey.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"printWidth": 100, | ||
"trailingComma": "all", | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"quoteProps": "as-needed", | ||
"endOfLine": "lf", | ||
"jsxSingleQuote": false, | ||
"jsxBracketSameLine": false, | ||
"requirePragma": false, | ||
"insertPragma": false, | ||
"proseWrap": "preserve", | ||
"htmlWhitespaceSensitivity": "css" | ||
} |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
/** | ||
* Import function triggers from their respective submodules: | ||
* | ||
* import {onCall} from "firebase-functions/v2/https"; | ||
* import {onDocumentWritten} from "firebase-functions/v2/firestore"; | ||
* | ||
* See a full list of supported triggers at https://firebase.google.com/docs/functions | ||
*/ | ||
// import * as logger from "firebase-functions/logger"; | ||
import * as cors from 'cors'; | ||
import * as express from 'express'; | ||
import * as admin from 'firebase-admin'; | ||
import * as functions from 'firebase-functions'; | ||
|
||
// import { onRequest } from 'firebase-functions/v2/https'; | ||
// import * as logger from 'firebase-functions/logger'; | ||
import * as serviceAccount from '../lib/serviceAccountKey.json'; | ||
|
||
// Start writing functions | ||
// https://firebase.google.com/docs/functions/typescript | ||
// Firebase Admin SDK init | ||
admin.initializeApp({ | ||
credential: admin.credential.cert(serviceAccount as admin.ServiceAccount), | ||
}); | ||
|
||
// export const helloWorld = onRequest((request, response) => { | ||
// logger.info("Hello logs!", {structuredData: true}); | ||
// response.send("Hello from Firebase!"); | ||
// }); | ||
// const db = admin.firestore(); | ||
const app = express(); | ||
|
||
app.use(express.json()); | ||
app.use(cors({ origin: true })); | ||
|
||
app.get('/', (req, res) => { | ||
return res.status(200).send('Hello World!'); | ||
}); | ||
|
||
export const api = functions.https.onRequest(app); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"include": [ | ||
".eslintrc.js", | ||
"src" | ||
] | ||
"include": [".eslintrc.js"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.