watchful-cli 1.7.47 → 1.7.49
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/action/batch.js +2 -2
- package/bin/action/incremental.js +2 -2
- package/bin/main.js +25 -5
- package/package.json +1 -1
package/bin/action/batch.js
CHANGED
|
@@ -10,7 +10,7 @@ const action = require("../action"),
|
|
|
10
10
|
|
|
11
11
|
const { BATCH_BUILD_FAILED_MESSAGE } = require("../messages");
|
|
12
12
|
|
|
13
|
-
function batchAction(wait, node, debug, release, bundler, quietly, metrics,
|
|
13
|
+
function batchAction(wait, node, debug, release, bundler, quietly, metrics, processes, entryFile, transpiler, bundleFile, libDirectory, tempDirectory, sourceDirectory) {
|
|
14
14
|
const operations = [
|
|
15
15
|
initialiseOperation,
|
|
16
16
|
createTranspileFileFunctionOperation,
|
|
@@ -27,8 +27,8 @@ function batchAction(wait, node, debug, release, bundler, quietly, metrics, entr
|
|
|
27
27
|
bundler,
|
|
28
28
|
quietly,
|
|
29
29
|
metrics,
|
|
30
|
-
entryFile,
|
|
31
30
|
processes,
|
|
31
|
+
entryFile,
|
|
32
32
|
transpiler,
|
|
33
33
|
bundleFile,
|
|
34
34
|
libDirectory,
|
|
@@ -9,7 +9,7 @@ const watch = require("../watch"),
|
|
|
9
9
|
|
|
10
10
|
const { INCREMENTAL_BUILD_FAILED_MESSAGE } = require("../messages");
|
|
11
11
|
|
|
12
|
-
function incrementalAction(wait, node, debug, release, bundler, quietly, metrics,
|
|
12
|
+
function incrementalAction(wait, node, debug, release, bundler, quietly, metrics, processes, entryFile, transpiler, bundleFile, libDirectory, tempDirectory, sourceDirectory) {
|
|
13
13
|
const operations = [
|
|
14
14
|
initialiseOperation,
|
|
15
15
|
createTranspileFileFunctionOperation,
|
|
@@ -24,8 +24,8 @@ function incrementalAction(wait, node, debug, release, bundler, quietly, metrics
|
|
|
24
24
|
bundler,
|
|
25
25
|
quietly,
|
|
26
26
|
metrics,
|
|
27
|
-
entryFile,
|
|
28
27
|
processes,
|
|
28
|
+
entryFile,
|
|
29
29
|
transpiler,
|
|
30
30
|
bundleFile,
|
|
31
31
|
libDirectory,
|
package/bin/main.js
CHANGED
|
@@ -34,8 +34,8 @@ function main(command, argument, options) {
|
|
|
34
34
|
version = DEFAULT_VERSION,
|
|
35
35
|
quietly = DEFAULT_QUIETLY,
|
|
36
36
|
metrics = DEFAULT_METRICS,
|
|
37
|
-
entryFile = DEFAULT_ENTRY_FILE,
|
|
38
37
|
processes = DEFAULT_PROCESSES,
|
|
38
|
+
entryFile = DEFAULT_ENTRY_FILE,
|
|
39
39
|
transpiler = DEFAULT_TRANSPILER,
|
|
40
40
|
bundleFile = DEFAULT_BUNDLE_FILE,
|
|
41
41
|
libDirectory = DEFAULT_LIB_DIRECTORY,
|
|
@@ -53,10 +53,30 @@ function main(command, argument, options) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
switch (command) {
|
|
56
|
-
case HELP_COMMAND:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
case HELP_COMMAND: {
|
|
57
|
+
helpAction();
|
|
58
|
+
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
case BATCH_COMMAND: {
|
|
63
|
+
batchAction(wait, node, debug, release, bundler, quietly, metrics, processes, entryFile, transpiler, bundleFile, libDirectory, tempDirectory, sourceDirectory);
|
|
64
|
+
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
case VERSION_COMMAND: {
|
|
69
|
+
versionAction();
|
|
70
|
+
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
case INCREMENTAL_COMMAND: {
|
|
75
|
+
incrementalAction(wait, node, debug, release, bundler, quietly, metrics, processes, entryFile, transpiler, bundleFile, libDirectory, tempDirectory, sourceDirectory);
|
|
76
|
+
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
|
|
60
80
|
}
|
|
61
81
|
}
|
|
62
82
|
|
package/package.json
CHANGED