Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 2960d09

Browse files
committed
feat: Transition to TypeScript
More info: #93
1 parent 622af4c commit 2960d09

File tree

88 files changed

+6489
-36800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+6489
-36800
lines changed

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
name: Test / OS ${{ matrix.os }} / Node ${{ matrix.node }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
node: ['12']
17+
18+
runs-on: ${{ matrix.os }}
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Set up Node
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node }}
27+
28+
- name: Run tests
29+
run: |
30+
npm ci
31+
npm t

.github/workflows/docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
docs:
11+
name: Publish docs / OS ${{ matrix.os }} / Node ${{ matrix.node }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node: ['12']
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Set up Node
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
- run: |
28+
npm ci
29+
npm run docs
30+
npm run docs:json
31+
32+
- name: Publish
33+
uses: peaceiris/actions-gh-pages@v3
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: docs
37+
force_orphan: true
38+
commit_message: 'docs: update'

.github/workflows/nodejs.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
name: Release / Node ${{ matrix.node }}
12+
strategy:
13+
matrix:
14+
node: ['12']
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Set up Node
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node }}
25+
26+
- run: |
27+
npm ci
28+
npm run build
29+
30+
- name: Create a release
31+
run: npx semantic-release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 4 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,8 @@
1-
# Logs
2-
logs
1+
node_modules
2+
dist
3+
docs
34
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
.DS_Store
9-
10-
.nyc_output
11-
lib
12-
13-
# Diagnostic reports (https://nodejs.org/api/report.html)
14-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
155

16-
# Runtime data
17-
pids
18-
*.pid
19-
*.seed
20-
*.pid.lock
21-
22-
# Directory for instrumented libs generated by jscoverage/JSCover
23-
lib-cov
24-
25-
# Coverage directory used by tools like istanbul
6+
# nyc
267
coverage
27-
*.lcov
28-
29-
# nyc test coverage
308
.nyc_output
31-
32-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33-
.grunt
34-
35-
# Bower dependency directory (https://bower.io/)
36-
bower_components
37-
38-
# node-waf configuration
39-
.lock-wscript
40-
41-
# Compiled binary addons (https://nodejs.org/api/addons.html)
42-
build/Release
43-
44-
# Dependency directories
45-
node_modules/
46-
jspm_packages/
47-
48-
# TypeScript v1 declaration files
49-
typings/
50-
51-
# TypeScript cache
52-
*.tsbuildinfo
53-
54-
# Optional npm cache directory
55-
.npm
56-
57-
# Optional eslint cache
58-
.eslintcache
59-
60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
65-
66-
# Optional REPL history
67-
.node_repl_history
68-
69-
# Output of 'npm pack'
70-
*.tgz
71-
72-
# Yarn Integrity file
73-
.yarn-integrity
74-
75-
# dotenv environment variables file
76-
.env
77-
.env.test
78-
79-
# parcel-bundler cache (https://parceljs.org/)
80-
.cache
81-
82-
# Next.js build output
83-
.next
84-
85-
# Nuxt.js build / generate output
86-
.nuxt
87-
dist
88-
89-
# Gatsby files
90-
.cache/
91-
# Comment in the public line in if your project uses Gatsby and not Next.js
92-
# https://nextjs.org/blog/next-9-1#public-directory-support
93-
# public
94-
95-
# vuepress build output
96-
.vuepress/dist
97-
98-
# Serverless directories
99-
.serverless/
100-
101-
# FuseBox cache
102-
.fusebox/
103-
104-
# DynamoDB Local files
105-
.dynamodb/
106-
107-
# TernJS port file
108-
.tern-port
109-
110-
# Stores VSCode versions used for testing VSCode extensions
111-
.vscode-test

.jsdoc.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"trailingComma": "es5",
3-
"tabWidth": 2,
2+
"printWidth": 100,
43
"semi": false,
5-
"singleQuote": true,
6-
"printWidth": 100
7-
}
4+
"singleQuote": true
5+
}

Makefile

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)