From 9c217e3f24bf688e9c37650d6d1f45e4309dfcf2 Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Tue, 31 Dec 2019 02:33:57 -0500 Subject: [PATCH 1/4] Remove cache line --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2d925d5c..28f27c25 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,6 @@ addons: - libgl1-mesa-dri - libglapi-mesa - libosmesa6 -cache: - npm: false before_install: - ./scripts/before_install.sh install: From 0dbbc1d8aab14e7afe9ee6bf1bea78d05c2e3c20 Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Tue, 31 Dec 2019 02:06:37 -0500 Subject: [PATCH 2/4] Explicitly use node version 12.13.0 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 28f27c25..a78666da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,12 +11,12 @@ matrix: dist: trusty compiler: g++ env: - - NODE_VERSION=12 + - NODE_VERSION=12.13.0 - os: osx osx_image: xcode7 compiler: clang env: - - NODE_VERSION=12 + - NODE_VERSION=12.13.0 addons: apt: sources: From 7e934c8829c752f24f0788cd87bf924e512cd069 Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Sun, 29 Dec 2019 18:59:42 -0500 Subject: [PATCH 3/4] Explicitly set node version in test script --- scripts/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/test.sh b/scripts/test.sh index c5559502..eba5505f 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -9,6 +9,9 @@ else source ~/.bashrc fi +nvm install ${NODE_VERSION} +nvm alias default ${NODE_VERSION} + node --version npm --version From 70846133b9417699e1e3aa43ade854d4380157d7 Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Mon, 6 Jan 2020 23:42:27 -0500 Subject: [PATCH 4/4] Update README.md Add section about platform and node version support, including a note about current Node.js breakage on macOS; Other tidying up of the README. --- README.md | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 38688dbe..b56f83e9 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,18 @@ [![Appveyor](https://ci.appveyor.com/api/projects/status/g5ypwyffmtg1iu83/branch/master?svg=true)](https://ci.appveyor.com/project/dhritzkiv/headless-gl) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) -`gl` lets you create a WebGL context in [node.js](https://nodejs.org/en/) without making a window or loading a full browser environment. +`gl` lets you create a WebGL context in [Node.js](https://nodejs.org/en/) without making a window or loading a full browser environment. It aspires to fully conform to the [WebGL 1.0.3 specification](https://www.khronos.org/registry/webgl/specs/1.0.3/). ## Warning! -This module is not actively developed. It's maintained enough to be working on all recent Node versions, but is unlikely to get new features or substantial bug fixes. If you want to take over the maintenance, please let us know in your pull requests! +This module is not actively developed. It's maintained enough to be working on [all current active and LTS Node.js releases,](https://nodejs.org/en/about/releases/) but is unlikely to get new features or substantial bug fixes. If you want to take over or assist with maintenance, please let us know in a pull request! ## Example ```javascript -//Create context +// Create context var width = 64 var height = 64 var gl = require('gl')(width, height, { preserveDrawingBuffer: true }) @@ -28,15 +28,16 @@ gl.clear(gl.COLOR_BUFFER_BIT) var pixels = new Uint8Array(width * height * 4) gl.readPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, pixels) process.stdout.write(['P3\n# gl.ppm\n', width, " ", height, '\n255\n'].join('')) -for(var i=0; i @@ -197,7 +205,7 @@ Yes, with [browserify](http://browserify.org/). The `STACKGL_destroy_context` a ### How are `` and `