9a11f55762
* 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
76 lines
2.7 KiB
JSON
76 lines
2.7 KiB
JSON
{
|
|
"name": "web",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "concurrently -n NEXT,TS -c magenta,cyan \"next dev -p 3000\" \"yarn ts --watch\"",
|
|
"devdev": "cross-env NEXT_PUBLIC_FIREBASE_ENV=DEV concurrently -n NEXT,TS -c magenta,cyan \"cross-env FIREBASE_ENV=DEV next dev -p 3000\" \"cross-env FIREBASE_ENV=DEV yarn ts --watch\"",
|
|
"dev:dev": "yarn devdev",
|
|
"dev:the": "cross-env NEXT_PUBLIC_FIREBASE_ENV=THEOREMONE concurrently -n NEXT,TS -c magenta,cyan \"cross-env FIREBASE_ENV=THEOREMONE next dev -p 3000\" \"cross-env FIREBASE_ENV=THEOREMONE yarn ts --watch\"",
|
|
"dev:emulate": "cross-env NEXT_PUBLIC_FIREBASE_EMULATE=TRUE yarn devdev",
|
|
"ts": "tsc --noEmit --incremental --preserveWatchOutput --pretty",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"format": "npx prettier --write .",
|
|
"postbuild": "next-sitemap",
|
|
"verify": "(cd .. && yarn verify)",
|
|
"verify:dir": "npx prettier --check .; yarn lint --max-warnings 0; tsc --pretty --project tsconfig.json --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@amplitude/analytics-browser": "0.4.1",
|
|
"@headlessui/react": "1.6.1",
|
|
"@heroicons/react": "1.0.5",
|
|
"@nivo/core": "0.74.0",
|
|
"@nivo/line": "0.74.0",
|
|
"@react-query-firebase/firestore": "0.4.2",
|
|
"@tiptap/extension-character-count": "2.0.0-beta.31",
|
|
"@tiptap/extension-image": "2.0.0-beta.30",
|
|
"@tiptap/extension-placeholder": "2.0.0-beta.53",
|
|
"@tiptap/react": "2.0.0-beta.114",
|
|
"@tiptap/starter-kit": "2.0.0-beta.190",
|
|
"algoliasearch": "4.13.0",
|
|
"clsx": "1.1.1",
|
|
"cors": "2.8.5",
|
|
"daisyui": "1.16.4",
|
|
"dayjs": "1.10.7",
|
|
"firebase": "9.6.0",
|
|
"gridjs": "5.0.2",
|
|
"gridjs-react": "5.0.2",
|
|
"lodash": "4.17.21",
|
|
"nanoid": "^3.3.4",
|
|
"next": "12.1.2",
|
|
"node-fetch": "3.2.4",
|
|
"react": "17.0.2",
|
|
"react-confetti": "6.0.1",
|
|
"react-dom": "17.0.2",
|
|
"react-expanding-textarea": "2.3.5",
|
|
"react-hot-toast": "2.2.0",
|
|
"react-instantsearch-hooks-web": "6.24.1",
|
|
"react-query": "3.39.0",
|
|
"string-similarity": "^4.0.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/forms": "0.4.0",
|
|
"@tailwindcss/line-clamp": "^0.3.1",
|
|
"@tailwindcss/typography": "^0.5.1",
|
|
"@types/lodash": "4.14.178",
|
|
"@types/node": "16.11.11",
|
|
"@types/react": "17.0.43",
|
|
"@types/string-similarity": "^4.0.0",
|
|
"autoprefixer": "10.2.6",
|
|
"concurrently": "6.5.1",
|
|
"critters": "0.0.16",
|
|
"cross-env": "^7.0.3",
|
|
"eslint-config-next": "12.1.6",
|
|
"next-sitemap": "^2.5.14",
|
|
"postcss": "8.3.5",
|
|
"prettier-plugin-tailwindcss": "^0.1.5",
|
|
"tailwindcss": "3.1.6",
|
|
"tsc-files": "1.1.3"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx}": "tsc-files --noEmit --incremental false"
|
|
}
|
|
}
|