Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
30 Frontend Ts Vite Pentatrion
30 Frontend Ts Vite Pentatrion
nowo-tech/milkdown-editor-bundle
cursor
symfony
form
markdown
bundle
wysiwyg
editor
symfony-bundle
commonmark
frankenphp
nowo
milkdown
crepe

Frontend rules for the bundle's TypeScript editor (Vite ES-module library with lazy chunks, pnpm, Vitest)

Install
php artisan boost:add-skill nowo-tech/milkdown-editor-bundle

Save this content to: .cursor/rules/30-frontend-ts-vite-pentatrion.mdc

Work only on the requested module or stylesheet.

Prefer:
- strict TypeScript typing; English JSDoc on exported APIs
- the current build: one ES-module library entry `src/Resources/assets/src/index.ts` → `src/Resources/public/milkdown-editor.js`
  (+ `milkdown-editor.css`, `chunks/`, `katex/`), produced by `make assets`
- heavy features (CodeMirror, KaTeX, Mermaid, collaboration, top bar) stay behind dynamic `import()`; check `make bundle-size`
- DOM built with `createElement` / `textContent` (no `innerHTML` with user data, no inline handlers, no eval)
- the Markdown dialect is shared with the PHP renderer: change both and their tests together
- keep CSP compatibility: styles through the stylesheet or CSSOM, nonces for injected style elements
- running `make test-ts` (Vitest with coverage) and `make lint-ts` after a change

Do not inspect or edit generated build output under `src/Resources/public/`.
The bundle does not use Pentatrion Vite Bundle; do not add `vite_entry_*` tags to bundle templates.
Do not use Crepe's list-item, image-block, block-edit, AI or emoji features (a11y, remote images, CSP).

Work only on the requested module or stylesheet.

Prefer:

  • strict TypeScript typing; English JSDoc on exported APIs
  • the current build: one ES-module library entry src/Resources/assets/src/index.ts → src/Resources/public/milkdown-editor.js (+ milkdown-editor.css, chunks/, katex/), produced by make assets
  • heavy features (CodeMirror, KaTeX, Mermaid, collaboration, top bar) stay behind dynamic import(); check make bundle-size
  • DOM built with createElement / textContent (no innerHTML with user data, no inline handlers, no eval)
  • the Markdown dialect is shared with the PHP renderer: change both and their tests together
  • keep CSP compatibility: styles through the stylesheet or CSSOM, nonces for injected style elements
  • running make test-ts (Vitest with coverage) and make lint-ts after a change

Do not inspect or edit generated build output under src/Resources/public/. The bundle does not use Pentatrion Vite Bundle; do not add vite_entry_* tags to bundle templates. Do not use Crepe's list-item, image-block, block-edit, AI or emoji features (a11y, remote images, CSP).

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource