turbomini
v1.1.1
Published
Tiny dependency-free SPA micro-framework with CLI tooling.
Downloads
289
Readme
TurboMini
Tiny dependency-free SPA micro-framework with CLI tooling.
TurboMini gives you a small runtime for templates, routing, controllers, and lifecycle hooks. The published turbomini package also exposes the turbomini CLI, so npm install turbomini and npx turbomini ... use the same command surface.
Install
npm install turbominiScaffold A Project
npx turbomini init my-app
cd my-app
npm run devRuntime Usage
<!doctype html>
<html lang="en">
<body>
<page></page>
<script type="module">
import { TurboMini } from 'turbomini';
const app = TurboMini('/');
app.template('home', '<h1>Hello {{name}}</h1>');
app.controller('home', () => ({ name: 'TurboMini' }));
app.start();
</script>
</body>
</html>CLI Commands
npx turbomini --help
npx turbomini theme init
npx turbomini add tm-button
npx turbomini doctorLinks
- Docs: https://ndxbxrme.github.io/turbomini/
- Repository: https://github.com/ndxbxrme/turbomini
- Issues: https://github.com/ndxbxrme/turbomini/issues
