Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1002 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 1002 Bytes

@pixi/node Example

This is a simple hello world example of using @pixi/node. This package is a lot like pixi.js, but excludes the DOM-specific behaviors, including interaction, accessibility.

GitHub Actions

@pixi/node can be run on GitHub Actions. There's a complete example here in nodejs.yml. There are two essential ingredients:

  • Installing the canvas dependencies as described in node-canvas
  • Running with xvfb

For example:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Install Canvas Dependencies
      run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev xvfb
    # <-- checkout, install node, etc here
    - name: Execute
      run: xvfb-run --auto-servernum node .

Node: See GitHub Actions documentation for more information.