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
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Normalize all text files to LF in the repo and on checkout, on every OS.
# Prevents the Windows/WSL CRLF churn that shows every line as "changed".
* text=auto eol=lf

# Explicitly treat known binary assets as binary (never touch their bytes).
*.webm binary
*.mp4 binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.wasm binary
*.ico binary
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: [master, v2]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Unit tests (Node)
run: npm test

- name: Type-check declarations
run: npm run test:types

- name: Build UMD bundle
run: npm run build

# Chromium + its system libraries, via the playwright-core installer.
- name: Install Chromium
run: npx playwright-core install --with-deps chromium

- name: Browser tests (headless Chromium)
run: npm run test:browser
20 changes: 3 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# Logs
logs
node_modules/
*.log
npm-debug.log*

# Dependency directories
node_modules

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Local file system
.DS_Store

# IDE
.idea
dist/
build/
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2012 Jaume Sanchez Elias
Copyright (c) 2012-2026 Jaume Sanchez Elias

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
Loading
Loading