highmark-cli 0.0.173 → 0.0.175

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 (90) hide show
  1. package/README.md +20 -2
  2. package/bin/abbreviations.js +6 -9
  3. package/bin/action/help.js +3 -3
  4. package/bin/action/publish.js +3 -4
  5. package/bin/action/server.js +2 -2
  6. package/bin/constants.js +2 -6
  7. package/bin/defaults.js +4 -6
  8. package/bin/main.js +7 -9
  9. package/bin/operation/copyFonts.js +5 -23
  10. package/bin/operation/html.js +5 -71
  11. package/bin/options.js +4 -6
  12. package/package.json +2 -26
  13. package/.swcrc +0 -11
  14. package/bin/utilities/client.js +0 -38
  15. package/checkmark.svg +0 -12
  16. package/client.js +0 -39651
  17. package/css/loading.css +0 -59
  18. package/lib/client.js +0 -74
  19. package/lib/constants.js +0 -70
  20. package/lib/createMethods.js +0 -84
  21. package/lib/customEventTypes.js +0 -74
  22. package/lib/localStorage.js +0 -41
  23. package/lib/migrate.js +0 -34
  24. package/lib/selectors.js +0 -26
  25. package/lib/state/version_1.js +0 -39
  26. package/lib/state.js +0 -153
  27. package/lib/styles.js +0 -82
  28. package/lib/utilities/element.js +0 -62
  29. package/lib/utilities/orientation.js +0 -39
  30. package/lib/versions.js +0 -13
  31. package/lib/view/button/closeMenu.js +0 -121
  32. package/lib/view/button/zoomMenuIn.js +0 -121
  33. package/lib/view/button/zoomMenuOut.js +0 -121
  34. package/lib/view/button.js +0 -160
  35. package/lib/view/checkbox.js +0 -193
  36. package/lib/view/div/buttons.js +0 -213
  37. package/lib/view/div/checkbox/fullScreen.js +0 -155
  38. package/lib/view/div/checkbox/invertColours.js +0 -154
  39. package/lib/view/div/checkbox/nativeGestures.js +0 -154
  40. package/lib/view/div/checkbox.js +0 -220
  41. package/lib/view/div/checkboxes.js +0 -213
  42. package/lib/view/div/menu.js +0 -301
  43. package/lib/view/div/overlay.js +0 -685
  44. package/lib/view/div/preloader.js +0 -204
  45. package/lib/view/div.js +0 -227
  46. package/lib/view/element.js +0 -164
  47. package/lib/view/span.js +0 -182
  48. package/lib/view/svg/closeMenu.js +0 -138
  49. package/lib/view/svg/zoomMenuIn.js +0 -146
  50. package/lib/view/svg/zoomMenuOut.js +0 -141
  51. package/lib/view/svg.js +0 -184
  52. package/lib/view.js +0 -247
  53. package/src/client.js +0 -70
  54. package/src/constants.js +0 -16
  55. package/src/createMethods.js +0 -105
  56. package/src/customEventTypes.js +0 -17
  57. package/src/localStorage.js +0 -40
  58. package/src/migrate.js +0 -19
  59. package/src/selectors.js +0 -5
  60. package/src/state/version_1.js +0 -32
  61. package/src/state.js +0 -152
  62. package/src/styles.js +0 -19
  63. package/src/utilities/element.js +0 -66
  64. package/src/utilities/orientation.js +0 -34
  65. package/src/versions.js +0 -3
  66. package/src/view/button/closeMenu.js +0 -16
  67. package/src/view/button/zoomMenuIn.js +0 -16
  68. package/src/view/button/zoomMenuOut.js +0 -16
  69. package/src/view/button.js +0 -38
  70. package/src/view/checkbox.js +0 -68
  71. package/src/view/div/buttons.js +0 -37
  72. package/src/view/div/checkbox/fullScreen.js +0 -40
  73. package/src/view/div/checkbox/invertColours.js +0 -37
  74. package/src/view/div/checkbox/nativeGestures.js +0 -38
  75. package/src/view/div/checkbox.js +0 -45
  76. package/src/view/div/checkboxes.js +0 -38
  77. package/src/view/div/menu.js +0 -88
  78. package/src/view/div/overlay.js +0 -602
  79. package/src/view/div/preloader.js +0 -25
  80. package/src/view/div.js +0 -47
  81. package/src/view/element.js +0 -16
  82. package/src/view/span.js +0 -20
  83. package/src/view/svg/closeMenu.js +0 -19
  84. package/src/view/svg/zoomMenuIn.js +0 -20
  85. package/src/view/svg/zoomMenuOut.js +0 -19
  86. package/src/view/svg.js +0 -24
  87. package/src/view.js +0 -64
  88. package/template/client.html +0 -4
  89. package/template/default.html +0 -71
  90. package/template/loading.html +0 -17
