Skip to content

Commit

Permalink
[script/screenshot] Remove compilaton wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Sep 10, 2024
1 parent d173341 commit 8197b45
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ link: build
.PHONY: clean
clean:
rm -rf \
dist .temp coverage script/bin/screenshot-src/main.js ./package-lock.json \
dist .temp coverage ./package-lock.json \
./alg ./bluetooth ./kpuzzle ./notation ./protocol ./puzzle-geometry ./puzzles ./scramble ./search ./stream ./twisty
${BUN_RUN} script/build/lib/clean-types.ts
.PHONY: reset
Expand Down
6 changes: 2 additions & 4 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"./src/cubing/vendor/mpl/xyzzy/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.d.ts",
"./src/test/vendor/bun-types-workaround.d.ts",
"./script/bin/screenshot-src/main.js"
"./src/test/vendor/bun-types-workaround.d.ts"
]
},
"formatter": {
Expand All @@ -45,8 +44,7 @@
"./src/cubing/vendor/mpl/xyzzy/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.d.ts",
"./src/test/vendor/bun-types-workaround.d.ts",
"./script/bin/screenshot-src/main.js"
"./src/test/vendor/bun-types-workaround.d.ts"
]
},
"organizeImports": {
Expand Down
1 change: 0 additions & 1 deletion script/bin/screenshot-src/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions script/bin/screenshot.js

This file was deleted.

11 changes: 9 additions & 2 deletions script/bin/screenshot-src/main.ts → script/bin/screenshot.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
/**
* Usage:
*
* bun run "script/bin/screenshot.ts" "R U R' U R U2' R'"
*
* */

// We would use named imports, but that doesn't seem to be an option.
import { chromium } from "playwright";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import type { TwistyPlayerConfig } from "../../../src/cubing/twisty";
import { startServer } from "../../lib/experiments-server/index.js";
import type { TwistyPlayerConfig } from "../../src/cubing/twisty/index.js";
import { startServer } from "../lib/experiments-server/index.js";

const DEBUG = false;
const PAGE_URL =
Expand Down

0 comments on commit 8197b45

Please sign in to comment.