create-vanillaforge
v1.0.3
Published
Scaffold a new VanillaForge project
Maintainers
Readme
create-vanillaforge
Scaffold a new VanillaForge project with one command.
Usage
npx create-vanillaforge my-appThe CLI prompts for a project name (if omitted) and a template, then generates a ready-to-run project directory.
# Skip the prompts:
npx create-vanillaforge my-app --template=minimalAfter scaffolding:
cd my-app
npm install
npm run devOpen http://localhost:3000. No build step is needed during development.
Templates
| Name | Description |
| --- | --- |
| minimal | Counter app. No plugins. Best starting point. |
| full | Counter app with all five built-in plugins: icons, theme, alerts, fonts, store. |
| todo-app | Task list with filtering, localStorage, and confirm-on-delete. |
| router-app | Multi-page app: user list and detail view with routing and composition. |
The default template is minimal.
Generated project structure
Each template generates a self-contained project that installs vanillaforge from npm:
my-app/
index.html importmap + <script type="module" src="./src/app.js">
src/
app.js
components/ (present in full, todo-app, router-app templates)
package.json vanillaforge npm dependency + "dev" script
.gitignoreThe index.html uses an import map
to resolve the 'vanillaforge' bare specifier directly from node_modules/, so the
browser loads the framework modules with no build step.
TypeScript / editor autocomplete
The framework ships a full types/index.d.ts declaration file. Add a jsconfig.json
to the project root to enable type checking and autocomplete in VS Code:
{
"compilerOptions": {
"checkJs": true,
"moduleResolution": "bundler"
}
}Requirements
Node.js 18 or later.
Documentation
License
MIT — see LICENSE.
