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/manual-kit-bundle
cursor
symfony
documentation
i18n
markdown
bundle
translations
help
manual
symfony-bundle
commonmark
frankenphp
nowo

Frontend rules (TypeScript, Vite, Stimulus) of ManualKitBundle

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

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

Layout:
- `src/Resources/assets/stimulus-peers/manual_lightbox_controller.ts` — Stimulus peer the host bundles (keep the
  `*_controller.ts` name and its import path stable: hosts re-export it)
- `src/Resources/assets/src/` — standalone entry (`manual-lightbox.ts`, `register-lightbox.ts`) built by Vite
  (`vite.config.ts`) into `src/Resources/public/js/manual-lightbox.js`, which is committed; CI fails when it is stale
- the demo compiles the peer with Pentatrion Vite (`demo/symfony8/assets/app.ts`)

Prefer:
- strict TypeScript (`pnpm run typecheck`), kebab-case file names except Stimulus `*_controller.ts`
- `textContent` / DOM nodes — ESLint forbids `innerHTML`, `outerHTML` and `insertAdjacentHTML`
- English JSDoc with `@param` / `@returns` on exported functions
- `make assets` after changing the standalone sources, `make test-ts` (Vitest, 100% today) before finishing

Use pnpm only (`packageManager` in package.json). Do not inspect or hand-edit the built `public/js` output.

Layout:

  • src/Resources/assets/stimulus-peers/manual_lightbox_controller.ts — Stimulus peer the host bundles (keep the *_controller.ts name and its import path stable: hosts re-export it)
  • src/Resources/assets/src/ — standalone entry (manual-lightbox.ts, register-lightbox.ts) built by Vite (vite.config.ts) into src/Resources/public/js/manual-lightbox.js, which is committed; CI fails when it is stale
  • the demo compiles the peer with Pentatrion Vite (demo/symfony8/assets/app.ts)

Prefer:

  • strict TypeScript (pnpm run typecheck), kebab-case file names except Stimulus *_controller.ts
  • textContent / DOM nodes — ESLint forbids innerHTML, outerHTML and insertAdjacentHTML
  • English JSDoc with @param / @returns on exported functions
  • make assets after changing the standalone sources, make test-ts (Vitest, 100% today) before finishing

Use pnpm only (packageManager in package.json). Do not inspect or hand-edit the built public/js output.

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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel