Skip to content
Closed
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
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Setup Node
uses: actions/setup-node@v2.1.5
- name: Build
run: yarn
- name: Test
run: yarn test --ci
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Build
run: bun install
- name: Test
run: bun run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tsconfig.tsbuildinfo
dist/
.cache/
/packages/event-reduce/readme.md
/packages/*/LICENSE
24 changes: 0 additions & 24 deletions .vscode/launch.json

This file was deleted.

47 changes: 13 additions & 34 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,25 @@
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"label": "Compile TypeScript",
"problemMatcher": [
"$tsc"
]
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Run tests",
"type": "shell",
"command": "yarn test",
"type": "bun",
"script": "run test",
"options": {
"cwd": "${workspaceFolder}" // Change this if your tests aren't using the top-level node_modules
},
"args": [
"--errors-only"
],
"presentation": {
"echo": true,
"reveal": "never",
"focus": false,
"panel": "shared"
},
"problemMatcher": [
{
"owner": "wattle",
"fileLocation": [
"relative",
"${workspaceFolder}" // Make sure this matches the cwd above
],
"pattern": [
{
"regexp": "✗"
},
{
"regexp": "\\s(.*):(\\d+) (.*)",
"file": 1,
"line": 2,
"message": 3
}
]
"env": {
"AGENT": "1"
}
],
},
"problemMatcher": [],
"label": "Run tests",
"group": {
"kind": "test",
"isDefault": true
Expand Down
2 changes: 1 addition & 1 deletion license.md → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Simon Oxtoby
Copyright (c) 2025 Simon Oxtoby

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
214 changes: 214 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test]
preload = ["./tests/dist/setup.js"]
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>event-reduce example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script defer src="index.tsx"></script>
<script type="module" src="index.tsx"></script>
</head>

<body>
Expand Down
Loading
Loading