Skip to content

Commit

Permalink
committing
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Mar 5, 2024
1 parent ff2ccbd commit 2fba290
Show file tree
Hide file tree
Showing 12 changed files with 1,838 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ci

on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: |
npm install
- name: Lint
run: |
npm run lint
- name: Run tests
run: |
npm run test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

.tshy-build
build
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=true
9 changes: 9 additions & 0 deletions .tshy/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "../src",
"target": "es2022",
"module": "nodenext",
"moduleResolution": "nodenext"
}
}
8 changes: 8 additions & 0 deletions .tshy/commonjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./build.json",
"include": ["../src/**/*.ts", "../src/**/*.cts", "../src/**/*.tsx"],
"exclude": ["../test/**", "../src/**/*.mts"],
"compilerOptions": {
"outDir": "../.tshy-build/commonjs"
}
}
8 changes: 8 additions & 0 deletions .tshy/esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./build.json",
"include": ["../src/**/*.ts", "../src/**/*.mts", "../src/**/*.tsx"],
"exclude": ["../test/**"],
"compilerOptions": {
"outDir": "../.tshy-build/esm"
}
}
Loading

0 comments on commit 2fba290

Please sign in to comment.