hdoc-tools 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/hdoc-help.js +31 -0
  2. package/package.json +4 -3
package/hdoc-help.js ADDED
@@ -0,0 +1,31 @@
1
+ (function () {
2
+ 'use strict';
3
+
4
+ exports.run = function() {
5
+
6
+ // STEVE: The purpose of this function is to output information about hdoc arguments
7
+ const helpText = `
8
+ Command Line Usage
9
+
10
+ hdoc argument switches
11
+
12
+ Arguments
13
+
14
+ - help
15
+ Outputs available arguments and switches
16
+ - init
17
+ Initializes a new HDocBook project from a template, using runtime input variables
18
+ - stats
19
+ Returns statistics regarding the book you are working on. Supports a -v switch for verbose output
20
+ - build
21
+ Performs a local build of the book, and outputs as a ZIP file.
22
+ - serve
23
+ Starts a local web server on port 3000, serving the book content.
24
+
25
+ Example
26
+
27
+ hdoc stats -v
28
+ `;
29
+ console.log(helpText);
30
+ };
31
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {
@@ -8,10 +8,11 @@
8
8
  },
9
9
  "files": [
10
10
  "hdoc.js",
11
+ "hdoc-build.js",
12
+ "hdoc-help.js",
13
+ "hdoc-init.js",
11
14
  "hdoc-serve.js",
12
15
  "hdoc-stats.js",
13
- "hdoc-init.js",
14
- "hdoc-build.js",
15
16
  "ui",
16
17
  "custom_modules"
17
18
  ],