Skip to content

Commit b60a107

Browse files
authored
Merge pull request #50 from script-development/armory-adopt-war-room-oxfmt-template
chore(format): adopt war-room oxfmt template
2 parents cf6fc14 + 87fb8ef commit b60a107

126 files changed

Lines changed: 9183 additions & 10381 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.

.changeset/config.json

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

.git-blame-ignore-revs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Commits listed here are skipped by `git blame` (when configured) and by
2+
# GitHub's blame view automatically. Add large mechanical reformats here so
3+
# line authorship stays on the author of the logic, not the formatter.
4+
#
5+
# Enable locally with:
6+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
7+
8+
# chore(format): apply war-room oxfmt template across repo (2026-04-23)
9+
50a15f3767e204f60dd88e89764d179751ff47e5

.github/dependabot.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
version: 2
22

33
updates:
4-
- package-ecosystem: npm
5-
directory: /
6-
schedule:
7-
interval: weekly
8-
day: monday
9-
groups:
10-
oxc:
11-
patterns:
12-
- "oxlint"
13-
- "oxfmt"
14-
stryker:
15-
patterns:
16-
- "@stryker-mutator/*"
17-
vitest:
18-
patterns:
19-
- "vitest"
20-
- "@vitest/*"
21-
open-pull-requests-limit: 10
4+
- package-ecosystem: npm
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
day: monday
9+
groups:
10+
oxc:
11+
patterns:
12+
- 'oxlint'
13+
- 'oxfmt'
14+
stryker:
15+
patterns:
16+
- '@stryker-mutator/*'
17+
vitest:
18+
patterns:
19+
- 'vitest'
20+
- '@vitest/*'
21+
open-pull-requests-limit: 10
2222

23-
- package-ecosystem: github-actions
24-
directory: /
25-
schedule:
26-
interval: weekly
27-
day: monday
23+
- package-ecosystem: github-actions
24+
directory: /
25+
schedule:
26+
interval: weekly
27+
day: monday

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
88

99
jobs:
10-
check:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v6
14-
- uses: actions/setup-node@v6
15-
with:
16-
node-version: 24
17-
- run: npm ci --ignore-scripts
18-
- run: npm audit
19-
- run: npm run format:check
20-
- run: npm run lint
21-
- run: npm run build
22-
- run: npm run typecheck
23-
- run: npm run lint:pkg
24-
- run: npm run test:coverage
25-
- run: npm run test:mutation
10+
check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: 24
17+
- run: npm ci --ignore-scripts
18+
- run: npm audit
19+
- run: npm run format:check
20+
- run: npm run lint
21+
- run: npm run build
22+
- run: npm run typecheck
23+
- run: npm run lint:pkg
24+
- run: npm run test:coverage
25+
- run: npm run test:mutation

.github/workflows/publish.yml

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
name: Publish
22

33
on:
4-
push:
5-
branches: [main]
6-
paths:
7-
- "**/package.json"
4+
push:
5+
branches: [main]
6+
paths:
7+
- '**/package.json'
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
permissions:
13-
contents: read
14-
steps:
15-
- uses: actions/checkout@v6
16-
- uses: actions/setup-node@v6
17-
with:
18-
node-version: 24
19-
- run: npm ci --ignore-scripts
20-
- run: npm run build
21-
- uses: actions/upload-artifact@v7
22-
with:
23-
name: build-output
24-
path: packages/*/dist/
25-
retention-days: 1
26-
if-no-files-found: error
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version: 24
19+
- run: npm ci --ignore-scripts
20+
- run: npm run build
21+
- uses: actions/upload-artifact@v7
22+
with:
23+
name: build-output
24+
path: packages/*/dist/
25+
retention-days: 1
26+
if-no-files-found: error
2727

