scrabble-solver 2.18.10-alpha.0 → 2.18.10-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +29 -29
- package/e2e/app.spec.ts +3 -3
- package/e2e/bugs/112-character-bonus.spec.ts +1 -1
- package/e2e/bugs/129-esc-sidebar.spec.ts +1 -1
- package/e2e/bugs/3-x-tile-in-polish.spec.ts +1 -1
- package/e2e/bugs/30-click-inside-radio-icon.spec.ts +1 -1
- package/e2e/bugs/333-disabled-radio-cursor.spec.ts +1 -1
- package/e2e/bugs/342-results-sorting.spec.ts +1 -1
- package/e2e/bugs/363-dictionary-input-unique-words.spec.ts +1 -1
- package/e2e/bugs/380-transliteration-when-pasting.spec.ts +1 -1
- package/e2e/bugs/398-digraphs-in-created-words.spec.ts +2 -2
- package/e2e/bugs/401-board-state-on-game-change.spec.ts +1 -1
- package/e2e/bugs/452-stale-translations-cache.spec.ts +1 -1
- package/e2e/features/198-highlight-unreachable-cells.spec.ts +1 -2
- package/e2e/features/430-highlight-unreachable-cells-results.spec.ts +1 -2
- package/e2e/features/91-hover-remaining-tile-highlights.spec.ts +3 -4
- package/e2e/features/hidden-coordinates-migration.spec.ts +1 -1
- package/e2e/features/words-preview.spec.ts +4 -4
- package/e2e/lib/actions.ts +17 -4
- package/e2e/lib/selectors.ts +1 -1
- package/package.json +3 -3
- package/.claude/settings.local.json +0 -38
- package/.github/workflows/build.yml +0 -16
- package/.github/workflows/bunx.yml +0 -66
- package/.github/workflows/deploy.yml +0 -32
- package/.github/workflows/e2e.yml +0 -26
- package/.github/workflows/npx.yml +0 -69
- package/.github/workflows/oxfmt.yml +0 -18
- package/.github/workflows/oxlint.yml +0 -19
- package/.github/workflows/unit.yml +0 -19
- package/playwright-report/index.html +0 -49
- package/test-results/.last-run.json +0 -4
- package/todo.txt +0 -5
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
name: npx
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
schedule:
|
|
7
|
-
- cron: '0 0 * * *' # every day at 00:00 UTC
|
|
8
|
-
workflow_dispatch: # allow manual triggering
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
npx:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: oven-sh/setup-bun@v2
|
|
15
|
-
- uses: actions/setup-node@v5
|
|
16
|
-
with:
|
|
17
|
-
node-version: 24
|
|
18
|
-
- uses: actions/checkout@v6
|
|
19
|
-
- name: Wait for the released version to be published on npm
|
|
20
|
-
run: |
|
|
21
|
-
VERSION=$(node -p "require('./package.json').version")
|
|
22
|
-
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
|
23
|
-
echo "Target version: $VERSION"
|
|
24
|
-
# Unscoped CLI package + every non-private workspace package, published
|
|
25
|
-
# together by `bun run release`. All version in lockstep.
|
|
26
|
-
PACKAGES=$(node -p "['scrabble-solver', ...require('fs').readdirSync('packages').map(d=>require('./packages/'+d+'/package.json')).filter(p=>!p.private).map(p=>p.name)].join(' ')")
|
|
27
|
-
echo "Waiting for: $PACKAGES"
|
|
28
|
-
for pkg in $PACKAGES; do
|
|
29
|
-
for i in $(seq 1 60); do
|
|
30
|
-
if [ "$(npm view "$pkg@$VERSION" version 2>/dev/null)" = "$VERSION" ]; then
|
|
31
|
-
echo "✓ $pkg@$VERSION is available"
|
|
32
|
-
break
|
|
33
|
-
fi
|
|
34
|
-
if [ "$i" -eq 60 ]; then
|
|
35
|
-
echo "::error::Timed out waiting for $pkg@$VERSION on npm" >&2
|
|
36
|
-
exit 1
|
|
37
|
-
fi
|
|
38
|
-
echo "… $pkg@$VERSION not available yet (attempt $i/60); sleeping 15s"
|
|
39
|
-
sleep 15
|
|
40
|
-
done
|
|
41
|
-
done
|
|
42
|
-
- name: Download published package
|
|
43
|
-
run: |
|
|
44
|
-
npm pack scrabble-solver@"$VERSION"
|
|
45
|
-
mkdir work-dir
|
|
46
|
-
tar -xzf scrabble-solver-*.tgz -C work-dir --strip-components=1
|
|
47
|
-
- run: bun install --frozen-lockfile
|
|
48
|
-
working-directory: work-dir
|
|
49
|
-
- name: Pre-warm dictionaries cache
|
|
50
|
-
run: node packages/dictionaries/bin/update-dictionaries.js
|
|
51
|
-
working-directory: work-dir
|
|
52
|
-
- name: Install Playwright browsers
|
|
53
|
-
run: npx playwright install --with-deps chromium
|
|
54
|
-
working-directory: work-dir
|
|
55
|
-
- name: Install the published package globally
|
|
56
|
-
run: npm install --global scrabble-solver@${{ env.VERSION }}
|
|
57
|
-
- name: Run e2e tests against the global binary
|
|
58
|
-
run: npx start-server-and-test scrabble-solver http://localhost:3333 'npx playwright test'
|
|
59
|
-
working-directory: work-dir
|
|
60
|
-
env:
|
|
61
|
-
PLAYWRIGHT_BASE_URL: http://localhost:3333
|
|
62
|
-
- uses: actions/upload-artifact@v7
|
|
63
|
-
if: failure()
|
|
64
|
-
with:
|
|
65
|
-
name: playwright-artifacts
|
|
66
|
-
path: |
|
|
67
|
-
work-dir/playwright-report
|
|
68
|
-
work-dir/test-results
|
|
69
|
-
if-no-files-found: ignore
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
name: Format
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
oxfmt:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v6
|
|
14
|
-
- uses: oven-sh/setup-bun@v2
|
|
15
|
-
- run: bun install --frozen-lockfile
|
|
16
|
-
- run: bun run format
|
|
17
|
-
env:
|
|
18
|
-
CI: true
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Lint
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
oxlint:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v6
|
|
14
|
-
- uses: oven-sh/setup-bun@v2
|
|
15
|
-
- run: bun install --frozen-lockfile
|
|
16
|
-
- run: bun run build
|
|
17
|
-
- run: bun run lint
|
|
18
|
-
env:
|
|
19
|
-
CI: true
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Unit
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
unit:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v6
|
|
14
|
-
- uses: oven-sh/setup-bun@v2
|
|
15
|
-
- run: bun install --frozen-lockfile
|
|
16
|
-
- run: bun run build
|
|
17
|
-
- run: bun run test-unit
|
|
18
|
-
env:
|
|
19
|
-
CI: true
|