highmark-cli 0.0.176 → 0.0.178

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/bin/constants.js CHANGED
@@ -3,25 +3,24 @@
3
3
  const FONT = "font",
4
4
  ERROR = "error",
5
5
  PERIOD = ".",
6
- EMPTY_STRING = "",
7
6
  HIGHMARK_CLI = "Highmark-CLI",
7
+ INDEX_HTML_FILE_NAME = "index.html",
8
8
  LIVE_RELOAD_PATH = "/live-reload",
9
- CLIENT_SELECTOR_STRING = "body > div.view > div.overlay > div",
10
- RAW_HTML_SELECTOR_STRING = "body > div",
9
+ DIVS_SELECTOR_STRING = "body > div",
11
10
  INDEX_TEMPLATE_FILE_PATH = "template/index.html",
12
11
  CLIENT_TEMPLATE_FILE_PATH = "template/client.html",
12
+ CLIENT_DIVS_SELECTOR_STRING = "body > div.view > div.overlay > div",
13
13
  DEFAULT_DIVISION_IDENTIFIER = "default";
14
14
 
15
15
  module.exports = {
16
16
  FONT,
17
17
  ERROR,
18
18
  PERIOD,
19
- EMPTY_STRING,
20
19
  HIGHMARK_CLI,
21
20
  LIVE_RELOAD_PATH,
22
- CLIENT_SELECTOR_STRING,
23
- RAW_HTML_SELECTOR_STRING,
21
+ DIVS_SELECTOR_STRING,
24
22
  INDEX_TEMPLATE_FILE_PATH,
25
23
  CLIENT_TEMPLATE_FILE_PATH,
24
+ CLIENT_DIVS_SELECTOR_STRING,
26
25
  DEFAULT_DIVISION_IDENTIFIER
27
26
  };
@@ -7,10 +7,9 @@ function copyClientFilesOperation(proceed, abort, context) {
7
7
 
8
8
  if (copyClientFiles) {
9
9
  const { markdownHTML, markdownStylesCSS, outputDirectoryPath } = context,
10
- targetDirectoryPath = outputDirectoryPath, ///
11
- includeFonts = false;
10
+ targetDirectoryPath = outputDirectoryPath; ///
12
11
 
13
- copyClientFilesAsync(markdownHTML, markdownStylesCSS, targetDirectoryPath, includeFonts);
12
+ copyClientFilesAsync(markdownHTML, markdownStylesCSS, targetDirectoryPath);
14
13
  }
15
14
 
16
15
  proceed();
@@ -7,14 +7,14 @@ const { mediaTypeNames } = require("highmark-markdown"),
7
7
  const { classNameFromFilePath } = require("../utilities/division"),
8
8
  { readFile, readDirectory } = require("../utilities/fileSystem"),
9
9
  { directoryPathFromFilePath } = require("../utilities/path"),
10
- { CLIENT_SELECTOR_STRING, RAW_HTML_SELECTOR_STRING } = require("../constants");
10
+ { DIVS_SELECTOR_STRING, CLIENT_DIVS_SELECTOR_STRING } = require("../constants");
11
11
 
12
12
  const { WEB_MEDIA_TYPE_NAME } = mediaTypeNames,
13
13
  { cssFromMarkdownStyleMediaTypeNameAndSelectorString } = cssUtilities,
14
14
  { isFilePathMarkdownStyleFilePath, isFilePathDefaultMarkdownStyleFilePath } = filePathUtilities;
15
15
 
16
16
  function markdownStylesCSSOperation(proceed, abort, context) {
17
- const { copyClient, inputFilePath } = context,
17
+ const { inputFilePath, copyClientFiles } = context,
18
18
  inputDirectoryPath = directoryPathFromFilePath(inputFilePath),
19
19
  markdownStyleFilePaths = [];
20
20
 
@@ -31,9 +31,9 @@ function markdownStylesCSSOperation(proceed, abort, context) {
31
31
  }
32
32
  });
33
33
 
34
- const selectorString = copyClient ?
35
- CLIENT_SELECTOR_STRING :
36
- RAW_HTML_SELECTOR_STRING,
34
+ const selectorString = copyClientFiles ?
35
+ CLIENT_DIVS_SELECTOR_STRING :
36
+ DIVS_SELECTOR_STRING,
37
37
  markdownStyle = defaultMarkdownStyle, ///
38
38
  mediaTypeName = WEB_MEDIA_TYPE_NAME,
39
39
  defaultCSS = cssFromMarkdownStyleMediaTypeNameAndSelectorString(markdownStyle, mediaTypeName, selectorString);
@@ -41,7 +41,7 @@ function markdownStylesCSSOperation(proceed, abort, context) {
41
41
  let markdownStylesCSS = defaultCSS; ///
42
42
 
43
43
  markdownStyleFilePaths.forEach((markdownStyleFilePath) => {
44
- const selectorString = selectorStringFromMarkdownStyleFilePathAndCopyClient(markdownStyleFilePath, copyClient),
44
+ const selectorString = selectorStringFromMarkdownStyleFilePathAndCopyClient(markdownStyleFilePath, copyClientFiles),
45
45
  markdownStyle = markdownStyleFromMarkdownStyleFilePath(markdownStyleFilePath),
46
46
  css = cssFromMarkdownStyleMediaTypeNameAndSelectorString(markdownStyle, mediaTypeName, selectorString, markdownStylesCSS); ///
47
47
 
@@ -65,10 +65,10 @@ function markdownStyleFromMarkdownStyleFilePath(markdownStyleFilePath) {
65
65
  return markdownStyle;
66
66
  }
67
67
 
68
- function selectorStringFromMarkdownStyleFilePathAndCopyClient(markdownStyleFilePath, copyClient) {
69
- let selectorString = copyClient ?
70
- CLIENT_SELECTOR_STRING :
71
- RAW_HTML_SELECTOR_STRING;
68
+ function selectorStringFromMarkdownStyleFilePathAndCopyClient(markdownStyleFilePath, copyClientFiles) {
69
+ let selectorString = copyClientFiles ?
70
+ CLIENT_DIVS_SELECTOR_STRING :
71
+ DIVS_SELECTOR_STRING;
72
72
 
73
73
  const filePath = markdownStyleFilePath, ///
74
74
  className = classNameFromFilePath(filePath);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "highmark-cli",
3
3
  "author": "James Smith",
4
- "version": "0.0.176",
4
+ "version": "0.0.178",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/highmark-cli",
7
7
  "description": "Extensible, styleable Markdown.",
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "argumentative": "^2.0.28",
14
14
  "express": "^4.19.2",
15
- "highmark-client": "^0.0.10",
15
+ "highmark-client": "^0.0.13",
16
16
  "highmark-fonts": "^1.0.43",
17
17
  "highmark-markdown": "^0.0.245",
18
18
  "lively-cli": "^2.0.59",