@nexrender/cli 1.43.2 → 1.44.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/bin.js +15 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexrender/cli",
3
- "version": "1.43.2",
3
+ "version": "1.44.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.43.2",
19
+ "@nexrender/core": "^1.44.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": "eb7ee19e97b365296835193daba676a7da1e2a38"
27
+ "gitHead": "10534b5ae73c920a6ea3c5cc7c3d6ac542112319"
28
28
  }
package/src/bin.js CHANGED
@@ -4,7 +4,7 @@ const fs = require('fs')
4
4
  const arg = require('arg')
5
5
  const chalk = require('chalk')
6
6
  const {version} = require('../package.json')
7
- const {init, render} = require('@nexrender/core')
7
+ const nexrender = require('@nexrender/core')
8
8
  const rimraf = require('rimraf')
9
9
 
10
10
  const args = arg({
@@ -25,6 +25,7 @@ const args = arg({
25
25
  '--skip-cleanup': Boolean,
26
26
  '--skip-render': Boolean,
27
27
  '--no-license': Boolean,
28
+ '--no-analytics': Boolean,
28
29
  '--force-patch': Boolean,
29
30
  '--debug': Boolean,
30
31
  '--multi-frames': Boolean,
@@ -101,6 +102,9 @@ if (args['--help']) {
101
102
  --no-license prevents creation of the ae_render_only_node.txt file (enabled by default),
102
103
  which allows free usage of trial version of Adobe After Effects
103
104
 
105
+ --no-analytics prevents collection of fully anonymous analytics by nexrender (enabled by default),
106
+ this data is used to improve nexrender and its features, read on what is collected in the readme
107
+
104
108
  --force-patch forces commandLineRenderer.jsx patch (re)installation
105
109
 
106
110
  --debug enables command dump for aerender, and other debugging stuff
@@ -164,6 +168,7 @@ if (settings.hasOwnProperty('ae-params')) {
164
168
  opt('binary', '--binary');
165
169
  opt('workpath', '--workpath');
166
170
  opt('no-license', '--no-license');
171
+ opt('no-analytics', '--no-analytics');
167
172
  opt('skipCleanup', '--skip-cleanup');
168
173
  opt('skipRender', '--skip-render');
169
174
  opt('forceCommandLinePatch','--force-patch');
@@ -191,6 +196,11 @@ if (settings['no-license']) {
191
196
  delete settings['no-license'];
192
197
  }
193
198
 
199
+ if (settings['no-analytics']) {
200
+ settings.noAnalytics = true;
201
+ delete settings['no-analytics'];
202
+ }
203
+
194
204
  if (args['--cleanup']) {
195
205
  settings = init(Object.assign(settings, {
196
206
  logger: console
@@ -229,11 +239,12 @@ try {
229
239
  process.exit(1);
230
240
  }
231
241
 
232
- settings = init(Object.assign(settings, {
233
- logger: console
242
+ settings = nexrender.init(Object.assign(settings, {
243
+ process: process.pkg && process.pkg.entrypoint ? 'nexrender-cli-bin' : 'nexrender-cli',
244
+ logger: console,
234
245
  }))
235
246
 
236
- render(parsedJob, settings)
247
+ nexrender.render(parsedJob, settings)
237
248
  .then(() => {
238
249
  console.log('> job rendering successfully finished')
239
250
  })