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
{ | |
"functions": { | |
"predeploy": [ | |
"node predeploy.js" | |
], | |
"source": "functions" | |
}, | |
"firestore": { | |
"rules": "config/firestore.rules", | |
"indexes": "config/firestore.indexes.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
// @ts-nocheck TODO: remove at some point | |
// TODO: what todo with those two imports? needed? if so why and how? | |
//import config from './config'; | |
//import './css/index.css'; | |
import sirv from 'sirv'; | |
import polka from 'polka'; | |
import compression from 'compression'; | |
import * as sapper from '@sapper/server'; |
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
// @ts-nocheck TODO: remove at some point | |
import babel from 'rollup-plugin-babel'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import config from 'sapper/config/rollup.js'; | |
import getPreprocessor from 'svelte-preprocess' | |
import path from 'path' | |
import pkg from './package.json'; | |
import postcss from 'rollup-plugin-postcss' | |
import replace from 'rollup-plugin-replace'; |
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
// @ts-nocheck | |
import * as sapper from '@sapper/app'; | |
sapper.start( { | |
target: document.querySelector( '#sapper' ) | |
} ).then( prefetchRoutes() ); |
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
// @ts-nocheck TODO: remove once there are typings in place | |
// Start writing Firebase Functions | |
// https://firebase.google.com/docs/functions/typescript | |
const functions = require('firebase-functions'); | |
// We have to import the built version of the server middleware. | |
const { app } = require('../__sapper__/build/server/server'); | |
app.get('/', (request, response) => { | |
response.set( |
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
import './css/tailwind.css'; | |
import * as sapper from '@sapper/server'; | |
import compression from 'compression'; | |
import express from 'express'; | |
import helmet from "helmet"; | |
import sirv from 'sirv'; | |
const { | |
PORT, | |
NODE_ENV |
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
// @ts-nocheck TODO: remove at some point | |
import babel from 'rollup-plugin-babel'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import config from 'sapper/config/rollup.js'; | |
import getPreprocessor from 'svelte-preprocess' | |
import path from 'path' | |
import pkg from './package.json'; | |
import postcss from 'rollup-plugin-postcss' | |
import replace from 'rollup-plugin-replace'; |
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
// TODO: replace type any for request and response | |
// Start writing Firebase Functions | |
// https://firebase.google.com/docs/functions/typescript | |
const functions = require('firebase-functions'); | |
// We have to import the built version of the server middleware. | |
const { app } = require('../__sapper__/build/server/server'); | |
const oneHour = 60 * 60 | |
const oneDay = oneHour * 24 |
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
// @ts-nocheck | |
// TODO: remove once there are typings in place | |
import './css/tailwind.css'; | |
import * as sapper from '@sapper/server'; | |
import compression from 'compression'; | |
import express from 'express'; | |
import helmet from "helmet"; | |
import sirv from 'sirv'; | |
import uuidv4 from 'uuid/v4'; |
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
// @ts-nocheck | |
// TODO: remove once there are typings in place | |
import './css/tailwind.css'; | |
import * as sapper from '@sapper/server'; | |
import compression from 'compression'; | |
import express from 'express'; | |
import helmet from "helmet"; | |
import sirv from 'sirv'; | |
import uuidv4 from 'uuid/v4'; |