2021-12-10 18:10:30 +00:00
|
|
|
{
|
|
|
|
"name": "functions",
|
2022-02-01 21:25:51 +00:00
|
|
|
"version": "1.0.0",
|
2022-04-25 15:46:35 +00:00
|
|
|
"config": {
|
|
|
|
"firestore": "dev-mantic-markets.appspot.com"
|
|
|
|
},
|
2021-12-10 18:10:30 +00:00
|
|
|
"scripts": {
|
2022-07-04 23:04:05 +00:00
|
|
|
"build": "yarn compile && rm -rf dist && mkdir -p dist/functions && cp -R ../common/lib dist/common && cp -R lib/src dist/functions/src && cp ../yarn.lock dist && cp package.json dist && cp .env dist",
|
2022-06-27 20:32:24 +00:00
|
|
|
"compile": "tsc -b",
|
2021-12-24 21:06:01 +00:00
|
|
|
"watch": "tsc -w",
|
2021-12-19 22:08:25 +00:00
|
|
|
"shell": "yarn build && firebase functions:shell",
|
|
|
|
"start": "yarn shell",
|
2021-12-10 18:10:30 +00:00
|
|
|
"deploy": "firebase deploy --only functions",
|
2022-04-25 15:46:35 +00:00
|
|
|
"logs": "firebase functions:log",
|
2022-07-24 07:26:38 +00:00
|
|
|
"dev": "nodemon src/serve.ts",
|
|
|
|
"firestore": "firebase emulators:start --only firestore --import=./firestore_export",
|
2022-07-03 19:37:22 +00:00
|
|
|
"serve": "firebase use dev && yarn build && firebase emulators:start --only functions,firestore --import=./firestore_export",
|
2022-04-25 15:46:35 +00:00
|
|
|
"db:update-local-from-remote": "yarn db:backup-remote && gsutil rsync -r gs://$npm_package_config_firestore/firestore_export ./firestore_export",
|
|
|
|
"db:backup-local": "firebase emulators:export --force ./firestore_export",
|
|
|
|
"db:rename-remote-backup-folder": "gsutil mv gs://$npm_package_config_firestore/firestore_export gs://$npm_package_config_firestore/firestore_export_$(date +%d-%m-%Y-%H-%M)",
|
2022-06-03 22:10:14 +00:00
|
|
|
"db:backup-remote": "yarn db:rename-remote-backup-folder && gcloud firestore export gs://$npm_package_config_firestore/firestore_export/",
|
2022-06-28 19:46:25 +00:00
|
|
|
"verify": "(cd .. && yarn verify)",
|
|
|
|
"verify:dir": "npx eslint . --max-warnings 0; tsc -b -v --pretty"
|
2021-12-10 18:10:30 +00:00
|
|
|
},
|
2022-06-27 20:32:24 +00:00
|
|
|
"main": "functions/src/index.js",
|
2021-12-10 18:10:30 +00:00
|
|
|
"dependencies": {
|
2022-06-16 02:29:46 +00:00
|
|
|
"@amplitude/node": "1.10.0",
|
2022-07-05 19:25:58 +00:00
|
|
|
"@google-cloud/functions-framework": "3.1.2",
|
Rich content (#620)
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 18:58:22 +00:00
|
|
|
"@tiptap/core": "2.0.0-beta.181",
|
|
|
|
"@tiptap/extension-image": "2.0.0-beta.30",
|
2022-07-13 22:56:15 +00:00
|
|
|
"@tiptap/extension-link": "2.0.0-beta.43",
|
2022-07-24 03:37:34 +00:00
|
|
|
"@tiptap/extension-mention": "2.0.0-beta.102",
|
Rich content (#620)
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 18:58:22 +00:00
|
|
|
"@tiptap/starter-kit": "2.0.0-beta.190",
|
2022-08-04 11:16:41 +00:00
|
|
|
"@types/cheerio": "^0.22.31",
|
|
|
|
"cheerio": "1.0.0-rc.12",
|
2022-07-24 07:26:38 +00:00
|
|
|
"cors": "2.8.5",
|
|
|
|
"express": "4.18.1",
|
2021-12-11 00:06:17 +00:00
|
|
|
"firebase-admin": "10.0.0",
|
2022-06-04 21:39:25 +00:00
|
|
|
"firebase-functions": "3.21.2",
|
2022-01-02 00:08:52 +00:00
|
|
|
"lodash": "4.17.21",
|
2022-01-07 22:56:14 +00:00
|
|
|
"mailgun-js": "0.22.0",
|
2022-05-10 20:59:38 +00:00
|
|
|
"module-alias": "2.2.2",
|
2022-05-26 21:37:51 +00:00
|
|
|
"stripe": "8.194.0",
|
|
|
|
"zod": "3.17.2"
|
2021-12-10 18:10:30 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-01-02 00:08:52 +00:00
|
|
|
"@types/mailgun-js": "0.22.12",
|
2022-05-22 07:35:43 +00:00
|
|
|
"@types/module-alias": "2.0.1",
|
2022-08-29 20:49:55 +00:00
|
|
|
"firebase-functions-test": "0.3.3",
|
|
|
|
"puppeteer": "17.0.0"
|
2021-12-10 18:10:30 +00:00
|
|
|
},
|
|
|
|
"private": true
|
|
|
|
}
|