{"_id":"@campino/vite","_rev":"3-fbfca37f9f6c5fa7715bdcbbf7684cac","name":"@campino/vite","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@campino/vite","version":"1.0.0","keywords":["campino","vite-plugin-campino"],"author":{"name":"Henric Söderlind","email":"henric.soderlind@outlook.com"},"license":"MIT","_id":"@campino/vite@1.0.0","maintainers":[{"name":"campino","email":"henric.soderlind@outlook.com"}],"homepage":"https://github.com/hynek-systems/campino-vite#readme","bugs":{"url":"https://github.com/hynek-systems/campino-vite/issues"},"dist":{"shasum":"1b2d30a158dccbfdd8b05e340129d983744f9b59","tarball":"https://registry.npmjs.org/@campino/vite/-/vite-1.0.0.tgz","fileCount":4,"integrity":"sha512-7IHRIvoAGY3Kj2Chjg7N5OWNJBvZj+2hz0dNB2hecJwEhCpj505z/bZLcWCT4a1FPgBz6KsHH3DUJDqlVFq2Hw==","signatures":[{"sig":"MEUCIHOBxi+aPLzMeI7xa3fZfbp6BWlRyRV1gQ3GYYq8wmGGAiEAlU5A5Fw04esxjgZnvloVeYR+0P1ByCJadSYwL5L2Si8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9922},"type":"module","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"e63fa0bfa03bbe8accf0f81fe9e862e9730d025b","scripts":{"dev":"vp pack --watch","test":"vp test","build":"vp pack","check":"vp check","prepare":"vp config","prepublishOnly":"vp run build"},"_npmUser":{"name":"campino","email":"henric.soderlind@outlook.com"},"repository":{"url":"git+https://github.com/hynek-systems/campino-vite.git","type":"git"},"_npmVersion":"11.18.0","description":"A Vite plugin for frontend development with Campino.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"npm@11.18.0","devDependencies":{"bumpp":"^11.1.0","vite-plus":"^0.1.20","typescript":"^6.0.3","@types/node":"^25.6.2","@typescript/native-preview":"7.0.0-dev.20260509.2"},"peerDependencies":{"vite":"^8.0.0","vitest":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/vite_1.0.0_1783705175718_0.4994613493835136","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@campino/vite","version":"1.1.0","keywords":["campino","vite-plugin-campino"],"author":{"name":"Henric Söderlind","email":"henric.soderlind@outlook.com"},"license":"MIT","_id":"@campino/vite@1.1.0","maintainers":[{"name":"campino","email":"henric.soderlind@outlook.com"}],"homepage":"https://github.com/hynek-systems/campino-vite#readme","bugs":{"url":"https://github.com/hynek-systems/campino-vite/issues"},"dist":{"shasum":"c3c9d81639361ec251d160d34a17d612db1a4da6","tarball":"https://registry.npmjs.org/@campino/vite/-/vite-1.1.0.tgz","fileCount":4,"integrity":"sha512-7Bm64FWA/cXbKT+0yKgkwlziRC+WqEwUt5HlKvugSDBvezfixyax8X20OQlZxKWKvEQNr/A2sAEhR4Ip2lMkxg==","signatures":[{"sig":"MEUCIQDTtbyclUc3Vh9vmLUf4LHzOTEgQzjTaDOkzjmR+kmd0AIgAW8n2LitcqT9p4pDZ13NUXJ2KG/qLScPZSO29NrNYGw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13876},"type":"module","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"eb9f2507c53594155250c41fe45e4a9629058b54","scripts":{"dev":"vp pack --watch","test":"vp test","build":"vp pack","check":"vp check","prepare":"vp config","prepublishOnly":"vp run build"},"_npmUser":{"name":"campino","email":"henric.soderlind@outlook.com"},"repository":{"url":"git+https://github.com/hynek-systems/campino-vite.git","type":"git"},"_npmVersion":"11.18.0","description":"A Vite plugin for frontend development with Campino.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"npm@11.18.0","devDependencies":{"bumpp":"^11.1.0","vite-plus":"^0.1.20","typescript":"^6.0.3","@types/node":"^25.6.2","@typescript/native-preview":"7.0.0-dev.20260509.2"},"peerDependencies":{"vite":"^8.0.0","vitest":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/vite_1.1.0_1784207430244_0.4083024250543732","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@campino/vite","version":"1.1.1","description":"A Vite plugin for frontend development with Campino.","keywords":["campino","vite-plugin-campino"],"homepage":"https://github.com/hynek-systems/campino-vite#readme","bugs":{"url":"https://github.com/hynek-systems/campino-vite/issues"},"license":"MIT","author":{"name":"Henric Söderlind","email":"henric.soderlind@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/hynek-systems/campino-vite.git"},"type":"module","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","dev":"vp pack --watch","test":"vp test","check":"vp check","prepublishOnly":"vp run build","prepare":"vp config"},"devDependencies":{"@types/node":"^25.6.2","@typescript/native-preview":"7.0.0-dev.20260509.2","bumpp":"^11.1.0","typescript":"^6.0.3","vite-plus":"^0.1.20"},"peerDependencies":{"vite":"^8.0.0","vitest":"^4.0.18"},"packageManager":"npm@11.18.0","gitHead":"45afa74254f26bb9cd830a4155442c3620be155d","_id":"@campino/vite@1.1.1","_nodeVersion":"24.18.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-ckecdCeaq3YOGczg9GNA42RIfqFcdFAdl96dXGDLwkXILYAdfv9hu/+epBhlcY4DoANopPAg2nXDk6nJdXJ45Q==","shasum":"8c173709cbf5c35bda8addc17d1daa2370fd596d","tarball":"https://registry.npmjs.org/@campino/vite/-/vite-1.1.1.tgz","fileCount":4,"unpackedSize":15146,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHaamFLuGSCSOK6BHmwCBjFlu8NrVcZmkAIKIhyLYQWAAiADhV3ZicwqMmmhgCzmkmCBiZAXcvRN77cgq6rLs7ccPQ=="}]},"_npmUser":{"name":"campino","email":"henric.soderlind@outlook.com"},"directories":{},"maintainers":[{"name":"campino","email":"henric.soderlind@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite_1.1.1_1784210366673_0.5765029186021482"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-10T17:39:35.565Z","modified":"2026-07-16T13:59:26.955Z","1.0.0":"2026-07-10T17:39:35.852Z","1.1.0":"2026-07-16T13:10:30.378Z","1.1.1":"2026-07-16T13:59:26.819Z"},"bugs":{"url":"https://github.com/hynek-systems/campino-vite/issues"},"author":{"name":"Henric Söderlind","email":"henric.soderlind@outlook.com"},"license":"MIT","homepage":"https://github.com/hynek-systems/campino-vite#readme","keywords":["campino","vite-plugin-campino"],"repository":{"type":"git","url":"git+https://github.com/hynek-systems/campino-vite.git"},"description":"A Vite plugin for frontend development with Campino.","maintainers":[{"name":"campino","email":"henric.soderlind@outlook.com"}],"readme":"# @campino/vite\n\nThe official Vite plugin for Campino.\n\nIt automatically discovers frontend resources from your application and installed modules, making them available to Vite during development and production builds.\n\n## Features\n\n- 🔍 Automatic discovery of service providers\n- 📦 Automatic discovery of JavaScript entries\n- 🎨 Automatic discovery of CSS entries\n- ⚡ Virtual modules\n- 🔥 Hot reload during development\n- 🚀 Zero configuration\n\n## Installation\n\n```bash\nnpm install vite @campino/vite --save-dev\n```\n\n## Usage\n\n```ts\nimport { defineConfig } from \"vite\";\nimport { campino } from \"@campino/vite\";\n\nexport default defineConfig({\n  plugins: [campino()],\n});\n```\n\nThat's it.\n\nThe plugin automatically discovers frontend resources from your application and every installed Campino module.\n\n## Project structure\n\nApplication resources:\n\n```text\nresources/\n├── css/\n│   └── app.css\n└── js/\n    ├── app.ts\n    └── provider.ts\n```\n\nModule resources:\n\n```text\nmodules/\n└── blog/\n    └── resources/\n        ├── css/\n        │   └── module.css\n        └── js/\n            ├── module.ts\n            └── provider.ts\n```\n\n## Virtual modules\n\n### Providers\n\nImport every discovered frontend provider.\n\n```ts\nimport providers from \"virtual:campino/providers\";\n\nfor (const Provider of providers) {\n  app.register(Provider);\n}\n```\n\nEach provider must export a default class.\n\n```ts\nexport default class BlogServiceProvider {\n  register(app) {\n    //\n  }\n}\n```\n\n## Automatic entry discovery\n\nThe plugin automatically includes the following files in the Vite build when present.\n\nApplication\n\n- `resources/js/app.ts`\n- `resources/js/app.js`\n- `resources/css/app.css`\n\nModules\n\n- `modules/*/resources/js/module.ts`\n- `modules/*/resources/js/module.js`\n- `modules/*/resources/css/module.css`\n\nNo manual Vite configuration is required.\n\n## Development\n\nDuring development the plugin automatically:\n\n- updates the provider manifest when providers change\n- rebuilds the provider cache\n- reloads the application when required\n\n## Requirements\n\n- Node.js 24+\n- Vite 8+\n\n## License\n\nMIT\n","readmeFilename":"README.md"}