Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1005 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 1005 Bytes

Initial setup

pnpm i
pnpm build

To add a new document model and editor

Put your document model code in /document-models/ following the existing pattern for document models.

Add export { module as YourModelName } from "./your-model-name-directory"; to /document-models/index.ts.

Add your editor code in /editors/ following the existing pattern for editors.

Add export { module as YourEditorName } from "./your-editor-name-directory"; to /editors/index.ts.

Testing

pnpm test

should run your tests and they should pass.

pnpm build

should run the generate script and build your project.

pnpm storybook

should run the storybook script and open the storybook UI. You should see your editor in the storybook UI.

NOTE

You may see build and lint errors and failing tests for other document models and editors. You can ignore these errors, since they should be rectified by the people working on the document models and editors.