Skip to content

Commit fbb3f5e

Browse files
committed
Rewrite to modern ESM TypeScript with S38 MMR Points strategy
- Replace legacy ES5 (bower, gulp, AMD) with tsc 6 + nodenext ESM - createRothko() factory API with extract (async) and extractSync - S38 MMR Points strategy with perceptual optimizations: single-pass pixel sampling, TypedArray entropy bins, L-axis sorted density scan, hue LUT for minPointChroma, cached dominant OKLCH - npm workspace: root owns devDeps, packages/rothko/ is published - CI (typecheck + build) and release workflow (changesets + OIDC) - prepack safety net for publish
1 parent aa420db commit fbb3f5e

121 files changed

Lines changed: 2271 additions & 8370 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changeset/README.md

Lines changed: 8 additions & 0 deletions

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "zeakd/rothko.js" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/rewrite-esm-s38.md

Lines changed: 10 additions & 0 deletions

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
ci:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6.0.2
15+
- uses: actions/setup-node@v6.3.0
16+
with:
17+
node-version: 22
18+
- run: npm install
19+
- run: npm run typecheck
20+
- run: npm run build

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
id-token: write
19+
steps:
20+
- uses: actions/checkout@v6.0.2
21+
- uses: actions/setup-node@v6.3.0
22+
with:
23+
node-version: 22
24+
registry-url: https://registry.npmjs.org
25+
- run: npm install
26+
- run: npm run build
27+
28+
- name: Create Release Pull Request or Publish to npm
29+
id: changesets
30+
uses: changesets/action@v1.7.0
31+
with:
32+
publish: npm run release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_CONFIG_PROVENANCE: 'true'

.gitignore

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
1-
# Logs
2-
logs
1+
node_modules
2+
package-lock.json
3+
dist
4+
_legacy
5+
new
6+
lab
7+
dev
8+
serve.ts
9+
ecosystem.config.cjs
310
*.log
4-
5-
# Runtime data
6-
pids
711
*.pid
812
*.seed
9-
10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov
12-
13-
# Coverage directory used by tools like istanbul
14-
coverage
15-
16-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17-
.grunt
18-
19-
# node-waf configuration
20-
.lock-wscript
21-
22-
# Compiled binary addons (http://nodejs.org/api/addons.html)
23-
build/Release
24-
25-
# Dependency directory
26-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27-
node_modules
28-
bower_components
13+
.DS_Store

README.md

Lines changed: 20 additions & 33 deletions

bower.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

debug/image/201412291654_t0u5k.jpg

-126 KB
Binary file not shown.

0 commit comments

Comments
 (0)