A Next.js-based document editor using TipTap.
This is a monorepo containing:
- Root (
/) - Next.js application for local development and testing packages/editor- Standalone@goat/editornpm package
This project uses git submodules for reference (located in submodules/):
docx- DOCX generation library sourcetiptap- TipTap editor source and demos (submodules/tiptap/demos)BlockNote- Reference for DOCX export architecture (submodules/BlockNote/packages/xl-docx-exporter/)
To set them up:
git submodule update --init --recursiveThen install all dependencies:
npm installnpm run devOpen http://localhost:3003 to view the editor.
The editor package is located in packages/editor/.
Build the package:
npm run build:editorWatch mode (auto-rebuild on changes):
npm run dev:editorBuild from package directory:
cd packages/editor
npm run buildAfter building the editor package, the Next.js app will automatically use the updated local version. Simply rebuild the package and refresh your browser.
- Update the version in
packages/editor/package.json - Ensure the build is clean:
npm run build:editor
- Review what will be published:
cd packages/editor && npm pack --dry-run
cd packages/editor
# Publish (first time or new version)
npm publish --access public
# Or bump version and publish
npm version patch && npm publish --access public| Script | Description |
|---|---|
npm run dev |
Start Next.js development server |
npm run build |
Build the Next.js app |
npm run build:editor |
Build the @goat/editor package |
npm run dev:editor |
Watch mode for @goat/editor |
npm run lint |
Run ESLint |