Skip to content

Commit c93b583

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 c93b583

123 files changed

Lines changed: 3157 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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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: pnpm/action-setup@v5.0.0
16+
- uses: actions/setup-node@v6.3.0
17+
with:
18+
node-version: 22
19+
cache: pnpm
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm run typecheck
22+
- run: pnpm run build

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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: pnpm/action-setup@v5.0.0
22+
- uses: actions/setup-node@v6.3.0
23+
with:
24+
node-version: 22
25+
registry-url: https://registry.npmjs.org
26+
cache: pnpm
27+
- run: pnpm install --frozen-lockfile
28+
- run: pnpm run build
29+
30+
- name: Create Release Pull Request or Publish to npm
31+
id: changesets
32+
uses: changesets/action@v1.7.0
33+
with:
34+
publish: pnpm changeset publish
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NPM_CONFIG_PROVENANCE: 'true'

.gitignore

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
1-
# Logs
2-
logs
1+
node_modules
2+
dist
3+
_legacy
4+
new
5+
lab
6+
dev
7+
serve.ts
8+
ecosystem.config.cjs
39
*.log
4-
5-
# Runtime data
6-
pids
710
*.pid
811
*.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
12+
.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)