package/README.md CHANGED
@@ -32,13 +32,31 @@ These are the commands and options:
32
32
 
33
33
  Commands:
34
34
 
35
- [help] Show this help
35
+ help Show this help
36
36
 
37
+ version Show the version
38
+
39
+ [publish] Publish the input Markdown file to the output HTML file
40
+
37
41
  Options:
38
42
 
39
43
  --help|-h Show this help
40
-
44
+
41
45
  --version|-v Show the version
46
+
47
+ --port|-p The server port, the default being 8888
48
+
49
+ --watch|-w Watch for changes to the client file and in the output directory
50
+
51
+ --server|-s Start a server to view the output file
52
+
53
+ --copy-fonts|-f Copy the fonts to a fonts folder next to the output file
54
+
55
+ --input-file-path|-i The input file path, the default being 'default.md'
56
+
57
+ --copy-client-files|-c Copy the bundled client files next to the output file
58
+
59
+ --output-directory-path|-o The output directory path. The default is the current directory.
42
60
  ```
43
61
 
44
62
  ## Contact
@@ -9,10 +9,9 @@ const { HELP_OPTION,
9
9
  VERSION_OPTION,
10
10
  QUIETLY_OPTION,
11
11
  COPY_FONTS_OPTION,
12
- COPY_CLIENT_OPTION,
13
12
  INPUT_FILE_PATH_OPTION,
14
- OUTPUT_FILE_PATH_OPTION,
15
- TEMPLATE_FILE_PATH_OPTION } = options;
13
+ COPY_CLIENT_FILES_OPTION,
14
+ OUTPUT_DIRECTORY_PATH_OPTION } = options;
16
15
 
17
16
  const h = HELP_OPTION,
18
17
  p = PORT_OPTION,
@@ -21,10 +20,9 @@ const h = HELP_OPTION,
21
20
  v = VERSION_OPTION,
22
21
  q = QUIETLY_OPTION,
23
22
  f = COPY_FONTS_OPTION,
24
- c = COPY_CLIENT_OPTION,
25
23
  i = INPUT_FILE_PATH_OPTION,
26
- o = OUTPUT_FILE_PATH_OPTION,
27
- t = TEMPLATE_FILE_PATH_OPTION;
24
+ c = COPY_CLIENT_FILES_OPTION,
25
+ o = OUTPUT_DIRECTORY_PATH_OPTION;
28
26
 
29
27
  module.exports = {
30
28
  h,
@@ -34,8 +32,7 @@ module.exports = {
34
32
  v,
35
33
  q,
36
34
  f,
37
- c,
38
35
  i,
39
- o,
40
- t
36
+ c,
37
+ o
41
38
  };
@@ -27,11 +27,11 @@ Options:
27
27
 
28
28
  --copy-fonts|-f Copy the fonts to a fonts folder next to the output file
29
29
 
30
- --copy-client|-c Copy the bundled client file next to the output file
31
-
32
30
  --input-file-path|-i The input file path, the default being 'default.md'
33
31
 
34
- --output-file-path|-o The output file path, the default being 'index.html'
32
+ --copy-client-files|-c Copy the bundled client files next to the output file
33
+
34
+ --output-directory-path|-o The output directory path. The default is the current directory.
35
35
 
36
36
  Further information:
37
37
 
@@ -12,7 +12,7 @@ const htmlOperation = require("../operation/html"),
12
12
  const { executeOperations } = require("../utilities/operation"),
13
13
  { SUCCESSFUL_PUBLISH_MESSAGE, FAILED_PUBLISH_MESSAGE } = require("../messages");
14
14
 
15
- function publishAction(port, watch, server, quietly, copyFonts, copyClient, inputFilePath, outputFilePath, templateFilePath) {
15
+ function publishAction(port, watch, server, quietly, copyFonts, inputFilePath, copyClientFiles, outputDirectoryPath) {
16
16
  const operations = [
17
17
  markdownStylesCSSOperation,
18
18
  markdownHTMLOperation,
@@ -29,10 +29,9 @@ function publishAction(port, watch, server, quietly, copyFonts, copyClient, inpu
29
29
  server,
30
30
  quietly,
31
31
  copyFonts,
32
- copyClient,
33
32
  inputFilePath,
34
- outputFilePath,
35
- templateFilePath
33
+ copyClientFiles,
34
+ outputDirectoryPath
36
35
  };
37
36
 
38
37
  executeOperations(operations, (completed) => {
@@ -6,7 +6,7 @@ const watchOperation = require("../operation/watch"),
6
6
  const { executeOperations } = require("../utilities/operation"),
7
7
  { SUCCESSFUL_SERVER_MESSAGE, FAILED_SERVER_MESSAGE } = require("../messages");
8
8
 
9
- function serverAction(port, watch, server, quietly, outputFilePath) {
9
+ function serverAction(port, watch, server, quietly, outputDirectoryPath) {
10
10
  const operations = [
11
11
  serverOperation,
12
12
  watchOperation
@@ -16,7 +16,7 @@ function serverAction(port, watch, server, quietly, outputFilePath) {
16
16
  watch,
17
17
  server,
18
18
  quietly,
19
- outputFilePath
19
+ outputDirectoryPath
20
20
  };
21
21
 
22
22
  executeOperations(operations, (completed) => {
package/bin/constants.js CHANGED
@@ -9,12 +9,10 @@ const FONT = "font",
9
9
  CLIENT_FILE_NAME = "client.js",
10
10
  LIVE_RELOAD_PATH = "/live-reload",
11
11
  CHECKMARK_FILE_NAME = "checkmark.svg",
12
- LOADING_CSS_FILE_PATH = "css/loading.css",
13
12
  CLIENT_SELECTOR_STRING = "body > div.view > div.overlay > div",
14
13
  RAW_HTML_SELECTOR_STRING = "body > div",
14
+ INDEX_TEMPLATE_FILE_PATH = "template/index.html",
15
15
  CLIENT_TEMPLATE_FILE_PATH = "template/client.html",
16
- DEFAULT_TEMPLATE_FILE_PATH = "template/default.html",
17
- LOADING_TEMPLATE_FILE_PATH = "template/loading.html",
18
16
  DEFAULT_DIVISION_IDENTIFIER = "default";
19
17
 
20
18
  module.exports = {
@@ -27,11 +25,9 @@ module.exports = {
27
25
  CLIENT_FILE_NAME,
28
26
  LIVE_RELOAD_PATH,
29
27
  CHECKMARK_FILE_NAME,
30
- LOADING_CSS_FILE_PATH,
31
28
  CLIENT_SELECTOR_STRING,
32
29
  RAW_HTML_SELECTOR_STRING,
30
+ INDEX_TEMPLATE_FILE_PATH,
33
31
  CLIENT_TEMPLATE_FILE_PATH,
34
- DEFAULT_TEMPLATE_FILE_PATH,
35
- LOADING_TEMPLATE_FILE_PATH,
36
32
  DEFAULT_DIVISION_IDENTIFIER
37
33
  };
package/bin/defaults.js CHANGED
@@ -5,10 +5,9 @@ const DEFAULT_PORT = 8888,
5
5
  DEFAULT_SERVER = false,
6
6
  DEFAULT_QUIETLY = false,
7
7
  DEFAULT_COPY_FONTS = false,
8
- DEFAULT_COPY_CLIENT = false,
9
8
  DEFAULT_INPUT_FILE_PATH = "default.md",
10
- DEFAULT_OUTPUT_FILE_PATH = "index.html",
11
- DEFAULT_TEMPLATE_FILE_PATH = null;
9
+ DEFAULT_COPY_CLIENT_FILES = false,
10
+ DEFAULT_OUTPUT_DIRECTORY_PATH = ".";
12
11
 
13
12
  module.exports = {
14
13
  DEFAULT_PORT,
@@ -16,8 +15,7 @@ module.exports = {
16
15
  DEFAULT_SERVER,
17
16
  DEFAULT_QUIETLY,
18
17
  DEFAULT_COPY_FONTS,
19
- DEFAULT_COPY_CLIENT,
20
18
  DEFAULT_INPUT_FILE_PATH,
21
- DEFAULT_OUTPUT_FILE_PATH,
22
- DEFAULT_TEMPLATE_FILE_PATH
19
+ DEFAULT_COPY_CLIENT_FILES,
20
+ DEFAULT_OUTPUT_DIRECTORY_PATH
23
21
  };
package/bin/main.js CHANGED
@@ -6,16 +6,15 @@ const helpAction = require("./action/help"),
6
6
  publishAction = require("./action/publish");
7
7
 
8
8
  const { HELP_OPTION, SERVER_OPTION, VERSION_OPTION } = require("./options"),
9
- { HELP_COMMAND, SERVER_COMMAND, VERSION_COMMAND, PUBLISH_COMMAND } = require("./commands"),
9
+ { HELP_COMMAND, SERVER_COMMAND, VERSION_COMMAND } = require("./commands"),
10
10
  { DEFAULT_PORT,
11
11
  DEFAULT_WATCH,
12
12
  DEFAULT_SERVER,
13
13
  DEFAULT_QUIETLY,
14
14
  DEFAULT_COPY_FONTS,
15
- DEFAULT_COPY_CLIENT,
16
15
  DEFAULT_INPUT_FILE_PATH,
17
- DEFAULT_OUTPUT_FILE_PATH,
18
- DEFAULT_TEMPLATE_FILE_PATH } = require("./defaults");
16
+ DEFAULT_COPY_CLIENT_FILES,
17
+ DEFAULT_OUTPUT_DIRECTORY_PATH } = require("./defaults");
19
18
 
20
19
  function main(command, argument, options) {
21
20
  const commandMissing = (command === null),
@@ -27,10 +26,9 @@ function main(command, argument, options) {
27
26
  server = DEFAULT_SERVER,
28
27
  quietly = DEFAULT_QUIETLY,
29
28
  copyFonts = DEFAULT_COPY_FONTS,
30
- copyClient = DEFAULT_COPY_CLIENT,
31
29
  inputFilePath = DEFAULT_INPUT_FILE_PATH,
32
- outputFilePath = DEFAULT_OUTPUT_FILE_PATH,
33
- templateFilePath = DEFAULT_TEMPLATE_FILE_PATH } = options;
30
+ copyClientFiles = DEFAULT_COPY_CLIENT_FILES,
31
+ outputDirectoryPath = DEFAULT_OUTPUT_DIRECTORY_PATH } = options;
34
32
 
35
33
  if (false) {
36
34
  ///
@@ -56,7 +54,7 @@ function main(command, argument, options) {
56
54
  case SERVER_COMMAND: {
57
55
  const server = true;
58
56
 
59
- serverAction(port, watch, server, quietly, outputFilePath);
57
+ serverAction(port, watch, server, quietly, outputDirectoryPath);
60
58
 
61
59
  break;
62
60
  }
@@ -68,7 +66,7 @@ function main(command, argument, options) {
68
66
  }
69
67
 
70
68
  default: {
71
- publishAction(port, watch, server, quietly, copyFonts, copyClient, inputFilePath, outputFilePath, templateFilePath);
69
+ publishAction(port, watch, server, quietly, copyFonts, inputFilePath, copyClientFiles, outputDirectoryPath);
72
70
 
73
71
  break;
74
72
  }
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- const { pathUtilities } = require("necessary"),
4
- { getFontDirectoryPath } = require("highmark-fonts");
3
+ const { copyFonts: copyFontsAsync } = require("highmark-client");
5
4
 
6
5
  const { FONT } = require("../constants"),
7
- { copyFile, readDirectory, createDirectory } = require("../utilities/fileSystem"),
8
- { fileNameFromFilePath, directoryPathFromFilePath } = require("../utilities/path");
6
+ { directoryPathFromFilePath } = require("../utilities/path");
9
7
 
10
8
  const { concatenatePaths } = pathUtilities;
11
9
 
@@ -18,27 +16,11 @@ function copyFontsOperation(proceed, abort, context) {
18
16
  return;
19
17
  }
20
18
 
21
- let fontDirectoryPath;
22
-
23
19
  const { outputFilePath } = context,
24
- outputDirectoryPath = directoryPathFromFilePath(outputFilePath);
25
-
26
- fontDirectoryPath = concatenatePaths(outputDirectoryPath, FONT);
27
-
28
- createDirectory(fontDirectoryPath);
29
-
30
- fontDirectoryPath = getFontDirectoryPath();
31
-
32
- const recursive = false,
33
- targetDirectoryPath = concatenatePaths(outputDirectoryPath, FONT);
34
-
35
- readDirectory(fontDirectoryPath, (filePath) => {
36
- const fileName = fileNameFromFilePath(filePath),
37
- sourceFilePath = filePath, ///
38
- targetFilePath = concatenatePaths(targetDirectoryPath, fileName); ///
20
+ outputDirectoryPath = directoryPathFromFilePath(outputFilePath),
21
+ fontDirectoryPath = concatenatePaths(outputDirectoryPath, FONT);
39
22
 
40
- copyFile(sourceFilePath, targetFilePath);
41
- }, recursive);
23
+ copyFontsAsync(fontDirectoryPath);
42
24
 
43
25
  proceed();
44
26
  }
@@ -1,27 +1,19 @@
1
1
  "use strict";
2
2
 
3
- const { liveReloadSnippet } = require("lively-cli"),
4
- { pathUtilities, packageUtilities } = require("necessary"),
3
+ const { pathUtilities, packageUtilities } = require("necessary"),
5
4
  { computerModernStyle: computerModernStyleCSS } = require("highmark-fonts");
6
5
 
7
- const { readFile } = require("../utilities/fileSystem"),
8
- { directoryPathFromFilePath } = require("../utilities/path"),
6
+ const { directoryPathFromFilePath } = require("../utilities/path"),
9
7
  { writeFile, parseTemplateFile } = require("../utilities/fileSystem"),
10
- { EMPTY_STRING, LOADING_CSS_FILE_PATH, CLIENT_TEMPLATE_FILE_PATH, DEFAULT_TEMPLATE_FILE_PATH, LOADING_TEMPLATE_FILE_PATH } = require("../constants");
8
+ { INDEX_TEMPLATE_FILE_PATH } = require("../constants");
11
9
 
12
10
  const { getPackagePath } = packageUtilities,
13
11
  { concatenatePaths } = pathUtilities;
14
12
 
15
13
  function htmlOperation(proceed, abort, context) {
16
14
  const { markdownHTML, outputFilePath, markdownStylesCSS } = context,
17
- clientHTML = getClientHTML(context),
18
- loadingCSS = getLoadingCSS(context),
19
- loadingHTML = getLoadingHTML(context),
20
15
  templateFilePath = getTemplateFilePath(context),
21
16
  args = {
22
- clientHTML,
23
- loadingCSS,
24
- loadingHTML,
25
17
  markdownHTML,
26
18
  markdownStylesCSS,
27
19
  computerModernStyleCSS
@@ -35,64 +27,6 @@ function htmlOperation(proceed, abort, context) {
35
27
 
36
28
  module.exports = htmlOperation;
37
29
 
38
- function getClientHTML(context) {
39
- let clientHTML;
40
-
41
- const { copyClient } = context;
42
-
43
- if (copyClient) {
44
- const packagePath = getPackagePath(),
45
- templateFilePath = concatenatePaths(packagePath, CLIENT_TEMPLATE_FILE_PATH),
46
- args = {
47
- liveReloadSnippet
48
- },
49
- content = parseTemplateFile(templateFilePath, args);
50
-
51
- clientHTML = content; ///
52
- } else {
53
- clientHTML = EMPTY_STRING;
54
- }
55
-
56
- return clientHTML;
57
- }
58
-
59
- function getLoadingCSS(context) {
60
- let loadingCSS;
61
-
62
- const { copyClient } = context;
63
-
64
- if (copyClient) {
65
- const packagePath = getPackagePath(),
66
- filePath = concatenatePaths(packagePath, LOADING_CSS_FILE_PATH),
67
- content = readFile(filePath);
68
-
69
- loadingCSS = content; ///
70
- } else {
71
- loadingCSS = EMPTY_STRING;
72
- }
73
-
74
- return loadingCSS;
75
- }
76
-
77
- function getLoadingHTML(context) {
78
- let loadingHTML;
79
-
80
- const { copyClient } = context;
81
-
82
- if (copyClient) {
83
- const packagePath = getPackagePath(),
84
- templateFilePath = concatenatePaths(packagePath, LOADING_TEMPLATE_FILE_PATH),
85
- args = {},
86
- content = parseTemplateFile(templateFilePath, args);
87
-
88
- loadingHTML = content; ///
89
- } else {
90
- loadingHTML = EMPTY_STRING;
91
- }
92
-
93
- return loadingHTML;
94
- }
95
-
96
30
  function getTemplateFilePath(context) {
97
31
  let templateFilePath;
98
32
 
@@ -100,9 +34,9 @@ function getTemplateFilePath(context) {
100
34
 
101
35
  if (templateFilePath === null) {
102
36
  const packagePath = getPackagePath(),
103
- defaultTemplateFilePath = templateFilePath = concatenatePaths(packagePath, DEFAULT_TEMPLATE_FILE_PATH);
37
+ indexTemplateFilePath = concatenatePaths(packagePath, INDEX_TEMPLATE_FILE_PATH);
104
38
 
105
- templateFilePath = defaultTemplateFilePath; ///
39
+ templateFilePath = indexTemplateFilePath; ///
106
40
  } else {
107
41
  const { inputFilePath } = context,
108
42
  inputDirectoryPath = directoryPathFromFilePath(inputFilePath);
package/bin/options.js CHANGED
@@ -7,10 +7,9 @@ const HELP_OPTION = "help",
7
7
  VERSION_OPTION = "version",
8
8
  QUIETLY_OPTION = "quietly",
9
9
  COPY_FONTS_OPTION = "copy-fonts",
10
- COPY_CLIENT_OPTION = "copy-client",
11
10
  INPUT_FILE_PATH_OPTION = "input-file-path",
12
- OUTPUT_FILE_PATH_OPTION = "output-file-path",
13
- TEMPLATE_FILE_PATH_OPTION = "output-file-path";
11
+ COPY_CLIENT_FILES_OPTION = "copy-client-files",
12
+ OUTPUT_DIRECTORY_PATH_OPTION = "output-directory-path";
14
13
 
15
14
  module.exports = {
16
15
  HELP_OPTION,
@@ -20,8 +19,7 @@ module.exports = {
20
19
  VERSION_OPTION,
21
20
  QUIETLY_OPTION,
22
21
  COPY_FONTS_OPTION,
23
- COPY_CLIENT_OPTION,
24
22
  INPUT_FILE_PATH_OPTION,
25
- OUTPUT_FILE_PATH_OPTION,
26
- TEMPLATE_FILE_PATH_OPTION
23
+ COPY_CLIENT_FILES_OPTION,
24
+ OUTPUT_DIRECTORY_PATH_OPTION
27
25
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "highmark-cli",
3
3
  "author": "James Smith",
4
- "version": "0.0.173",
4
+ "version": "0.0.175",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/highmark-cli",
7
7
  "description": "Extensible, styleable Markdown.",
@@ -12,37 +12,13 @@
12
12
  "dependencies": {
13
13
  "argumentative": "^2.0.28",
14
14
  "express": "^4.19.2",
15
+ "highmark-client": "^0.0.8",
15
16
  "highmark-fonts": "^1.0.43",
16
17
  "highmark-markdown": "^0.0.245",
17
18
  "lively-cli": "^2.0.59",
18
19
  "necessary": "^13.6.6",
19
20
  "occam-entities": "^1.0.95"
20
21
  },
21
- "devDependencies": {
22
- "@swc/core": "^1.5.6",
23
- "easy": "^17.1.3",
24
- "easy-layout": "^6.0.153",
25
- "easy-mobile": "^1.0.20",
26
- "easy-with-style": "^3.0.356",
27
- "esbuild": "^0.9.2",
28
- "fragmented": "^3.1.5",
29
- "juxtapose": "^4.0.85",
30
- "sufficient": "^2.0.56",
31
- "watchful-cli": "^1.7.44"
32
- },
33
- "scripts": {
34
- "start": "node ./bin/main.js",
35
- "clean": "rm -rf ./lib",
36
- "watchful": "watchful -m --transpiler=swc --bundler=esbuild --source-directory=./src --lib-directory=./lib --entry-file=client.js --bundle-file=./client.js --wait=100",
37
- "batch": "npm run watchful batch --",
38
- "batch-debug": "npm run watchful batch -- --debug",
39
- "incremental": "npm run watchful incremental --",
40
- "incremental-debug": "npm run watchful incremental -- --debug",
41
- "build": "npm run clean && npm run batch",
42
- "build-debug": "npm run clean && npm run batch-debug",
43
- "watch": "npm run clean && npm run batch && npm run incremental",
44
- "watch-debug": "npm run clean && npm run batch-debug && npm run incremental-debug"
45
- },
46
22
  "bin": {
47
23
  "highmark": "./highmark.js"
48
24
  }
package/.swcrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "jsc": {
3
- "parser": {
4
- "syntax": "ecmascript",
5
- "jsx": true
6
- }
7
- },
8
- "module": {
9
- "type": "commonjs"
10
- }
11
- }
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- const { pathUtilities, packageUtilities } = require("necessary");
4
-
5
- const { copyFile } = require("../utilities/fileSystem"),
6
- { CLIENT_FILE_NAME } = require("../constants"),
7
- { directoryPathFromFilePath } = require("../utilities/path");
8
-
9
- const { getPackagePath } = packageUtilities,
10
- { concatenatePaths } = pathUtilities;
11
-
12
- function copyClientFile(context) {
13
- const clientTargetFilePath = getClientTargetFilePath(context),
14
- clientSSourceFilePath = getClientSourceFilePath(context);
15
-
16
- copyFile(clientSSourceFilePath, clientTargetFilePath);
17
- }
18
-
19
- function getClientTargetFilePath(context) {
20
- const { outputFilePath } = context,
21
- outputDirectoryPath = directoryPathFromFilePath(outputFilePath),
22
- clientTargetFilePath = concatenatePaths(outputDirectoryPath, CLIENT_FILE_NAME);
23
-
24
- return clientTargetFilePath;
25
- }
26
-
27
- function getClientSourceFilePath(context) {
28
- const packagePath = getPackagePath(),
29
- clientSSourceFilePath = concatenatePaths(packagePath, CLIENT_FILE_NAME);
30
-
31
- return clientSSourceFilePath;
32
- }
33
-
34
- module.exports = {
35
- copyClientFile,
36
- getClientTargetFilePath,
37
- getClientSourceFilePath
38
- };
package/checkmark.svg DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-
3
- <svg width="20mm"
4
- height="20mm"
5
- viewBox="0 0 20 20"
6
- version="1.1"
7
- xmlns="http://www.w3.org/2000/svg"
8
- >
9
- <g transform="matrix(0.70580178,0,0,0.69424702,3.0000007,2.999987)">
10
- <path style="fill:#ffffff" d="M 6.0799812,16.1216 Q 7.3454978,13.232921 8.7898374,10.605598 10.247933,7.9645203 11.788561,5.7361107 13.604303,3.1225438 14.649729,1.9670722 15.323754,1.224269 15.915246,0.74282245 16.259136,0.46771016 17.001939,0.33015401 18.803925,1.9250438e-5 19.519217,1.9250438e-5 q 0.316379,0 0.316379,0.220089839562 0,0.20633422 -0.316379,0.49520213 -2.751123,2.44849948 -5.777358,7.00160798 -3.01248,4.5531088 -5.0895778,9.6701968 -0.78407,1.912031 -1.1004492,2.352211 -0.3026235,0.426424 -1.925786,0.426424 -1.0591824,0 -1.3342947,-0.206335 Q 4.0303946,19.753082 3.3288583,18.652633 2.1183642,16.823136 0.72904706,15.351285 -5.2992254e-7,14.580971 -5.2992254e-7,14.168303 q 0,-0.577736 0.81158127992254,-1.127961 0.81158125,-0.56398 1.33429465,-0.56398 0.7290476,0 1.7469631,0.825337 1.0316711,0.811581 2.1871427,2.819901 z" />
11
- </g>
12
- </svg>