Skip to content

Commit

Permalink
modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 6, 2024
1 parent 8d35541 commit 222a6d5
Show file tree
Hide file tree
Showing 21 changed files with 6,474 additions and 6,218 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 17.x]
node-version: [18.x, 20.x, 21.x]
platform:
- os: ubuntu-latest
shell: bash
Expand All @@ -25,15 +25,15 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v1.1.0
uses: actions/checkout@v4

- name: Use Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run Tests
run: npm test -- -c -t0
run: npm test
13 changes: 0 additions & 13 deletions .github/workflows/commit-if-modified.sh

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/copyright-year.sh

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/package-json-repo.js

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Generate typedocs
run: npm run typedoc

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ignore most things, include some others
/*
/.*

!.tshy
!tsconfig.json
!src/
!bin/
!lib/
!docs/
!package.json
!package-lock.json
!README.md
Expand All @@ -19,6 +19,4 @@
!.gitignore
!.gitattributes
!coverage-map.js
!index.js
!map.js
!.github/
8 changes: 8 additions & 0 deletions .tshy/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "../src",
"module": "nodenext",
"moduleResolution": "nodenext"
}
}
14 changes: 14 additions & 0 deletions .tshy/commonjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.cts",
"../src/**/*.tsx"
],
"exclude": [
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build/commonjs"
}
}
12 changes: 12 additions & 0 deletions .tshy/esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build/esm"
}
}
15 changes: 0 additions & 15 deletions LICENSE

This file was deleted.

167 changes: 0 additions & 167 deletions chownr.js

This file was deleted.

0 comments on commit 222a6d5

Please sign in to comment.