Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .editorconfig

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

18 changes: 0 additions & 18 deletions .github/stale.yml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/deploy-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Publish to npm

on:
release:
types: [created]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [22, 20, 18, 16]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run unit tests
run: npm test

publish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build version
run: npm run build:version

- name: Build
run: npm run build

- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21 changes: 0 additions & 21 deletions .github/workflows/node-test.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test

on:
push:
branches: '*'
pull_request:
branches: [master]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [22, 20, 18, 16, 14, 12, 10, 8]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
if: ${{ matrix.node-version >= 8 }}
run: npm ci

- name: Install dependencies (node < 8)
if: ${{ matrix.node-version < 8 }}
run: npm install --only=prod

- name: Run unit tests
if: ${{ matrix.node-version >= 16 }}
run: npm test

- name: Run unit tests (node < 16)
if: ${{ matrix.node-version < 16 }}
run: node scripts/legacy-test-runner.js

- name: Run unit tests (compilers)
if: ${{ matrix.node-version >= 16 }}
run: npm install typescript coffee-script --no-save && npm run test:compilers

6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/node_modules
.DS_Store
.svn
/node-*
/test.js
.vscode
.vscode
/test.js
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 4,
"bracketSpacing": true,
"arrowParens": "avoid",
"useTabs": true
}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

Loading