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/chat-kit-bundle
cursor
symfony
bundle
messaging
chat
realtime
symfony-bundle
web-push
mercure
frankenphp
nowo
direct-messages
support-inbox

Frontend rules for the bundle's TypeScript dock (Vite library build to an IIFE, pnpm, Vitest)

Install
php artisan boost:add-skill nowo-tech/chat-kit-bundle

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

Work only on the requested entrypoint, module, component, or stylesheet.

Prefer:
- strict TypeScript typing
- small modules and focused edits
- preserving the current Vite entrypoint strategy: one library build, entry `src/Resources/assets/src/iife.ts`
  (`index.ts` exports `mount` / `unmount` for hosts that bundle the sources themselves)
- editing existing initialization code instead of creating parallel bootstraps
- TypeScript sources live in `src/Resources/assets/src/`, Vitest specs in `src/Resources/assets/tests/`
- the build output is the single IIFE `src/Resources/public/js/nowo-chat.js` (`vite.config.ts` `outDir`
  `src/Resources/public/js`), produced by `make assets` (`pnpm run build` = `vite build` in the container); the
  stylesheet `src/Resources/public/css/nowo-chat.css` is hand-written source, not a build output
- the dock markup comes from Twig `<template>` blocks in `src/Resources/views/_templates.html.twig`; keep `data-part`
  hooks in sync between Twig and `templates.ts` / `dock.ts` / `thread.ts`
- running `make test-ts` (Vitest with coverage) after a change
- preserving integration points used by Twig or Symfony rendering
- JSDoc in English for exported APIs, non-obvious functions, and complex behavior

Do not inspect the minified `src/Resources/public/js/nowo-chat.js` or other generated assets.
The bundle does not use Pentatrion Vite Bundle (only the demo app does, for its own `assets/app.ts`); do not add `vite_entry_*` tags to bundle templates.
Do not add JSDoc in Spanish.
Do not edit generated build output.
Do not rewrite the whole frontend architecture unless explicitly requested.

Work only on the requested entrypoint, module, component, or stylesheet.

Prefer:

  • strict TypeScript typing
  • small modules and focused edits
  • preserving the current Vite entrypoint strategy: one library build, entry src/Resources/assets/src/iife.ts (index.ts exports mount / unmount for hosts that bundle the sources themselves)
  • editing existing initialization code instead of creating parallel bootstraps
  • TypeScript sources live in src/Resources/assets/src/, Vitest specs in src/Resources/assets/tests/
  • the build output is the single IIFE src/Resources/public/js/nowo-chat.js (vite.config.ts outDir src/Resources/public/js), produced by make assets (pnpm run build = vite build in the container); the stylesheet src/Resources/public/css/nowo-chat.css is hand-written source, not a build output
  • the dock markup comes from Twig <template> blocks in src/Resources/views/_templates.html.twig; keep data-part hooks in sync between Twig and templates.ts / dock.ts / thread.ts
  • running make test-ts (Vitest with coverage) after a change
  • preserving integration points used by Twig or Symfony rendering
  • JSDoc in English for exported APIs, non-obvious functions, and complex behavior

Do not inspect the minified src/Resources/public/js/nowo-chat.js or other generated assets. The bundle does not use Pentatrion Vite Bundle (only the demo app does, for its own assets/app.ts); do not add vite_entry_* tags to bundle templates. Do not add JSDoc in Spanish. Do not edit generated build output. Do not rewrite the whole frontend architecture unless explicitly requested.

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