Skip to content

Commit 0e45b2d

Browse files
committed
port to ts, modernize everything
1 parent 7ed0876 commit 0e45b2d

35 files changed

+3955
-7034
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
node-version: [12.x, 14.x, 16.x, 17.x]
9+
node-version: [18.x, 20.x, 21.x]
1010
platform:
1111
- os: ubuntu-latest
1212
shell: bash

.github/workflows/commit-if-modified.sh

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

.github/workflows/copyright-year.sh

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

.github/workflows/isaacs-makework.yml

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

.github/workflows/package-json-repo.js

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

.github/workflows/typedoc.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v3
33+
- name: Use Nodejs ${{ matrix.node-version }}
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 18.x
37+
- name: Install dependencies
38+
run: npm install
39+
- name: Generate typedocs
40+
run: npm run typedoc
41+
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v3
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v1
46+
with:
47+
path: './docs'
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v1

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
node_modules/
2-
coverage/
3-
.nyc_output/
4-
nyc_output/
1+
/dist/
2+
/.tap
3+
/node_modules/

.tshy/build.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "../src",
5+
"target": "es2022",
6+
"module": "nodenext",
7+
"moduleResolution": "nodenext"
8+
}
9+
}

.tshy/commonjs.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.cts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [
9+
"../src/**/*.mts"
10+
],
11+
"compilerOptions": {
12+
"outDir": "../.tshy-build/commonjs"
13+
}
14+
}

.tshy/esm.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.mts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [],
9+
"compilerOptions": {
10+
"outDir": "../.tshy-build/esm"
11+
}
12+
}

0 commit comments

Comments
 (0)