apify-cli 0.15.1-beta.2 → 0.15.1
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 +105 -105
- package/src/commands/create.js +5 -1
package/package.json
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
2
|
+
"name": "apify-cli",
|
|
3
|
+
"version": "0.15.1",
|
|
4
|
+
"description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha --timeout 180000 --recursive",
|
|
8
|
+
"test-python": "mocha --timeout 180000 --recursive --grep '\\[python\\]'",
|
|
9
|
+
"lint": "eslint src test",
|
|
10
|
+
"lint:fix": "eslint src test --fix",
|
|
11
|
+
"commands-md": "npm run manifest && oclif-dev readme",
|
|
12
|
+
"prepare-release": "npm run commands-md && npm run prod-shrinkwrap",
|
|
13
|
+
"prod-shrinkwrap": "rm -rf node_modules && npm install --production && npm shrinkwrap",
|
|
14
|
+
"manifest": "rm -f oclif.manifest.json && oclif-dev manifest",
|
|
15
|
+
"postinstall": "node \"./src/bin/run\" check-version"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src",
|
|
19
|
+
"oclif.manifest.json",
|
|
20
|
+
"index.js",
|
|
21
|
+
"package.json"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"apify": "./src/bin/run"
|
|
25
|
+
},
|
|
26
|
+
"contributors": [
|
|
27
|
+
"Jakub Drobník <jakub.drobnik@apify.com>",
|
|
28
|
+
"Jan Curn <jan@apify.com>"
|
|
29
|
+
],
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/apify/apify-cli.git"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"apify",
|
|
36
|
+
"client",
|
|
37
|
+
"node",
|
|
38
|
+
"command",
|
|
39
|
+
"line",
|
|
40
|
+
"bash"
|
|
41
|
+
],
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "Apify",
|
|
44
|
+
"email": "support@apify.com",
|
|
45
|
+
"url": "https://www.apify.com"
|
|
46
|
+
},
|
|
47
|
+
"license": "Apache-2.0",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/apify/apify-cli/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/apify/apify-cli#readme",
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=16.0.0"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@apify/actor-templates": "^0.1.3",
|
|
57
|
+
"@apify/consts": "^2.7.0",
|
|
58
|
+
"@apify/input_schema": "^3.3.0",
|
|
59
|
+
"@apify/utilities": "^2.2.3",
|
|
60
|
+
"@crawlee/memory-storage": "^3.0.3",
|
|
61
|
+
"@oclif/command": "^1.8.16",
|
|
62
|
+
"@oclif/config": "^1.18.3",
|
|
63
|
+
"@oclif/errors": "^1.3.5",
|
|
64
|
+
"@oclif/plugin-commands": "^2.1.0",
|
|
65
|
+
"@oclif/plugin-help": "^5.1.12",
|
|
66
|
+
"ajv": "^8.10.0",
|
|
67
|
+
"apify-client": "^2.2.0",
|
|
68
|
+
"archiver-promise": "^1.0.0",
|
|
69
|
+
"axios": "^0.21.1",
|
|
70
|
+
"chalk": "^4.1.2",
|
|
71
|
+
"computer-name": "^0.1.0",
|
|
72
|
+
"cors": "^2.8.5",
|
|
73
|
+
"detect-indent": "^6.1.0",
|
|
74
|
+
"express": "^4.18.2",
|
|
75
|
+
"globby": "^11.1.0",
|
|
76
|
+
"inquirer": "^7.3.3",
|
|
77
|
+
"is-online": "^10.0.0",
|
|
78
|
+
"istextorbinary": "^6.0.0",
|
|
79
|
+
"load-json-file": "^6.2.0",
|
|
80
|
+
"mime": "^2.6.0",
|
|
81
|
+
"open": "^8.4.0",
|
|
82
|
+
"ow": "^0.28.1",
|
|
83
|
+
"rimraf": "^3.0.2",
|
|
84
|
+
"semver": "^7.3.5",
|
|
85
|
+
"underscore": "^1.13.2",
|
|
86
|
+
"unzipper": "^0.10.11",
|
|
87
|
+
"write-json-file": "^4.3.0"
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@apify/eslint-config": "^0.2.3",
|
|
91
|
+
"@oclif/dev-cli": "^1.26.0",
|
|
92
|
+
"@oclif/test": "^2.1.0",
|
|
93
|
+
"chai": "^4.3.4",
|
|
94
|
+
"chai-match": "^1.1.1",
|
|
95
|
+
"eslint": "^8.11.0",
|
|
96
|
+
"mocha": "^10.0.0",
|
|
97
|
+
"sinon": "^9.2.4"
|
|
98
|
+
},
|
|
99
|
+
"oclif": {
|
|
100
|
+
"bin": "apify",
|
|
101
|
+
"commands": "./src/commands",
|
|
102
|
+
"hooks": {
|
|
103
|
+
"init": [
|
|
104
|
+
"./src/hooks/init"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
106
107
|
}
|
|
107
|
-
}
|
|
108
108
|
}
|
package/src/commands/create.js
CHANGED
|
@@ -46,8 +46,9 @@ class CreateCommand extends ApifyCommand {
|
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
actorName = await ensureValidActorName(actorName);
|
|
49
|
+
let messages = null;
|
|
49
50
|
if (manifestPromise) {
|
|
50
|
-
({ archiveUrl: templateArchiveUrl, skipOptionalDeps } = await getTemplateDefinition(templateName, manifestPromise));
|
|
51
|
+
({ archiveUrl: templateArchiveUrl, skipOptionalDeps, messages } = await getTemplateDefinition(templateName, manifestPromise));
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
const cwd = process.cwd();
|
|
@@ -143,6 +144,9 @@ class CreateCommand extends ApifyCommand {
|
|
|
143
144
|
|
|
144
145
|
if (dependenciesInstalled) {
|
|
145
146
|
outputs.success(`Actor '${actorName}' was created. To run it, run "cd ${actorName}" and "apify run".`);
|
|
147
|
+
if (messages?.postCreate) {
|
|
148
|
+
outputs.info(messages?.postCreate);
|
|
149
|
+
}
|
|
146
150
|
} else {
|
|
147
151
|
outputs.success(`Actor '${actorName}' was created. Please install its dependencies to be able to run it using "apify run".`);
|
|
148
152
|
}
|