Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .babelrc.es5

This file was deleted.

9 changes: 0 additions & 9 deletions .babelrc.lib

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test all
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4.4.0
with:
node-version-file: ".nvmrc"

- name: Enable corepack
run: corepack enable

- name: Use yarn cache
uses: actions/cache@v4.2.3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install dependencies
run: yarn

- name: Run linter
run: yarn lint

- name: Check types
run: yarn check-types

- name: Redis Server in GitHub Actions
uses: supercharge/redis-github-action@1.8.0

- name: Run tests
run: yarn test-all
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ test.js
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.eslintcache
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

yarn lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"*.{js,jsx,mjs,ts,tsx,mts}":
- "yarn eslint --cache --fix --max-warnings=0 --no-warn-ignored --rule 'prettier/prettier: off'"
"*":
- yarn prettier --ignore-unknown --write
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.15.0
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.yarn
light.js
lib/
12 changes: 12 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
printWidth: 100
plugins:
- prettier-plugin-sh
- prettier-plugin-organize-imports
- prettier-plugin-pkg

# prettier-plugin-sh options
binaryNextLine: false
indent: 2

# prettier-plugin-organize-imports options
organizeImportsSkipDestructiveCodeActions: true
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: pnpm
398 changes: 242 additions & 156 deletions README.md

Large diffs are not rendered by default.

Loading