threejs-cli
v1.0.1
Published
A CLI tool to quickly scaffold Three.js projects with support for multiple frameworks like Vanilla Three.js, TresJS (Vue + Three.js), and React Three Fiber (React + Three.js). Perfect for developers who want to jumpstart 3D projects without the hassle of
Maintainers
Readme
Three.js CLI Scaffold Tool
threejs-cli is a command-line tool designed to help developers quickly scaffold Three.js projects with support for multiple frameworks, including Vanilla Three.js, TresJS (Vue + Three.js), and React Three Fiber (React + Three.js). Whether you're a beginner or an experienced developer, this tool allows you to focus on creativity and development without spending time on tedious project setup.
Features
- Supports multiple frameworks:
- Vanilla Three.js
- TresJS (Vue + Three.js)
- React Three Fiber (React + Three.js)
- One-command project generation.
- Automatically installs dependencies.
- Modern development experience based on Vite.
- Cross-platform support (Windows, macOS, Linux).
Installation
Install threejs-cli globally:
npm install -g threejs-cliUsage
Run the CLI tool:
create-threejsSelect a project name:
Select a project name: my-projectSelect a framework:
? Select a framework: (Use arrow keys)
❯ Vanilla (原生 Three.js)
TresJS (Vue + Three.js)
React Three Fiber (React + Three.js)Navigate to the project directory and start the development server:
cd my-project
npm install
npm run devExample
Create a TresJS-based project
create-threejsSelect a project name
Select a project name: my-tresjs-projectSelect a framework
? Select a framework: (Use arrow keys)
❯ TresJS (Vue + Three.js)
Vanilla (原生 Three.js)
React Three Fiber (React + Three.js)Navigate to the project directory and start the development server
cd my-tresjs-project
npm install
npm run devContributing
We welcome contributions! Please submit issues or pull requests to improve threejs-cli.
License
threejs-cli is open-source under the MIT License.
