Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Jun 1, 2024
1 parent 410faae commit b353dc1
Show file tree
Hide file tree
Showing 12 changed files with 307 additions and 509 deletions.
81 changes: 0 additions & 81 deletions .eslintrc.json

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Get Package Version
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Create Draft Release
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -47,7 +47,7 @@ jobs:
name: Build
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
os: [ubuntu-22.04, windows-2022, macos-12, macos-14, [self-hosted, linux, ARM64]]

runs-on: ${{ matrix.os }}

Expand All @@ -61,14 +61,14 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
run: npm ci

- name: Fix Python
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12' || matrix.os == 'macos-14'
run: pip install setuptools

- name: Build Current Binary
Expand All @@ -83,7 +83,7 @@ jobs:
run: node -e "require('addon-tools-raub').actionPack()" >> $GITHUB_OUTPUT

- name: Store Binaries
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
eslint:
name: Cpplint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:

Expand All @@ -26,7 +26,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
eslint:
name: ESLint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:

Expand All @@ -26,7 +26,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Get Package Version
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Unit Tests
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
os: [ubuntu-22.04, windows-2022, macos-12, macos-14, [self-hosted, linux, ARM64]]

runs-on: ${{ matrix.os }}

Expand All @@ -30,23 +30,23 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
run: npm ci

- name: Fix Python
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12' || matrix.os == 'macos-14'
run: pip install setuptools

- name: Build Current Binary
run: npm run build

- name: Run Unit Tests - Linux
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-22.04'
run: xvfb-run --auto-servernum npm run test-ci

- name: Run Unit Tests
if: matrix.os != 'windows-2022' && matrix.os != 'ubuntu-20.04'
if: matrix.os != 'windows-2022' && matrix.os != 'ubuntu-22.04'
run: npm run test-ci
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Luis Blanco
Copyright (c) 2024 Luis Blanco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ step during the `npm i` command.

![Example](examples/screenshot.jpg)

* **GLFW** version **3.3.8** backend.
* **GLFW** version **3.4.0** backend.
* Exposes low-level **GLFW** interface.
* Multiple windows for a single **Node.js** process.
* Able to switch to fullscreen and back.
Expand Down
97 changes: 97 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
'use strict';

const js = require('@eslint/js');


module.exports = [
js.configs.recommended,
{
languageOptions: {
'parserOptions': {
'ecmaVersion': 2022,
sourceType: 'commonjs'
},
globals: {
global: 'readonly',
require: 'readonly',
Buffer: 'readonly',
module: 'readonly',
console: 'readonly',
__dirname: 'readonly',
process: 'readonly',
setTimeout: 'readonly',
setImmediate: 'readonly',
clearImmediate: 'readonly',
},
},
'rules': {
'arrow-parens': ['error', 'always'],
'no-trailing-spaces': [
'error',
{
'skipBlankLines': true
}
],
'indent': [
'error',
'tab',
{
'SwitchCase': 1
}
],
'operator-linebreak': [
'error',
'after',
{
'overrides': {
'?': 'before',
':': 'before'
}
}
],
'max-len': ['error', 110],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'space-before-blocks': ['error'],
'space-before-function-paren': [
'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}
],
'camelcase': ['error'],
'no-tabs': [0],
'no-unused-vars': [
'error',
{
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_'
}
],
'global-require': [0],
'no-underscore-dangle': [0],
'no-plusplus': [0],
'no-shadow': [0],
'node/no-unpublished-require': [0],
'no-process-exit': [0],
'linebreak-style': [0],
'node/no-missing-require': [0],
'no-console': [0],
'node/no-unsupported-features/es-builtins': 0,
'node/no-unsupported-features/node-builtins': 0,
'func-names': [
'error',
'never',
{
'generators': 'never'
}
]
}
},
];
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ const { install } = require('addon-tools-raub');


const prefix = 'https://github.com/node-3d/glfw-raub/releases/download';
const tag = '5.4.0';
const tag = '5.5.0';

install(`${prefix}/${tag}`);
Loading

0 comments on commit b353dc1

Please sign in to comment.