This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en" class="font-montserrat"> | |
| <head> | |
| <meta charset='utf-8'> | |
| <meta name='viewport' content='width=device-width,initial-scale=1.0'> | |
| <meta name='theme-color' content='#333333'> | |
| %sapper.base% | |
This file contains hidden or 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
| const colors = { | |
| 'primary-blue': '#0e2730' | |
| }; | |
| module.exports = { | |
| theme: { | |
| container: { | |
| center: true, | |
| padding: '2rem', | |
| }, |
This file contains hidden or 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 | |
| // https://github.com/firebase/functions-samples/tree/master/typescript-getting-started | |
| // https://stackoverflow.com/questions/41685054/clarification-on-typescripts-nounusedparameters-compiler-option | |
| import * as functions from 'firebase-functions'; | |
| // We have to import the built version of the server middleware. | |
| const { app } = require('../__sapper__/build/server/server'); |
This file contains hidden or 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
| # .firebaserc https://stackoverflow.com/questions/43527359/what-is-the-practice-on-committing-firebase-files-in-a-nodejs-app | |
| # src/firebase/config.js this one is public information as it needs to be available on the client to identify the firebase project at hand | |
| **/__sapper__ | |
| .DS_Store | |
| .firebase/ | |
| firebase-debug.log | |
| static/global.css | |
| yarn-error.log | |
| src/node_modules/* | |
| !src/node_modules/utils |
This file contains hidden or 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
| const colors = { | |
| 'primary-blue': '#0e2730' | |
| }; | |
| module.exports = { | |
| theme: { | |
| container: { | |
| center: true, | |
| padding: '2rem', | |
| }, |
This file contains hidden or 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 "tailwindcss/base"; | |
| @import "tailwindcss/components"; | |
| @import './components'; | |
| @import "tailwindcss/utilities"; |
This file contains hidden or 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
| { | |
| "name": "functions", | |
| "scripts": { | |
| "build": "tsc", | |
| "deploy": "firebase deploy --only functions", | |
| "logs": "firebase functions:log", | |
| "serve": "firebase serve --only functions,hosting", | |
| "shell": "firebase functions:shell", | |
| "start": "npm run shell" | |
| }, |
This file contains hidden or 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
| const fs = require('fs-extra'); | |
| fs.remove('./functions/__sapper__').then(() => { | |
| console.log('copying build folder to functions') | |
| fs.copySync('./__sapper__', './functions/__sapper__'); | |
| }); | |
This file contains hidden or 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
| { | |
| "name": "", | |
| "description": "This is the source code repository for Foo", | |
| "version": "0.0.1", | |
| "license": "UNLICENSED", | |
| "scripts": { | |
| "edm:purge": "rm -rf __sapper__/ node_modules/ package-lock.json static/global.css yarn.lock src/node_modules/@sapper functions/__sapper__ functions/node_modules/ functions/package-lock.json functions/src/node_modules functions/yarn.lock ", | |
| "edm:backup": "cp -a ../edm ../edm_$(date +%s)", | |
| "edm:install": "npm install; cd functions; npm install", | |
| "edm:build": "sapper build; cd functions; tsc; cd ..; node predeploy.js", |
This file contains hidden or 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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "allowJs": true, | |
| "alwaysStrict": true, | |
| "checkJs": true, | |
| "module": "commonjs", | |
| "noFallthroughCasesInSwitch": true, | |
| "noImplicitAny": true, | |
| "noImplicitReturns": true, | |
| "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ |