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
15 changes: 0 additions & 15 deletions .aiignore

This file was deleted.

36 changes: 13 additions & 23 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,27 @@
# GitHub actions
# https://docs.github.com/en/free-pro-team@latest/actions

name: ci-test

on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node_version: [22.x, 24.x, 26.x]
deno-version: ["lts", "canary"]

steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}

- name: setup Node.js v${{ matrix.node_version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node_version }}
- name: lint
run: deno lint

- name: run npm scripts
run: |
npm install
npm run lint
npm run test
- name: test
run: deno test --allow-all

- name: cache node modules
uses: actions/cache@v6
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: audit
run: deno audit
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/jsr-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: jsr-release

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v7

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: lts

- name: lint
run: deno lint

- name: test
run: deno test --allow-all

- name: audit
run: deno audit

- name: publish to jsr
run: deno publish
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ logs
*.log
*.debug

# Build output
npm/

# Runtime data
*.pid
*.seed
Expand Down
8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

114 changes: 0 additions & 114 deletions AGENTS.md

This file was deleted.

28 changes: 4 additions & 24 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ As an OSS, it's better to follow the Unix philosophy: "do one thing and do it we

Please avoid using libaries other than those available in the standard library, unless necessary.

This library needs to be simple and flexible to run on multiple platforms such as Deno, Bun, or even browser.

This library needs to be simple and flexible to run on multiple platforms (Deno, Node, Bun).

## Coding convention

Expand All @@ -22,34 +21,21 @@ Make sure your code lints before opening a pull request.
cd oembed-extractor

# check coding convention issue
npm run lint
deno lint

# auto fix coding convention issue
npm run lint:fix
deno lint --fix
```

*When you run `npm test`, the linting process will be triggered at first.*


## Testing

Be sure to run the unit test suite before opening a pull request. An example test run is shown below.

```bash
cd oembed-extractor
npm test
deno test --allow-all
```

![oembed-extractor unit test](https://i.imgur.com/Nr5BgUx.png)

If test coverage decreased, please check test scripts and try to improve this number.


## Documentation

If you've changed APIs, please update README and [the examples](examples).


## Clean commit histories

When you open a pull request, please ensure the commit history is clean.
Expand All @@ -58,12 +44,6 @@ Squash the commits into logical blocks, perhaps a single commit if that makes se
What you want to avoid is commits such as "WIP" and "fix test" in the history.
This is so we keep history on master clean and straightforward.

For people new to git, please refer the following guides:

- [Writing good commit messages](https://github.com/erlang/otp/wiki/writing-good-commit-messages)
- [Commit Message Guidelines](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53)


## License

By contributing to `@extractus/oembed-extractor`, you agree that your contributions will be licensed under its [MIT license](LICENSE).
Expand Down
Loading