hasura /
graphqurl
curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.
Loading repository data…
labibimamhidayat / repository
A simple CLI tool to scaffold a new **React + Vite + TypeScript** project using a customizable base template. This tool helps you quickly spin up a new project, rename metadata, initialize Git, and get straight to coding.
A simple CLI tool to scaffold a new React + Vite + TypeScript project using a customizable base template.
This tool helps you quickly spin up a new project, rename metadata, initialize Git, and get straight to coding.
package.json and index.html based on your project namemain branch.gitignore with sensible defaultspnpmesbuild for fast, single-file deploymentpnpm install
pnpm run dev
🧠 You'll be prompted to enter a project name. The tool will:
package.json and index.htmlmainpnpm run build
This uses esbuild to generate a bundled file:
dist/create-myapp.cjs
This file is a single-file CLI executable.
node dist/create-myapp.cjs
Or, if you prefer make it executable:
chmod +x dist/create-myapp.cjs
./dist/create-myapp.cjs
.tgz🔔 Note: A .tgz file is already committed to the repo. So after cloning, you can immediately install the CLI globally:
npm install -g ./scaffold-react-vite-[version_placeholder].tgz
✅ You'll now be able to run:
scaffold-react-vite
but
🛠️ Want to regenerate the .tgz file from scratch?
make sure already run npm install and run step number 2, then run:
npm pack
This will produce new:
scaffold-react-vite-[version_placeholder].tgz
You can then install it globally again:
npm install -g ./scaffold-react-vite-[version_placeholder].tgz
npm linknpm link
🔗 This links the command globally based on the bin field in your package.json.
Great for real-time testing during development.
By default, the template repo is:
const template_name = "labibimamhidayat/base-template-vite-react-typescript";
To use your own GitHub repo (e.g., your team’s custom template), just replace the above line in index.js.
🛠️ After changing it, repeat the steps above to rebuild and repack the CLI into a new .tgz file.
.
├── index.js # Main CLI script (ESM)
├── build.mjs # Esbuild bundling script
├── dist/
│ └── create-myapp.cjs # Bundled CLI output
├── package.json # CLI config & bin declaration
└── scaffold-react-vite-[version_placeholder].tgz # Optional prebuilt archive
MIT
Happy hacking! 🎉🚀
Selected from shared topics, language and repository description—not editorial ratings.
hasura /
curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.
mkozjak /
A simple telnet client for Node.js
aermin /
:house: A simple project(Vue Community SPA) which bases on vue+vue-cli+vue-router+axios+ scss.
Amareis /
Simple pure TypeScript REST API client that makes your code lesser and more beautiful than without it.
yakkomajuri /
A super simple static site generator
vitonsky /
Simple and powerful progress time estimation (ETA) for JavaScript