@thegetty/quire-cli 1.0.0-rc.18 → 1.0.0-rc.19

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
@@ -12,6 +12,14 @@ Changelog entries are classified using the following labels:
12
12
  - `Fixed`: for any bug fixes
13
13
  - `Removed`: for deprecated features removed in this release
14
14
 
15
+ ## [1.0.0-rc.19]
16
+
17
+ ### Added
18
+
19
+ - `jsdoc-to-markdown` to development dependencies
20
+ - JSDoc configuration (see https://jsdoc.app/about-configuring-jsdoc)
21
+ - Npm script `docs` to run jsdoc-to-markdown
22
+
15
23
  ## [1.0.0-rc.18]
16
24
 
17
25
  ### Added
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thegetty/quire-cli",
3
3
  "description": "Quire command-line interface",
4
- "version": "1.0.0-rc.18",
4
+ "version": "1.0.0-rc.19",
5
5
  "author": "Getty Digital",
6
6
  "license": "SEE LICENSE IN https://github.com/thegetty/quire/blob/main/LICENSE",
7
7
  "bugs": {
@@ -35,6 +35,7 @@
35
35
  "directory": "packages/cli"
36
36
  },
37
37
  "scripts": {
38
+ "docs": "jsdoc2md --configure jsdoc.json --files src/**/*.js > docs/cli.md",
38
39
  "lint": "eslint src --ext .js",
39
40
  "lint:fix": "npm run lint -- --fix",
40
41
  "postinstall": "cross-env patch-package --error-on-fail",
@@ -65,14 +66,15 @@
65
66
  "loglevel": "^1.8.1",
66
67
  "open": "^8.4.0",
67
68
  "ora": "^6.1.2",
68
- "patch-package": "^8.0.0",
69
69
  "pagedjs-cli": "^0.4.3",
70
+ "patch-package": "^8.0.0",
70
71
  "semver": "^7.3.8",
71
72
  "simple-git": "^3.16.0",
72
73
  "update-notifier": "^7.3.1"
73
74
  },
74
75
  "devDependencies": {
75
- "eslint": "^8.32.0"
76
+ "eslint": "^8.32.0",
77
+ "jsdoc-to-markdown": "^9.1.1"
76
78
  },
77
79
  "engines": {
78
80
  "node": ">=14.16"
@@ -55,8 +55,7 @@ export default class EpubCommand extends Command {
55
55
  }
56
56
 
57
57
  /**
58
- * test if build site has already be run and output can be reused
59
- * @todo
58
+ * @todo test if build site has already be run and output can be reused
60
59
  */
61
60
  preAction(command) {
62
61
  const options = command.opts()
@@ -1,3 +1,7 @@
1
+ /**
2
+ * A helper module for cleaning quire outputs
3
+ * @module clean
4
+ */
1
5
  import { deleteAsync } from 'del'
2
6
  import path from 'node:path'
3
7
 
@@ -1,3 +1,7 @@
1
+ /**
2
+ * A helper module to test if a path is an empty directory
3
+ * @module is-empty
4
+ */
1
5
  import fs from 'node:fs'
2
6
 
3
7
  /**
@@ -1,3 +1,7 @@
1
+ /**
2
+ * A helper module to test if a directory is a Quire project root
3
+ * @module is-quire
4
+ */
1
5
  import fs from 'node:fs'
2
6
 
3
7
  const QUIRE_DOT_FILES = Object.freeze([
@@ -1,3 +1,7 @@
1
+ /**
2
+ * A helper module for cross platform dynamic imports
3
+ * @module os-utils
4
+ */
1
5
  import { pathToFileURL } from 'node:url'
2
6
 
3
7
  /**
@@ -1,3 +1,7 @@
1
+ /**
2
+ * A helper module to test the current working directory
3
+ * @module test-csd
4
+ */
1
5
  import isQuire from '#helpers/is-quire.js'
2
6
 
3
7
  /**
@@ -1,3 +1,7 @@
1
+ /**
2
+ * A helper module to wrap the `which` utility
3
+ * @module which
4
+ */
1
5
  import which from 'which'
2
6
 
3
7
  /**