28-
publish:
29-
needs: build
30-
runs-on: ubuntu-latest
31-
permissions:
32-
contents: write
33-
id-token: write
34-
steps:
35-
- uses: actions/checkout@v6
36-
- uses: actions/setup-node@v6
37-
with:
38-
node-version: 24
39-
registry-url: "https://registry.npmjs.org"
40-
scope: "@script-development"
41-
- uses: actions/download-artifact@v8
42-
with:
43-
name: build-output
44-
path: packages
45-
- run: npm ci --ignore-scripts
46-
- name: Validate dist artifacts
47-
shell: bash
48-
run: |
49-
set -euo pipefail
50-
REQUIRED=("dist/index.mjs" "dist/index.cjs" "dist/index.d.mts" "dist/index.d.cts")
51-
FAILED=0
52-
for pkg_dir in packages/*/; do
53-
pkg_name=$(node -p "require('./${pkg_dir}package.json').name")
54-
pack_json=$(cd "$pkg_dir" && npm pack --dry-run --json 2>/dev/null)
55-
for required in "${REQUIRED[@]}"; do
56-
size=$(node -e "
57-
const files = JSON.parse(process.argv[1])[0].files;
58-
const f = files.find(e => e.path === process.argv[2]);
59-
if (!f) { console.log('MISSING'); process.exit(0); }
60-
console.log(f.size);
61-
" "$pack_json" "$required")
62-
if [ "$size" = "MISSING" ]; then
63-
echo "::error::${pkg_name} is missing ${required} in published tarball"
64-
FAILED=1
65-
elif [ "$size" = "0" ]; then
66-
echo "::error::${pkg_name} ${required} is 0 bytes"
67-
FAILED=1
68-
fi
69-
done
70-
done
71-
if [ "$FAILED" = "1" ]; then
72-
echo "Pre-publish dist validation failed. Refusing to publish empty or incomplete tarballs."
73-
exit 1
74-
fi
75-
echo "All packages validated: required dist/ artifacts present and non-empty."
76-
- run: npx changeset publish
77-
env:
78-
NPM_CONFIG_PROVENANCE: "true"
79-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
publish:
29+
needs: build
30+
runs-on: ubuntu-latest
31+
permissions:
32+
contents: write
33+
id-token: write
34+
steps:
35+
- uses: actions/checkout@v6
36+
- uses: actions/setup-node@v6
37+
with:
38+
node-version: 24
39+
registry-url: 'https://registry.npmjs.org'
40+
scope: '@script-development'
41+
- uses: actions/download-artifact@v8
42+
with:
43+
name: build-output
44+
path: packages
45+
- run: npm ci --ignore-scripts
46+
- name: Validate dist artifacts
47+
shell: bash
48+
run: |
49+
set -euo pipefail
50+
REQUIRED=("dist/index.mjs" "dist/index.cjs" "dist/index.d.mts" "dist/index.d.cts")
51+
FAILED=0
52+
for pkg_dir in packages/*/; do
53+
pkg_name=$(node -p "require('./${pkg_dir}package.json').name")
54+
pack_json=$(cd "$pkg_dir" && npm pack --dry-run --json 2>/dev/null)
55+
for required in "${REQUIRED[@]}"; do
56+
size=$(node -e "
57+
const files = JSON.parse(process.argv[1])[0].files;
58+
const f = files.find(e => e.path === process.argv[2]);
59+
if (!f) { console.log('MISSING'); process.exit(0); }
60+
console.log(f.size);
61+
" "$pack_json" "$required")
62+
if [ "$size" = "MISSING" ]; then
63+
echo "::error::${pkg_name} is missing ${required} in published tarball"
64+
FAILED=1
65+
elif [ "$size" = "0" ]; then
66+
echo "::error::${pkg_name} ${required} is 0 bytes"
67+
FAILED=1
68+
fi
69+
done
70+
done
71+
if [ "$FAILED" = "1" ]; then
72+
echo "Pre-publish dist validation failed. Refusing to publish empty or incomplete tarballs."
73+
exit 1
74+
fi
75+
echo "All packages validated: required dist/ artifacts present and non-empty."
76+
- run: npx changeset publish
77+
env:
78+
NPM_CONFIG_PROVENANCE: 'true'
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.oxfmtrc.json

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,43 @@
11
{
2-
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3-
"ignorePatterns": []
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
4+
"printWidth": 120,
5+
"tabWidth": 4,
6+
"useTabs": false,
7+
"semi": true,
8+
"singleQuote": true,
9+
"trailingComma": "all",
10+
"bracketSpacing": false,
11+
"bracketSameLine": false,
12+
"arrowParens": "always",
13+
"objectWrap": "collapse",
14+
"quoteProps": "as-needed",
15+
"htmlWhitespaceSensitivity": "css",
16+
"singleAttributePerLine": false,
17+
"vueIndentScriptAndStyle": false,
18+
"proseWrap": "preserve",
19+
"endOfLine": "lf",
20+
"insertFinalNewline": true,
21+
"embeddedLanguageFormatting": "auto",
22+
23+
"ignorePatterns": ["dist/**", "coverage/**", "node_modules/**", "CLAUDE.md"],
24+
25+
"experimentalSortImports": {
26+
"order": "asc",
27+
"ignoreCase": true,
28+
"newlinesBetween": true,
29+
"internalPattern": ["@/"],
30+
"sortSideEffects": false,
31+
"groups": [
32+
"type-import",
33+
["value-builtin", "value-external"],
34+
"type-internal",
35+
"value-internal",
36+
["type-parent", "type-sibling", "type-index"],
37+
["value-parent", "value-sibling", "value-index"],
38+
"unknown"
39+
]
40+
},
41+
42+
"experimentalSortPackageJson": {"sortScripts": true}
443
}

.oxlintrc.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
2-
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"plugins": ["typescript", "unicorn", "oxc"],
4-
"categories": {
5-
"correctness": "error"
6-
},
7-
"rules": {},
8-
"env": {
9-
"builtin": true
10-
}
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "oxc"],
4+
"categories": {"correctness": "error"},
5+
"rules": {},
6+
"env": {"builtin": true}
117
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ npm install @script-development/fs-http
3838
```
3939

4040
```typescript
41-
import { createHttpService } from "@script-development/fs-http";
41+
import {createHttpService} from '@script-development/fs-http';
4242

43-
const http = createHttpService("https://api.example.com");
44-
const response = await http.getRequest<User[]>("/users");
43+
const http = createHttpService('https://api.example.com');
44+
const response = await http.getRequest<User[]>('/users');
4545
```
4646

4747
See the [documentation](https://packages.script.nl) for the full getting started guide, architecture deep-dive, and package API tours.

0 commit comments

Comments
 (0)