npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-pixijs

v1.0.3

Published

Yeoman Pixi.js generator

Downloads

19

Readme

Pixi.js Generator Build Status

Yeoman Pixi.js generator - Lets you quickly scaffold out a Pixi.js game with a Main Menu and Game Scene. Includes Rendering Setup, Scene Changing and Bootstrap.

Find out more about Pixi.js, or view the documentation.

Getting Started

To start you will need Node.js, Yeoman and Grunt.

Once you have these installed you can run: npm install -g generator-pixijs

Once this is complete you need to make sure you're in the directory you want to create the game in, once this is ok you can bring up Yeoman by typing yo in your terminal, or you can run yo pixijs. You will be presented with the following:

Pixi.js Generator

You will be presented with a list of libraries:

These libraries can be utilised within your game, however if you don't want to use these libraries the scaffolding will still work without them and you can use your own. Once you've chosen your libraries, hit enter to create the project.

It may take a while to create the project, so go grab a drink and we'll see you on the other side.

Developing your Game

Now you've got your project all set up, you're good to start developing your game. I won't go in to how to develop games in pixi.js here, but you can find demo projects using this generator here.

Running Your Game

You can run the game simply by typing grunt serve in your terminal window, this will do the following:

  • Inject external dependencies in to the template.index.html
  • Create a local server.
  • Watches the app folder for any changes to files, if any are detected it will reload the game.

To stop the local server, press ctrl+c in your terminal window.

You may also want to run the distribution build of your game, to do this just run grunt serve:dist from your terminal window.

Publishing Your Game

Once you're ready to publish your game you just need to run grunt from your terminal window, this will do the following:

  • Run JS Beautify on the files.
  • Concatinate all files in to one js file.
  • Uglify the concatinated js file.
  • Compress all image assets ready for the web.
  • Copy all of the dependencies to the distribution folder.
  • Inject all of the dependencies in to the index.html file.

Your published game will be located in the 'dist' folder. Upload this folder to your Web Server and you're good to go.

Contributing to the project

We're always open to people contributing, if you want to add a feature or find a bug that you've fixed just submit a pull request.

We're also happy for people to fork this repository to maintain a custom version. If you fork the repository just run npm install && npm link to maintain using the yo pixijs command, or choose your own.

License

MIT