@nexrender/cli 1.32.3 → 1.36.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 +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexrender/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"author": "inlife",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@nexrender/core": "^1.
|
|
19
|
+
"@nexrender/core": "^1.36.0",
|
|
20
20
|
"arg": "^4.1.0",
|
|
21
21
|
"chalk": "^2.4.2"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "d0b8dcad1158afe1aba5f48b07614b2359cc3b72"
|
|
27
27
|
}
|
package/src/bin.js
CHANGED
|
@@ -26,6 +26,7 @@ const args = arg({
|
|
|
26
26
|
'--force-patch': Boolean,
|
|
27
27
|
'--debug': Boolean,
|
|
28
28
|
'--multi-frames': Boolean,
|
|
29
|
+
'--multi-frames-cpu': Number,
|
|
29
30
|
'--reuse': Boolean,
|
|
30
31
|
|
|
31
32
|
'--max-memory-percent': Number,
|
|
@@ -44,8 +45,8 @@ const args = arg({
|
|
|
44
45
|
'--ae': '--aerender-parameter'
|
|
45
46
|
});
|
|
46
47
|
|
|
47
|
-
let serverHost = 'http://localhost:3000';
|
|
48
|
-
let serverSecret = '';
|
|
48
|
+
// let serverHost = 'http://localhost:3000';
|
|
49
|
+
// let serverSecret = '';
|
|
49
50
|
|
|
50
51
|
if (args['--help']) {
|
|
51
52
|
console.error(chalk`
|
|
@@ -159,6 +160,7 @@ opt('skipRender', '--skip-render');
|
|
|
159
160
|
opt('forceCommandLinePatch','--force-patch');
|
|
160
161
|
opt('debug', '--debug');
|
|
161
162
|
opt('multiFrames', '--multi-frames');
|
|
163
|
+
opt('multiFramesCPU', '--multi-frames-cpu');
|
|
162
164
|
opt('reuse', '--reuse');
|
|
163
165
|
opt('stopOnError', '--stop-on-error');
|
|
164
166
|
opt('maxMemoryPercent', '--max-memory-percent');
|
|
@@ -220,7 +222,7 @@ settings = init(Object.assign(settings, {
|
|
|
220
222
|
}))
|
|
221
223
|
|
|
222
224
|
render(parsedJob, settings)
|
|
223
|
-
.then(
|
|
225
|
+
.then(() => {
|
|
224
226
|
console.log('> job rendering successfully finished')
|
|
225
227
|
})
|
|
226
228
|
.catch(err => {
|