pixijs-create

安装量: 809
排名: #4876

安装

npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-create

create pixi.js is the official CLI for scaffolding a new PixiJS v8 project. Run it with any package manager ( npm , yarn , pnpm , bun ) and pick a template from the interactive menu, or pass --template to skip prompts. It writes a self-contained project folder; you then cd in, install dependencies, and run the dev script. Quick Start Scaffold a new project with interactive prompts: npm create pixi.js@latest Or skip prompts by passing a project name and template: npm create pixi.js@latest my-game -- --template bundler-vite Then: cd my-game npm install npm run dev Requires Node.js 18+ or 20+. Some templates (notably creation-web and framework-react ) may require a newer Node version; the package manager will warn if so. Adding PixiJS to an existing project If you already have a bundler, framework, or project set up, skip the CLI and install the package directly: npm install pixi.js Then import from pixi.js and construct an Application as shown in pixijs-application . The CLI templates are a convenience for new projects; they don't add anything to the library that npm install pixi.js can't give you.

返回排行榜