@nexrender/cli 1.41.1 → 1.42.0
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/package.json +3 -3
- package/src/bin.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexrender/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.0",
|
|
4
4
|
"author": "inlife",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@nexrender/core": "^1.
|
|
19
|
+
"@nexrender/core": "^1.42.0",
|
|
20
20
|
"arg": "^4.1.0",
|
|
21
21
|
"chalk": "^2.4.2",
|
|
22
22
|
"rimraf": "^3.0.2"
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "8f7fb490c786fa1532e0f6608b2c18d1b690affb"
|
|
28
28
|
}
|
package/src/bin.js
CHANGED
|
@@ -17,6 +17,8 @@ const args = arg({
|
|
|
17
17
|
'--binary': String,
|
|
18
18
|
'--workpath': String,
|
|
19
19
|
'--wsl-map': String,
|
|
20
|
+
'--cache': Boolean,
|
|
21
|
+
'--cache-path': String,
|
|
20
22
|
|
|
21
23
|
'--stop-on-error': Boolean,
|
|
22
24
|
|
|
@@ -83,9 +85,16 @@ if (args['--help']) {
|
|
|
83
85
|
|
|
84
86
|
-m, --wsl-map drive letter of your WSL mapping in Windows
|
|
85
87
|
|
|
88
|
+
|
|
86
89
|
{bold ADVANCED OPTIONS}
|
|
87
90
|
|
|
88
91
|
|
|
92
|
+
--cache Boolean flag that enables default HTTP caching of assets.
|
|
93
|
+
Will save cache to [workpath]/http-cache unless "--cache-path is used"
|
|
94
|
+
|
|
95
|
+
--cache-path String value that sets the HTTP cache path to the provided folder path.
|
|
96
|
+
"--cache" will default to true if this is used.
|
|
97
|
+
|
|
89
98
|
--stop-on-error forces worker to stop if processing/rendering error occures,
|
|
90
99
|
otherwise worker will report an error, and continue working
|
|
91
100
|
|
|
@@ -168,6 +177,12 @@ opt('imageCachePercent', '--image-cache-percent');
|
|
|
168
177
|
opt('wslMap', '--wsl-map');
|
|
169
178
|
opt('aeParams', '--aerender-parameter');
|
|
170
179
|
|
|
180
|
+
if(args['--cache-path']){
|
|
181
|
+
opt('cache', '--cache-path');
|
|
182
|
+
}else if(args['--cache']){
|
|
183
|
+
opt('cache', '--cache');
|
|
184
|
+
}
|
|
185
|
+
|
|
171
186
|
/* debug implies verbose */
|
|
172
187
|
settings.verbose = settings.debug;
|
|
173
188
|
|