watchful-cli 1.7.24 → 1.7.26
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/README.md +4 -4
- package/bin/utilities/fileSystem.js +4 -3
- package/bin/utilities/packageJSON.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,20 +70,20 @@ Watchful has the following commands and options:
|
|
|
70
70
|
|
|
71
71
|
Commands:
|
|
72
72
|
|
|
73
|
-
version Show theh version
|
|
74
|
-
|
|
75
73
|
help Show this help
|
|
76
74
|
|
|
75
|
+
version Show theh version
|
|
76
|
+
|
|
77
77
|
batch Batch build
|
|
78
78
|
|
|
79
79
|
[incremental] Watch and build incrementally
|
|
80
80
|
|
|
81
81
|
Options:
|
|
82
82
|
|
|
83
|
-
--version|-v Show the version
|
|
84
|
-
|
|
85
83
|
--help|-h Show this help
|
|
86
84
|
|
|
85
|
+
--version|-v Show the version
|
|
86
|
+
|
|
87
87
|
--wait|-w Wait before building incrementally
|
|
88
88
|
|
|
89
89
|
--node|-n Bundle for Node rather than the browser
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
|
|
5
|
-
const { characters, fileSystemUtilities } = require("necessary");
|
|
5
|
+
const { characters, pathUtilities, fileSystemUtilities } = require("necessary");
|
|
6
6
|
|
|
7
7
|
const { W_PLUS } = require("../constants"),
|
|
8
8
|
{ pathWithoutBottommostNameFromPath } = require("../utilities/path");
|
|
9
9
|
|
|
10
|
-
const {
|
|
10
|
+
const { concatenatePaths } = pathUtilities,
|
|
11
|
+
{ openSync, writeSync, rmdirSync, unlinkSync } = fs,
|
|
11
12
|
{ readDirectory, isEntryDirectory, createDirectory } = fileSystemUtilities;
|
|
12
13
|
|
|
13
14
|
const { PERIOD_CHARACTER } = characters;
|
|
@@ -53,7 +54,7 @@ function cleanDirectory(directoryPath) {
|
|
|
53
54
|
const entryPaths = readDirectory(directoryPath);
|
|
54
55
|
|
|
55
56
|
entryPaths.forEach((entryPath) => {
|
|
56
|
-
entryPath =
|
|
57
|
+
entryPath = concatenatePaths(directoryPath, entryPath); ///
|
|
57
58
|
|
|
58
59
|
const entryDirectory = isEntryDirectory(entryPath);
|
|
59
60
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
const { arrayUtilities } = require("necessary");
|
|
3
|
+
const { pathUtilities, arrayUtilities } = require("necessary");
|
|
4
4
|
|
|
5
5
|
const { readFile } = require("../utilities/fileSystem"),
|
|
6
6
|
{ PACKAGE_JSON } = require("../constants");
|
|
7
7
|
|
|
8
|
-
const { second } = arrayUtilities
|
|
8
|
+
const { second } = arrayUtilities,
|
|
9
|
+
{ concatenatePaths } = pathUtilities;
|
|
9
10
|
|
|
10
11
|
const utilitiesDirectoryName = __dirname, ///
|
|
11
12
|
matches = utilitiesDirectoryName.match(/^(.+)\/bin\/utilities$/),
|
|
12
13
|
secondMatch = second(matches),
|
|
13
14
|
applicationDirectoryName = secondMatch, ///
|
|
14
|
-
packageJSONFilePath =
|
|
15
|
+
packageJSONFilePath = concatenatePaths(applicationDirectoryName, PACKAGE_JSON),
|
|
15
16
|
packageJSONFile = readFile(packageJSONFilePath),
|
|
16
17
|
packageJSON = JSON.parse(packageJSONFile),
|
|
17
18
|
{ version } = packageJSON,
|
package/package.json
CHANGED