Skip to content
Merged
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
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache: "pnpm"

- name: Install Node dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run linter
run: npm run lint
run: pnpm run lint

- name: Run tests
run: npm run test
run: pnpm run test
14 changes: 14 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": {
"correctness": "error"
},
"env": {
"browser": true,
"node": true,
"es2022": true
},
"rules": {
"no-unexpected-multiline": "off"
}
}
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ The same extraction options can be passed to `tableFromArrays`. For more, see th

## Build Instructions

To build and develop Flechette locally:

- Clone https://github.com/uwdata/flechette.
- Run `npm i` to install dependencies.
- Run `npm test` to run test cases, `npm run perf` to run performance benchmarks, and `npm run build` to build output files.
This project uses [pnpm](https://pnpm.io/).

```sh
pnpm install
pnpm test # run unit tests (vitest)
pnpm lint # check lint rules (oxlint)
pnpm build # compile and build output bundles into dist/
pnpm perf # run performance benchmarks
```
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ The same extraction options can be passed to `tableFromArrays`. For more, see th
To build and develop Flechette locally:

- Clone https://github.com/uwdata/flechette.
- Run `npm i` to install dependencies.
- Run `npm test` to run test cases, `npm run perf` to run performance benchmarks, and `npm run build` to build output files.
- Run `pnpm i` to install dependencies.
- Run `pnpm test` to run test cases, `pnpm run perf` to run performance benchmarks, and `pnpm run build` to build output files.
23 changes: 0 additions & 23 deletions eslint.config.js

This file was deleted.

Loading
Loading