lct-web-builder
v2.0.1
Published
CLI tool to build and deploy Vue projects as static websites.
Maintainers
Readme
LCT Web Builder (lwb)
A simple CLI tool to build and deploy Vue projects into static websites, ready for Cloudflare R2 or any static hosting.
Features
- 🛠 Build Vue pages into static HTML/CSS/JS
- 🔥 Local development with hot reload
- ☁️ Upload static files to Cloudflare R2
- 📂 Folder-based routing
- 🚀 Easy to install and use
Installation
npm install -g lct-web-builderOr add to your project:
npm install lct-web-builder --save-devUsage
Start Dev Server (with hot reload)
lwb dev- Scan the
/pagesdirectory. - Serve your site on
http://localhost:3000.
Build Static Files
lwb build- Output to
/distfolder. - Each page is generated as a
folder/index.html.
Upload to Cloudflare R2
lwb upload- Upload the entire
/distfolder to your R2 bucket. - Requires
.envconfiguration:
R2_ENDPOINT=https://<accountid>.r2.cloudflarestorage.com
R2_ACCESS_KEY_ID=your-access-key
R2_SECRET_ACCESS_KEY=your-secret-key
R2_BUCKET=your-bucket-nameFolder Structure Example
pages/
home/
+Page.vue
+data.ts
products/
+Page.vue
+data.ts
about/
+Page.vue/pages/home/+Page.vue→//pages/products/+Page.vue→/products//pages/about/+Page.vue→/about/
License
MIT © LCT
