@barmark/cli 0.10.2 → 0.11.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/CHANGELOG.md CHANGED
@@ -6,6 +6,38 @@ package uses [semantic versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.11.1] - 2026-11-10
10
+
11
+ ### Changed
12
+
13
+ - **Uses** barmark 0.23.1: `check` suggests how to fix words on a
14
+ rehearsal mark's cell (`| @B | "Play 3 times" C |`); nothing else
15
+ changes.
16
+
17
+ ## [0.11.0] - 2026-11-10
18
+
19
+ ### Added
20
+
21
+ - **`barmark render --columns shared|row`**: with `row` each row of the
22
+ grid sizes its own bars, so a busy bar widens only its own row
23
+ (`@barmark/render`'s `columns`). `shared` is the default; any other
24
+ value is a usage error, and so is `--columns` with `--score`.
25
+
26
+ ### Changed
27
+
28
+ - **Uses** barmark 0.23.0, @barmark/render 0.19.0, @barmark/musicxml
29
+ 0.9.0 and @barmark/midi 0.3.2 and, through it, @barmark/sync 0.4.1:
30
+ `check` and `format` read stacked chord spellings with a warning
31
+ (`format` writes the canonical form), an unreadable slot keeps its bar
32
+ (`check` still fails) and `transpose` moves the readable chords beside
33
+ it, an ending may continue onto the lines after it in `render` and
34
+ `export`, and `render` shows the beat a tempo counts.
35
+ - **Uses @barmark/score 0.5.0 (still stock Verovio in-process).**
36
+ `render --score` engraves with Verovio 6.4.1, unchanged; score's
37
+ `@barmark/engraver` opt-in is for pages, not the CLI.
38
+ - **`barmark render --help`** says `--rehearsal-letters` adds no letters
39
+ to a chart that marks its own (`@A`), as `@barmark/render` 0.19.0 does.
40
+
9
41
  ## [0.10.2] - 2026-11-10
10
42
 
11
43
  ### Changed
@@ -332,7 +364,9 @@ The first release of the `barmark` command. Uses `barmark` 0.8.0 and
332
364
  - **The `barmark` command:** `check`, `format`, `render` and `transpose`
333
365
  for `.chart.md` files, on npm and as standalone binaries.
334
366
 
335
- [Unreleased]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.2...HEAD
367
+ [Unreleased]: https://github.com/kevinpeckham/barmark/compare/cli-v0.11.1...HEAD
368
+ [0.11.1]: https://github.com/kevinpeckham/barmark/compare/cli-v0.11.0...cli-v0.11.1
369
+ [0.11.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.2...cli-v0.11.0
336
370
  [0.10.2]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.1...cli-v0.10.2
337
371
  [0.10.1]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.0...cli-v0.10.1
338
372
  [0.10.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.9.0...cli-v0.10.0
package/README.md CHANGED
@@ -51,7 +51,7 @@ barmark transpose song.chart.md --to E # or --semitones -2
51
51
  `check --format json` prints the diagnostics for other tools. `render`
52
52
  takes the renderer's options as flags: `--theme auto|light|dark`,
53
53
  `--numerals nashville|roman`, `--no-bar-numbers`, `--rehearsal-letters`,
54
- `--no-wrap`, `--diagnostics`, `--part <label>` to draw one part, and `--font-url <url>` to link the font
54
+ `--no-wrap`, `--columns shared|row`, `--diagnostics`, `--part <label>` to draw one part, and `--font-url <url>` to link the font
55
55
  instead of embedding it. `barmark <command> --help` lists each command's
56
56
  flags; `barmark --version` prints the versions of the CLI, its
57
57
  libraries and Verovio.
@@ -66,8 +66,8 @@ it does the grid, `--part <label>` engraves that part alone, and
66
66
  900, a comfortable reading width: the page scales the score to fit the
67
67
  window or the paper, so the width decides how many bars go on a line,
68
68
  not how big the page is). The grid's own flags (`--numerals`,
69
- `--no-bar-numbers`, `--rehearsal-letters`, `--no-wrap`, `--diagnostics`,
70
- `--font-url`) are usage errors with `--score`, and `--width` is one
69
+ `--no-bar-numbers`, `--rehearsal-letters`, `--no-wrap`, `--columns`,
70
+ `--diagnostics`, `--font-url`) are usage errors with `--score`, and `--width` is one
71
71
  without it. A chart that won't engrave (one with errors, or no bars)
