-
Notifications
You must be signed in to change notification settings - Fork 1
WIP: local changes #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3178beb
e875350
1521204
47b1b1b
25cb949
0b33104
65bb7ba
0fbec3d
156f7db
300416f
19789bf
2d5cad6
851671c
18d21fc
552ed8b
4b90e0b
9a09d40
b54257d
5aeb358
090dad0
d31e2a6
35ff547
1f63104
0ab9b8f
f52a889
a1b50d2
c8bc686
c673eea
911f160
346ecda
ee7ab88
43e310e
91fb93f
3f5b041
8552a02
92a3246
3d05cea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| enableScripts: true | ||
|
|
||
| compressionLevel: 0 | ||
|
|
||
| defaultSemverRangePrefix: "" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,4 @@ | ||
| { | ||
| "name": "www", | ||
| "version": "0.0.1", | ||
| "private": true, | ||
| "description": "Plate documentation website", | ||
| "type": "module", | ||
|
Comment on lines
-2
to
-6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Stripping nearly all top-level fields from package.json will likely break the app workspace configuration. This |
||
| "scripts": { | ||
| "prebuild": "yarn build:contentlayer", | ||
| "build": "yarn prebuild && yarn r && NODE_OPTIONS='--max-old-space-size=8192' next build", | ||
| "build:contentlayer": "contentlayer2 build", | ||
| "build:registry": "NODE_ENV=production tsx --tsconfig ./scripts/tsconfig.scripts.json scripts/build-registry.mts", | ||
| "build:tw": "yarn tailwindcss -i ./src/app/globals.css -o ./public/tailwind.css --minify", | ||
| "dev": "concurrently \"contentlayer2 dev\" \"next dev\" \"PORT=4444 node ../../node_modules/y-webrtc/bin/server.js\"", | ||
| "lint": "yarn p:lint", | ||
| "lint:fix": "yarn p:lint:fix", | ||
| "preview": "next build && next start", | ||
| "r": "concurrently \"yarn build:registry\" \"yarn build:tw\"", | ||
| "rc": "concurrently \"contentlayer2 dev\" \"next dev\" \"PORT=4444 node ../../node_modules/y-webrtc/bin/server.js\"", | ||
| "rd": "NODE_ENV=development tsx --tsconfig ./scripts/tsconfig.scripts.json scripts/build-registry.mts", | ||
| "registry:capture": "tsx --tsconfig ./scripts/tsconfig.scripts.json ./scripts/capture-registry.mts", | ||
| "shadcn:build": "shadcn build public/r/registry.json", | ||
| "shadcn:build:docs": "shadcn build public/r/registry-docs.json", | ||
| "shadcn:dev": "shadcn build public/rd/registry.json --output public/rd", | ||
| "shadcn:dev:docs": "shadcn build public/rd/registry-docs.json --output public/rd", | ||
| "start": "next start", | ||
| "test:r": "tsx --tsconfig ./scripts/tsconfig.scripts.json ./scripts/test-registry.mts", | ||
| "typecheck": "yarn prebuild && tsc --noEmit", | ||
| "typecheck:watch": "yarn typecheck --watch" | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.2%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| }, | ||
| "dependencies": { | ||
| "@ai-sdk/gateway": "^3.0.0", | ||
| "@ai-sdk/google": "^3.0.0", | ||
|
|
@@ -138,7 +98,7 @@ | |
| "lodash": "4.17.21", | ||
| "lowlight": "3.3.0", | ||
| "lucide-react": "0.514.0", | ||
| "next": "16.0.10", | ||
| "next": "16.1.5", | ||
| "next-contentlayer2": "0.4.6", | ||
| "next-themes": "0.4.6", | ||
| "node-fetch": "3.3.2", | ||
|
|
@@ -206,4 +166,4 @@ | |
| "unist-builder": "4.0.0", | ||
| "unist-util-visit": "5.0.0" | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,69 +1,11 @@ | ||
| 'use client'; | ||
| import React from 'react'; | ||
|
|
||
| import * as React from 'react'; | ||
| const PlaygroundDemo = () => { | ||
| return ( | ||
| <div> | ||
| <h1>Playground Demo</h1> | ||
| </div> | ||
| ); | ||
| }; | ||
|
Comment on lines
+3
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): New PlaygroundDemo no longer renders the editor playground, which may be a regression in behavior. The previous version instantiated a fully functional Plate editor playground (including |
||
|
|
||
| import { PlaywrightPlugin } from '@platejs/playwright'; | ||
| import { KEYS, NormalizeTypesPlugin } from 'platejs'; | ||
| import { Plate, usePlateEditor } from 'platejs/react'; | ||
|
|
||
| import { useLocale } from '@/hooks/useLocale'; | ||
| import { getI18nValues } from '@/i18n/getI18nValues'; | ||
| import { EditorKit } from '@/registry/components/editor/editor-kit'; | ||
| import { CopilotKit } from '@/registry/components/editor/plugins/copilot-kit'; | ||
| import { ExcalidrawKit } from '@/registry/components/editor/plugins/excalidraw-kit'; | ||
| import { Editor, EditorContainer } from '@/registry/ui/editor'; | ||
|
|
||
| export default function PlaygroundDemo({ | ||
| id, | ||
| className, | ||
| }: { | ||
| id?: string; | ||
| className?: string; | ||
| }) { | ||
| const locale = useLocale(); | ||
| const value = getI18nValues(locale).playground; | ||
|
|
||
| const editor = usePlateEditor( | ||
| { | ||
| override: { | ||
| enabled: { | ||
| [KEYS.copilot]: id === 'copilot', | ||
| [KEYS.indent]: id !== 'listClassic', | ||
| [KEYS.list]: id !== 'listClassic', | ||
| [KEYS.listClassic]: id === 'listClassic', | ||
| [KEYS.playwright]: process.env.NODE_ENV !== 'production', | ||
| }, | ||
| }, | ||
| plugins: [ | ||
| ...CopilotKit, | ||
| ...EditorKit, | ||
| ...ExcalidrawKit, | ||
|
|
||
| NormalizeTypesPlugin.configure({ | ||
| enabled: id === 'forced-layout', | ||
| options: { | ||
| rules: [{ path: [0], strictType: 'h1' }], | ||
| }, | ||
| }), | ||
|
|
||
| // Testing | ||
| PlaywrightPlugin, | ||
| ], | ||
| value, | ||
| }, | ||
| [] | ||
| ); | ||
|
|
||
| return ( | ||
| <Plate editor={editor}> | ||
| <EditorContainer className={className}> | ||
| <Editor | ||
| variant="demo" | ||
| className="pb-[20vh]" | ||
| placeholder="Type something..." | ||
| spellCheck={false} | ||
| /> | ||
| </EditorContainer> | ||
| </Plate> | ||
| ); | ||
| } | ||
| export default PlaygroundDemo; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,6 @@ | |
| "g:typecheck": "turbo --filter \"./packages/**\" typecheck", | ||
| "g:typecheck:all": "turbo typecheck", | ||
| "gen:package": "yarn plop --plopfile tooling/scripts/plop/plopfile.cjs package", | ||
| "postinstall": "bunx skiller@latest apply && patch-package --patch-dir tooling/patches", | ||
| "lint": "biome check . && eslint", | ||
| "lint:fix": "biome check . --fix", | ||
| "nuke:node_modules": "rimraf '**/node_modules'", | ||
|
|
@@ -55,6 +54,7 @@ | |
| "p:tsdown": "cd $INIT_CWD && tsdown --config=${PROJECT_CWD}/tooling/config/tsdown.config.ts --log-level warn", | ||
| "p:typecheck": "cd $INIT_CWD && tsc -p $INIT_CWD/tsconfig.json", | ||
| "r": "yarn workspace www r", | ||
| "postinstall": "patch-package --patch-dir tooling/patches", | ||
| "rc": "turbo --filter=www rc", | ||
| "rd": "yarn workspace www rd", | ||
| "release": "yarn build && yarn changeset publish", | ||
|
|
@@ -106,14 +106,16 @@ | |
| "autoprefixer": "10.4.21", | ||
| "babel-plugin-react-compiler": "1.0.0", | ||
| "barrelsby": "2.8.1", | ||
| "bun": "^1.3", | ||
| "commander": "14.0.1", | ||
| "concurrently": "9.1.2", | ||
| "cross-env": "7.0.3", | ||
| "dotenv": "16.5.0", | ||
| "eslint": "^9.39.1", | ||
| "eslint-plugin-react-hooks": "7.0.1", | ||
| "openai": "5.3.0", | ||
| "patch-package": "8.0.0", | ||
| "patch-package": "8.0.0", | ||
| "postinstall-postinstall": "^2", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| "prompts": "2.4.2", | ||
| "react": "19.2.3", | ||
| "react-dnd-test-backend": "16.0.1", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
|
|
||
| [build] | ||
| builder = "RAILPACK" | ||
| buildCommand = "yarn install --refresh-lockfile && yarn postinstall && yarn turbo run build --filter=www" | ||
|
|
||
| [deploy] | ||
| startCommand = "cd apps/www && yarn start" | ||
| restartPolicyType = "ON_FAILURE" | ||
| restartPolicyMaxRetries = 10 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "$schema": "https://schema.railpack.com", | ||
| "provider": "node", | ||
| "steps": { | ||
| "install": { | ||
| "commands": ["yarn install --refresh-lockfile"] | ||
| }, | ||
| "postinstall": { | ||
| "commands": ["yarn postinstall"] | ||
| }, | ||
| "build": { | ||
| "commands": ["yarn build"] | ||
| } | ||
| }, | ||
| "deploy": { | ||
| "startCommand": "yarn start" | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of essential fields like
name,version, and especiallyscriptsfrom thispackage.jsonis a critical issue. The application's build and deployment processes, as defined in the newrailpack.tomlandrailway.jsonfiles, rely onbuildandstartscripts that are no longer present in this workspace package. This will cause the build and deployment to fail. Given the PR title is "WIP: local changes", this may have been an accidental change from a stash. These fields should be restored.