The firebase.json
should be in the root of the workspace and it only shows the relevant bits.
Put the webpack config into modules/firebase/
Before deploying the functions, build the function bundle with webpack
(it will end up in dist/
).
import {CascaderOptionType, FilledFieldNamesType} from 'antd/lib/cascader' | |
export const caseInsensitiveFilter = (inputValue: string, path: CascaderOptionType[], names: FilledFieldNamesType) => | |
path.some((option) => option[names.label].toLowerCase().includes(inputValue.toLowerCase())) |
validate_and_squash_this_branch () { | |
BRANCH=`git branch --show-current` | |
yarn validate && \ | |
git checkout master && \ | |
git merge --squash $BRANCH && \ | |
git commit -v -a | |
} |
|
async function fetchOnceAndSaveToDiskWithBuffer(url, filename) { | |
return new Promise(resolve => { | |
if (fs.existsSync(filename)) { | |
resolve(readFile(filename)); | |
return; | |
} | |
const file = fs.createWriteStream(filename); | |
javascript:fetch(`https://unsplash.com/photos/${document.location.href.split('/').pop()}/download`).then(({url}) => window.open(`${url.split('?')[0]}?w=2048&h=1024&fit=crop`)) |
The firebase.json
should be in the root of the workspace and it only shows the relevant bits.
Put the webpack config into modules/firebase/
Before deploying the functions, build the function bundle with webpack
(it will end up in dist/
).
import * as functions from 'firebase-functions' | |
import {ApolloServer, gql} from 'apollo-server-cloud-functions' | |
const typeDefs = gql` | |
type Query { | |
hello: String | |
} | |
` | |
const resolvers = { |
synoindex -R {all|photo|music|video|thumb} |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Cucumber", | |
"program": "${workspaceRoot}/node_modules/.bin/cucumber-js", | |
"args": [], | |
"internalConsoleOptions": "openOnSessionStart", |