72
72
  writes nothing: the reason goes to stderr as `song.chart.md: Line 5:
73
73
  message`, and the exit code is 1. The score's text is set in Verovio's own
package/dist/help.js CHANGED
@@ -67,8 +67,11 @@ The grid only:
67
67
  --numerals nashville|roman
68
68
  Show chords as degrees of the key
69
69
  --no-bar-numbers Hide bar numbers
70
- --rehearsal-letters Letter each section A, B, C…
70
+ --rehearsal-letters Letter each section A, B, C… (none when the chart marks its own)
71
71
  --no-wrap Keep each row on one line
72
+ --columns shared|row row: each row sizes its own bars, so a busy bar widens
73
+ only its own row (default shared: bar lines line up
74
+ down each section)
72
75
  --diagnostics List the chart's problems below it
73
76
  --font-url <url> Link the font instead of embedding it
74
77
  `,
package/dist/render.js CHANGED
@@ -12,6 +12,7 @@ import { onlyChart, writeOutput } from "./output.js";
12
12
  import { DEFAULT_WIDTH, MAX_WIDTH, MIN_WIDTH, scoreBody } from "./score.js";
13
13
  const THEMES = ["auto", "light", "dark"];
14
14
  const NUMERALS = ["nashville", "roman"];
15
+ const COLUMNS = ["shared", "row"];
15
16
  const escapeHtml = (text) => text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
16
17
  function htmlDocument(title, body) {
17
18
  return `<!doctype html>
@@ -34,18 +35,20 @@ const FLAGS = {
34
35
  "no-bar-numbers": { type: "boolean", default: false },
35
36
  "rehearsal-letters": { type: "boolean", default: false },
36
37
  "no-wrap": { type: "boolean", default: false },
38
+ columns: { type: "string" },
37
39
  diagnostics: { type: "boolean", default: false },
38
40
  "font-url": { type: "string" },
39
41
  part: { type: "string" },
40
42
  score: { type: "boolean", default: false },
41
43
  width: { type: "string" },
42
44
  };
43
- /** The grid's own flags: a score has no numerals, bar-number switch, letters, rows, problem list or Edwin. */
45
+ /** The grid's own flags: a score has no numerals, bar-number switch, letters, rows, columns, problem list or Edwin. */
44
46
  const GRID_ONLY = [
45
47
  "numerals",
46
48
  "no-bar-numbers",
47
49
  "rehearsal-letters",
48
50
  "no-wrap",
51
+ "columns",
49
52
  "diagnostics",
50
53
  "font-url",
51
54
  ];
@@ -77,7 +80,13 @@ function gridOptions(values, theme, io) {
77
80
  options.wrap = false;
78
81
  if (values.diagnostics)
79
82
  options.diagnostics = true;
80
- return options;
83
+ return Object.assign(options, columnsOption(values.columns));
84
+ }
85
+ /** `--columns row` as the option; `shared`, the default, as none, so the page is the default's. */
86
+ function columnsOption(value) {
87
+ if (value === undefined)
88
+ return {};
89
+ return oneOf("columns", value, COLUMNS) === "row" ? { columns: "row" } : {};
81
90
  }
82
91
  /** --score's width, refusing the grid's own flags. */
83
92
  function scoreWidth(values) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barmark/cli",
3
- "version": "0.10.2",
3
+ "version": "0.11.1",
4
4
  "description": "The barmark command: check, format, render, transpose and export barmark chord charts (.chart.md) from the terminal and in CI.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,11 +37,11 @@
37
37
  "url": "https://github.com/kevinpeckham/barmark/issues"
38
38
  },
39
39
  "dependencies": {
40
- "barmark": "0.22.0",
41
- "@barmark/render": "0.18.0",
42
- "@barmark/musicxml": "0.8.0",
43
- "@barmark/midi": "0.3.1",
44
- "@barmark/score": "0.3.0",
40
+ "barmark": "0.23.1",
41
+ "@barmark/render": "0.19.0",
42
+ "@barmark/musicxml": "0.9.0",
43
+ "@barmark/midi": "0.3.2",
44
+ "@barmark/score": "0.5.0",
45
45
  "verovio": "6.4.1"
46
46
  },
47
47
  "scripts": {