Git Product home page Git Product logo

parcel-pixijs-quickstarter's Introduction

parcel-pixijs-quickstarter

Example App using pixiJS and Typescript bundled with parcel ๐Ÿš€๐Ÿ”ฅ.

Highlights

  • โšก๏ธ Super fast start
  • ๐Ÿ”ฅ Hot module replacement.
  • ๐Ÿ“ Typescript.
  • ๐Ÿ‘ฎ Unit testing.

Quick start

Node version >= 8.0 (recommended 10.6.0) and NPM >= 5 (recommended 6.1.0)

# clone the repo.
# --depth 1 removes all but one .git commit history (Optional).
git clone --depth 1 https://github.com/llorenspujol/parcel-pixijs-quickstarter.git

# go to the repo
cd parcel-pixijs-quickstarter

# install the dependencies via npm
npm install

# start the server in dev mode with HMR
npm run start

go to http://localhost:1234 in your browser. Done.

npm scripts

  • npm run start - runs the compiler and a server at the same time in dev mode with HMR (Hot Module Replacement) ๐Ÿ”ฅ.
  • npm run build - runs the compiler once and generates a production build.
  • npm run build_serve - it makes a build and serves it to port 8080.
  • npm run test - runs the unit tests (.spec.ts files).

parcel-pixijs-quickstarter's People

Contributors

llorenspujol avatar llorenspujol1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

parcel-pixijs-quickstarter's Issues

Tests with pixi.js

Hi @llorenspujol,

I using your quickstarter for pixjs.

I tried create a test using a class that extends Graphics Pixi class.

But i get the error:

ReferenceError: window is not defined

  at Object.<anonymous> (node_modules/@pixi/polyfill/src/Promise.js:4:1)
  at Object.<anonymous> (node_modules/pixi.js/lib/pixi.js:12:1)

I think i should start a environment with browser to make that tests. However, I do not do it. There is some pattern to do it?

Sorry if this question is so newbie :c)

Thanks by your quickstarter :)

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.