Skip to content

Commit

Permalink
YT-41: migrate firebase functions to call google apis and use (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanL123 authored Aug 14, 2024
1 parent 6266839 commit 31237a5
Show file tree
Hide file tree
Showing 13 changed files with 7,415 additions and 2,104 deletions.
33 changes: 23 additions & 10 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,27 @@
}
]
},
"functions": {
"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run lint"],
"rewrites": [
{
"source": "**",
"function": "app"
}
],
"source": "functions"
}
"functions": [
{
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
],
"rewrites": [
{
"source": "**",
"function": "app"
}
],
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log",
"*.local"
]
}
]
}
30 changes: 30 additions & 0 deletions functions/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"google",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["tsconfig.json", "tsconfig.dev.json"],
sourceType: "module",
},
ignorePatterns: [
"/lib/**/*", // Ignore built files.
"/generated/**/*", // Ignore generated files.
],
plugins: ["@typescript-eslint", "import"],
rules: {
quotes: ["error", "double"],
"import/no-unresolved": 0,
indent: ["error", 2],
},
};
11 changes: 10 additions & 1 deletion functions/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
node_modules/
# Compiled JavaScript files
lib/**/*.js
lib/**/*.js.map

# TypeScript v1 declaration files
typings/

# Node.js dependency directory
node_modules/
*.local
23 changes: 0 additions & 23 deletions functions/index.js

This file was deleted.

Loading

0 comments on commit 31237a5

Please sign in to comment.