Package Exports
- create-bini-app
- create-bini-app/create-bini-app.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-bini-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
my-bini-app
A Bini.js application - SWC-powered React framework
✨ Features
- ⚡ Lightning-fast SWC compilation
- 🔄 Client-side routing (file-based concept)
- 🖥️ Server-Side Rendering (Conceptual)
- 🎨 Tailwind styling
- 🔥 Hot Module Replacement (HMR)
- 📘 TypeScript support
🚀 Getting Started
To create a new Bini.js application, you use the official CLI tool, create-bini-app. Run the following command in your terminal and follow the prompts:
npx create-bini-app
or
npx create-bini-app my-app-name
- Install dependencies: ```bash
npm install ```
- Run the development server:
bash npm run dev
This starts webpack-dev-server with hot reload and the custom CLI banner at http://localhost:3000
📦 Project Structure
my-bini-app/
├── src/
│ ├── pages/ # Page components (File-based routing)
│ ├── components/ # Reusable React components
│ ├── styles/ # Global styles
│ ├── index.tsx # Client-side router & entry point
│ └── _app.tsx # Main app shell
├── public/ # Static assets
│ └── index.html # HTML template
├── startDev.js # Custom script to run webpack and display CLI output
├── webpack.config.js # Webpack configuration
└── package.json📝 Available Scripts
npm run dev- Start webpack-dev-server with HMR and custom CLI outputnpm run build- Build for productionnpm start- Serve production build with webpack
Learn More
Built with ❤️ using Bini.js v5