Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch to TypeScript #281

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

32 changes: 14 additions & 18 deletions .github/workflows/node.js.yml
@@ -1,32 +1,28 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ "master" ]
branches: ['master']
pull_request:
branches: [ "master" ]
branches: ['master']

jobs:
build:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
os: [ubuntu-latest, windows-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [14.x, 16.x, 18.x]
os: [ubuntu-latest, windows-latest, macos-latest]

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

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
# - run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build --if-present
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,8 +1,10 @@
node_modules/
coverage/
dist/
.idea/
.*.swp
.changelog
*.tgz
CHANGELOG.new.md
CHANGELOG.add.md
CHANGELOG.new.md.tmp
6 changes: 0 additions & 6 deletions .istanbul.yml

This file was deleted.

Binary file removed docs/fonts/OpenSans-Bold-webfont.eot
Binary file not shown.
1,830 changes: 0 additions & 1,830 deletions docs/fonts/OpenSans-Bold-webfont.svg

This file was deleted.

Binary file removed docs/fonts/OpenSans-Bold-webfont.woff
Binary file not shown.
Binary file removed docs/fonts/OpenSans-BoldItalic-webfont.eot
Binary file not shown.
1,830 changes: 0 additions & 1,830 deletions docs/fonts/OpenSans-BoldItalic-webfont.svg

This file was deleted.

Binary file removed docs/fonts/OpenSans-BoldItalic-webfont.woff
Binary file not shown.
Binary file removed docs/fonts/OpenSans-Italic-webfont.eot
Binary file not shown.
1,830 changes: 0 additions & 1,830 deletions docs/fonts/OpenSans-Italic-webfont.svg

This file was deleted.

Binary file removed docs/fonts/OpenSans-Italic-webfont.woff
Binary file not shown.
Binary file removed docs/fonts/OpenSans-Light-webfont.eot
Binary file not shown.
1,831 changes: 0 additions & 1,831 deletions docs/fonts/OpenSans-Light-webfont.svg

This file was deleted.

Binary file removed docs/fonts/OpenSans-Light-webfont.woff
Binary file not shown.
Binary file removed docs/fonts/OpenSans-LightItalic-webfont.eot
Binary file not shown.
1,835 changes: 0 additions & 1,835 deletions docs/fonts/OpenSans-LightItalic-webfont.svg

This file was deleted.

Binary file removed docs/fonts/OpenSans-LightItalic-webfont.woff
Binary file not shown.
Binary file removed docs/fonts/OpenSans-Regular-webfont.eot
Binary file not shown.
1,831 changes: 0 additions & 1,831 deletions docs/fonts/OpenSans-Regular-webfont.svg

This file was deleted.

Binary file removed docs/fonts/OpenSans-Regular-webfont.woff
Binary file not shown.