Releases: dimatitov/vite-plugin-create
1.1.1
🚀 What’s New in vite-plugin-create v1.1.1
This release focuses on more flexibility and control when generating files. Perfect for teams with custom project structures or developers tired of boilerplate.
✨ New Features
1. 📁 Per-generator basePath
Now each generator can have its own path outside the global defaultPath.
Example:
{
"defaultPath": "src",
"generators": {
"component": {
"basePath": "src/UI",
"path": "components/{{name}}",
"files": {
"{{name}}.tsx": "templates/component/component.tsx",
"index.ts": "templates/component/index.ts",
"{{name}}.module.scss": "templates/component/style.scss"
}
},
.......
}
Output will be:
src/UI/components/Button/...
2. 🪄 Single file generation (no folders)
Want to generate a single file (e.g. useAuth.ts in src/hooks/)?
Just set:
"hook": {
"path": "hooks",
"files": {
"{{name}}.ts": "templates/hook/useHook.ts"
}
}
Output will be:
src/hooks/useAuth.ts
• 📌 Better support for complex folder structures
You can now cleanly organize different types of code (pages, stores, UI components, etc.) — no hacks or nesting needed.
✅ Improvements
• Documentation updated to reflect new config flexibility
• Improved README examples: install + first run made easier
⸻
If you’ve been holding off due to folder structure limitations — now’s the perfect time to upgrade.
👉 Try it with npx vite-create init
📦 vite-plugin-create on npm
v1.0.1
What’s New
This release brings major improvements and new features to vite-plugin-create, making your development workflow more flexible and customizable:
• Custom Generators: Define your own generators in the config with custom templates and paths — go beyond just components and pages.
• Template Format Choice: When initializing the plugin (vite-create init), choose whether to use TypeScript (.tsx) or JavaScript (.jsx) templates.
• Directory-Based Templates: Organize templates by directories such as pages/, widgets/, shared/, allowing better project structure.
• Per-Generator Naming Styles: Configure different file naming conventions (PascalCase, camelCase, kebab-case, original) for each generator type.
• Smarter Initialization: The init command now generates the config and templates based on your choices, reducing clutter and confusion.
• Enhanced CLI: Improved CLI commands with support for custom entities and dynamic template handling.
• Roadmap Highlights: Planning to add a minimal GUI for config editing and an online documentation site with an interactive playground.
Fixes and Improvements
• Better template filtering on init to only copy needed files based on TS/JS choice.
• General code quality improvements and bug fixes.