apify-cli 0.16.2-beta.1 → 0.16.2-beta.3
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/npm-shrinkwrap.json +39 -0
- package/package.json +2 -1
- package/src/bin/run +1 -0
- package/src/commands/push.js +14 -5
package/npm-shrinkwrap.json
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"express": "^4.18.2",
|
|
34
34
|
"globby": "^11.1.0",
|
|
35
35
|
"inquirer": "^7.3.3",
|
|
36
|
+
"is-ci": "^3.0.1",
|
|
36
37
|
"is-online": "^10.0.0",
|
|
37
38
|
"istextorbinary": "^6.0.0",
|
|
38
39
|
"load-json-file": "^6.2.0",
|
|
@@ -1834,6 +1835,20 @@
|
|
|
1834
1835
|
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
|
|
1835
1836
|
"dev": true
|
|
1836
1837
|
},
|
|
1838
|
+
"node_modules/ci-info": {
|
|
1839
|
+
"version": "3.8.0",
|
|
1840
|
+
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz",
|
|
1841
|
+
"integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==",
|
|
1842
|
+
"funding": [
|
|
1843
|
+
{
|
|
1844
|
+
"type": "github",
|
|
1845
|
+
"url": "https://github.com/sponsors/sibiraj-s"
|
|
1846
|
+
}
|
|
1847
|
+
],
|
|
1848
|
+
"engines": {
|
|
1849
|
+
"node": ">=8"
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1837
1852
|
"node_modules/clean-stack": {
|
|
1838
1853
|
"version": "3.0.1",
|
|
1839
1854
|
"resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz",
|
|
@@ -4498,6 +4513,17 @@
|
|
|
4498
4513
|
"url": "https://github.com/sponsors/ljharb"
|
|
4499
4514
|
}
|
|
4500
4515
|
},
|
|
4516
|
+
"node_modules/is-ci": {
|
|
4517
|
+
"version": "3.0.1",
|
|
4518
|
+
"resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",
|
|
4519
|
+
"integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",
|
|
4520
|
+
"dependencies": {
|
|
4521
|
+
"ci-info": "^3.2.0"
|
|
4522
|
+
},
|
|
4523
|
+
"bin": {
|
|
4524
|
+
"is-ci": "bin.js"
|
|
4525
|
+
}
|
|
4526
|
+
},
|
|
4501
4527
|
"node_modules/is-core-module": {
|
|
4502
4528
|
"version": "2.11.0",
|
|
4503
4529
|
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz",
|
|
@@ -9263,6 +9289,11 @@
|
|
|
9263
9289
|
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
|
|
9264
9290
|
"dev": true
|
|
9265
9291
|
},
|
|
9292
|
+
"ci-info": {
|
|
9293
|
+
"version": "3.8.0",
|
|
9294
|
+
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz",
|
|
9295
|
+
"integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw=="
|
|
9296
|
+
},
|
|
9266
9297
|
"clean-stack": {
|
|
9267
9298
|
"version": "3.0.1",
|
|
9268
9299
|
"resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz",
|
|
@@ -11252,6 +11283,14 @@
|
|
|
11252
11283
|
"integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
|
|
11253
11284
|
"dev": true
|
|
11254
11285
|
},
|
|
11286
|
+
"is-ci": {
|
|
11287
|
+
"version": "3.0.1",
|
|
11288
|
+
"resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",
|
|
11289
|
+
"integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",
|
|
11290
|
+
"requires": {
|
|
11291
|
+
"ci-info": "^3.2.0"
|
|
11292
|
+
}
|
|
11293
|
+
},
|
|
11255
11294
|
"is-core-module": {
|
|
11256
11295
|
"version": "2.11.0",
|
|
11257
11296
|
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-cli",
|
|
3
|
-
"version": "0.16.2-beta.
|
|
3
|
+
"version": "0.16.2-beta.3",
|
|
4
4
|
"description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"express": "^4.18.2",
|
|
77
77
|
"globby": "^11.1.0",
|
|
78
78
|
"inquirer": "^7.3.3",
|
|
79
|
+
"is-ci": "^3.0.1",
|
|
79
80
|
"is-online": "^10.0.0",
|
|
80
81
|
"istextorbinary": "^6.0.0",
|
|
81
82
|
"load-json-file": "^6.2.0",
|
package/src/bin/run
CHANGED
package/src/commands/push.js
CHANGED
|
@@ -5,6 +5,7 @@ const { ACT_JOB_STATUSES, ACT_SOURCE_TYPES,
|
|
|
5
5
|
MAX_MULTIFILE_BYTES } = require('@apify/consts');
|
|
6
6
|
const open = require('open');
|
|
7
7
|
const inquirer = require('inquirer');
|
|
8
|
+
const isCI = require('is-ci');
|
|
8
9
|
const { ApifyCommand } = require('../lib/apify_command');
|
|
9
10
|
const { createActZip, getLoggedClientOrThrow,
|
|
10
11
|
outputJobLog, getLocalUserInfo, getActorLocalFilePaths,
|
|
@@ -158,12 +159,15 @@ class PushCommand extends ApifyCommand {
|
|
|
158
159
|
|
|
159
160
|
outputs.link('Actor build detail', `https://console.apify.com${redirectUrlPart}/actors/${build.actId}#/builds/${build.buildNumber}`);
|
|
160
161
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
// Disable open browser on CI, or if user passed --no-prompt flag
|
|
163
|
+
if (isCI || !flags.noPrompt) {
|
|
164
|
+
const shouldOpenBrowser = await inquirer.prompt([
|
|
165
|
+
{ type: 'confirm', name: 'continue', message: 'Do you want to open the actor detail in your browser?', default: true },
|
|
166
|
+
]);
|
|
164
167
|
|
|
165
|
-
|
|
166
|
-
|
|
168
|
+
if (shouldOpenBrowser.continue) {
|
|
169
|
+
open(`https://console.apify.com${redirectUrlPart}/actors/${build.actId}`);
|
|
170
|
+
}
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
if (build.status === ACT_JOB_STATUSES.SUCCEEDED) {
|
|
@@ -209,6 +213,11 @@ PushCommand.flags = {
|
|
|
209
213
|
description: 'Seconds for waiting to build to finish, if no value passed, it waits forever.',
|
|
210
214
|
required: false,
|
|
211
215
|
}),
|
|
216
|
+
'no-prompt': flagsHelper.boolean({
|
|
217
|
+
description: 'Do not prompt for opening the actor details in a browser. This will also not open the browser automatically.',
|
|
218
|
+
default: false,
|
|
219
|
+
required: false,
|
|
220
|
+
}),
|
|
212
221
|
};
|
|
213
222
|
|
|
214
223
|
PushCommand.args = [
|