Skip to content

Commit

Permalink
Update deps and add mac arm
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed May 30, 2024
1 parent fd4ac95 commit ca292a5
Show file tree
Hide file tree
Showing 10 changed files with 271 additions and 488 deletions.
78 changes: 0 additions & 78 deletions .eslintrc.json

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
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,21 +47,21 @@ jobs:
name: Build
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-11]
os: [ubuntu-20.04, windows-2022, macos-12, macos-14]

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

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down Expand Up @@ -97,7 +97,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
6 changes: 3 additions & 3 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
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
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ jobs:
name: Unit Tests
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-11]
os: [ubuntu-20.04, windows-2022, macos-12, macos-14]

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

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down
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
93 changes: 93 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
'use strict';

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


module.exports = [
js.configs.recommended,
{
languageOptions: {
'parserOptions': {
'ecmaVersion': 2022,
sourceType: 'commonjs'
},
globals: {
require: 'readonly',
Buffer: 'readonly',
module: 'readonly',
console: 'readonly',
__dirname: 'readonly',
process: '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 @@ -3,6 +3,6 @@
const { install } = require('addon-tools-raub');

const prefix = 'https://github.com/node-3d/deps-uiohook-raub/releases/download';
const tag = '0.0.1';
const tag = '0.1.0';

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

0 comments on commit ca292a5

Please sign in to comment.