Coder Social home page Coder Social logo

Phaser CLI

JavaScript Style Guide Build Status

Create Phaser projects with no build configuration.

Getting Started

Prerequisites

In order to use Phaser CLI you need to have Node.js (>= 6) installed.

Quickstart

Run the following commands to install Phaser CLI and create a new project. This will create a new folder matching the specified project-name and will generate all the required files.

Currently the only boilerplate available to use is TypeScript, but this may change in the future.

npm install -g @phaser-cli/cli
# or
yarn global add @phaser-cli/cli

phaser create <project-name>

Running in Development

Running the following command will serve your project to localhost:8080.

npm start

If you wish to change the host or the port of the dev server you can prepend the command with HOST=127.0.0.1 or PORT=3000, replacing the example values with your own.

Building for Production

The following command will build your game for production, bundling code and assets into the /build directory.

npm run build

Ejecting

You also have the option to eject from phaser-cli allowing you to customise webpack and other config to your heart's content. This is not recommended unless you really need to change something.

Note: You will no longer receive updates through the @phaser-cli/scripts package if you choose to eject.

npm run eject

Acknowledgements

Phaser CLI is based on Create React App by Facebook and vue-cli by Evan You.

Phaser is created by Richard Davey.

phaser-cli's Projects

phaser-cli icon phaser-cli

Create Phaser projects with no build configuration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.