Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
25916d2
Add eslint and sort includes
rferens Feb 24, 2026
1cea63a
Updating package-lock.json
rferens Feb 24, 2026
0a69e86
Undo removing line
rferens Feb 26, 2026
3149dab
Make package-lock.json smaller
rferens Feb 26, 2026
cc6226e
Update Luke's name
rferens Feb 27, 2026
59d1d67
Update node and prettier version
rferens Feb 27, 2026
1360c90
Fixing Editor's Copy and prettier workflow check
rferens Feb 27, 2026
ad7fd26
Prettier workflow problems
rferens Feb 27, 2026
717b967
Try with older prettier-actions
rferens Feb 27, 2026
ea25bff
Add plugin to prettier on command level
rferens Feb 27, 2026
7105c3a
Customized worflow to workaround prettier-actions external plugins bug
rferens Feb 27, 2026
fd58d6f
Sorry, i cannot test workflow locally...
rferens Feb 27, 2026
f9a5dd8
Sorry, I cannot test workflow locally... p.2
rferens Feb 27, 2026
05986a2
Another workflow try...
rferens Feb 27, 2026
6bdd084
I'll squash it later...
rferens Feb 27, 2026
1a697dd
Typo
rferens Feb 27, 2026
5e9bb0e
Use npx
rferens Feb 27, 2026
180121e
Use glob path
rferens Feb 27, 2026
76bc3b2
Maybe separate test will help
rferens Feb 27, 2026
bd6769a
Maybe separate test will help p.2
rferens Feb 27, 2026
4f07e03
Where it starts?
rferens Feb 27, 2026
e8a24dc
Simple path typo
rferens Feb 27, 2026
4a47fcb
Use working directory of prettier actions
rferens Feb 27, 2026
bfd4948
Manual workflow
rferens Feb 27, 2026
6683e9e
Manual workflow nit
rferens Feb 27, 2026
720e4ef
Manual workflow nit2
rferens Feb 27, 2026
3057f05
No cache - simple better
rferens Feb 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 34 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
node-version: [20, 22, 24]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
node-version: [20, 22, 24]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
Expand All @@ -38,13 +38,38 @@ jobs:
- run: npm --prefix ./js/sign run build
- run: npm --prefix ./js/sign test

prettier:
prettier-wbn:
runs-on: ubuntu-latest
defaults:
run:
working-directory: js/bundle
steps:
- uses: actions/checkout@v2
- uses: creyD/prettier_action@v4.3
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Prettier
run: |
npm install prettier@3.5 --no-save
- name: Run Prettier Check
run: |
npx prettier --check . --ignore-unknown

prettier-wbn-sign:
runs-on: ubuntu-latest
defaults:
run:
working-directory: js/sign
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
prettier_options: --write **/*.{js,ts}
only_changed: True
dry: True
prettier_version: 2.7.1
node-version: 22
- name: Install Prettier and Plugins
run: |
npm install prettier@3.5 @ianvs/prettier-plugin-sort-imports --no-save
- name: Run Prettier Check
run: |
npx prettier --check . --ignore-unknown --plugin=@ianvs/prettier-plugin-sort-imports
6 changes: 3 additions & 3 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
echo "::set-output name=path::$HOME/.cache/xml2rfc"
date -u "+::set-output name=date::%FT%T"
- name: "Cache References"
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.cache-setup.outputs.path }}
key: refcache-${{ steps.cache-setup.outputs.date }}
Expand All @@ -59,11 +59,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Save HTML"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: "*.html"

- name: "Save Text"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: "*.txt"
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "::set-output name=path::$HOME/.cache/xml2rfc"
date -u "+::set-output name=date::%FT%T"
- name: "Cache References"
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.cache-setup.outputs.path }}
key: refcache-${{ steps.date.outputs.date }}
Expand Down
47 changes: 25 additions & 22 deletions js/bundle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions js/bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,18 @@
"@types/node": "^12.7.11",
"esbuild": "^0.25.0",
"jasmine": "^4.2.1",
"prettier": "2.8.0",
"prettier": "3.5.3",
"typescript": "^4.7.3"
},
"engines": {
"node": ">= 12.0.0"
"node": ">= 20.0.0"
},
"prettier": {
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 80,
"proseWrap": "always"
"proseWrap": "always",
"trailingComma": "es5"
}
}
2 changes: 1 addition & 1 deletion js/bundle/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const B1 = 'b1';
export const B2 = 'b2';
export const DEFAULT_VERSION = B2;
export const APPROVED_VERSIONS = [B1, B2] as const;
export type FormatVersion = typeof APPROVED_VERSIONS[number];
export type FormatVersion = (typeof APPROVED_VERSIONS)[number];

export function isApprovedVersion(param: any): param is FormatVersion {
return APPROVED_VERSIONS.includes(param);
Expand Down
1 change: 1 addition & 0 deletions js/sign/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ lib
*.wbn
*.swbn
testdata
README.md
31 changes: 31 additions & 0 deletions js/sign/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// @ts-check

import eslint from '@eslint/js';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default defineConfig(
{
ignores: ['lib/**', 'node_modules/**'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.ts', '**/*.js'],
languageOptions: {
globals: {
...globals.node,
},
},
},
// Test specific rules/globals
{
files: ['**/tests/**/*.js', '**/*_test.js'],
languageOptions: {
globals: {
...globals.jasmine,
},
},
}
);
Loading
Loading