create-js13k-littlejs
v1.0.2
Published
A simple CLI tool to create a new project templates for LittleJs games.
Readme
create-js13k-littlejs
A CLI tool for quickly scaffolding a new LittleJS game project for the js13kGames competition.
This package clones a starter template, configures it with your project name, and installs all the necessary dependencies to get you up and running in minutes.
Features
Quick Setup: A single command creates a new project with all the necessary files and dependencies.
Configured for js13k: The starter template is optimized for the js13kGames competition, including build scripts to zip your game for submission.
Project Renaming: Automatically updates the
package.jsonfile and game title to match your project name.Platform-Specific Dependencies: Handles platform-specific dependencies, such as adding
ect-binfor Windows users to ensure zipping works correctly.
Quick Start
To create a new game, simply run the following command and follow the prompts:
Bash
npm create js13k-littlejsThis will guide you through naming your project and will set up a new directory with a pre-configured LittleJS game.
Available Commands
Once your project is created and dependencies are installed, navigate to your new project directory and use these commands:
npm run dev: Starts the development server with live-reloading. This is what you'll use for most of your development.npm run build`: Builds the project for production, creating an optimized and minified version of your game.
npm run zip`: Runs the build command and then creates a zip archive of your final, compressed game, ready for submission to js13kGames.
Contributing
If you find a bug or have a suggestion, please open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License.
