apify-cli 1.0.0-beta.38 → 1.0.0-beta.39
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/README.md +23 -19
- package/dist/.tsbuildinfo +1 -1
- package/dist/commands/run.d.ts +1 -0
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +66 -12
- package/dist/commands/run.js.map +1 -1
- package/oclif.manifest.json +9 -1
- package/package.json +1 -1
package/dist/commands/run.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class RunCommand extends ApifyCommand<typeof RunCommand> {
|
|
|
6
6
|
'purge-queue': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
7
7
|
'purge-dataset': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
8
8
|
'purge-key-value-store': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
9
|
+
entrypoint: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
9
10
|
};
|
|
10
11
|
run(): Promise<void>;
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAsBvD,qBAAa,UAAW,SAAQ,YAAY,CAAC,OAAO,UAAU,CAAC;IAC3D,OAAgB,WAAW,SAOwD;IAEnF,OAAgB,KAAK;;;;;;MA6BnB;IAEI,GAAG;CA4LZ"}
|
package/dist/commands/run.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { existsSync, renameSync } from 'node:fs';
|
|
2
|
+
import { stat } from 'node:fs/promises';
|
|
2
3
|
import { join } from 'node:path';
|
|
3
4
|
import process from 'node:process';
|
|
4
5
|
import { APIFY_ENV_VARS } from '@apify/consts';
|
|
@@ -25,10 +26,31 @@ export class RunCommand extends ApifyCommand {
|
|
|
25
26
|
const packageJsonExists = existsSync(packageJsonPath);
|
|
26
27
|
const mainPyExists = existsSync(mainPyPath);
|
|
27
28
|
const isScrapyProject = projectType === PROJECT_TYPES.SCRAPY;
|
|
29
|
+
const { language, languageVersion } = detectLocalActorLanguage(cwd);
|
|
28
30
|
if (!packageJsonExists && !mainPyExists && !isScrapyProject) {
|
|
29
31
|
throw new Error('Actor is of an unknown format.'
|
|
30
32
|
+ ` Make sure either the 'package.json' file or 'src/__main__.py' file exists or you are in a migrated Scrapy project.`);
|
|
31
33
|
}
|
|
34
|
+
// Defaults (for node, the start script, for python, the src module)
|
|
35
|
+
let runType = language === LANGUAGE.NODEJS ? RunType.Script : RunType.Module;
|
|
36
|
+
let entrypoint = language === LANGUAGE.NODEJS ? 'start' : 'src';
|
|
37
|
+
if (this.flags.entrypoint) {
|
|
38
|
+
entrypoint = this.flags.entrypoint;
|
|
39
|
+
const entrypointPath = join(cwd, this.flags.entrypoint);
|
|
40
|
+
const entrypointStat = await stat(entrypointPath).catch(() => null);
|
|
41
|
+
// Directory -> We just try to run it as a module (in python, it needs to have a main.py file, in node.js, an index.(m)js file)
|
|
42
|
+
if (entrypointStat?.isDirectory()) {
|
|
43
|
+
runType = RunType.Module;
|
|
44
|
+
// entrypoint -> ./src/file for example (running custom scripts)
|
|
45
|
+
}
|
|
46
|
+
else if (entrypointStat?.isFile()) {
|
|
47
|
+
runType = RunType.DirectFile;
|
|
48
|
+
// If it's not a file, or a directory, we just let it be a script
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
runType = RunType.Script;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
32
54
|
if (existsSync(LEGACY_LOCAL_STORAGE_DIR) && !existsSync(actualStoragePath)) {
|
|
33
55
|
renameSync(LEGACY_LOCAL_STORAGE_DIR, actualStoragePath);
|
|
34
56
|
warning(`The legacy 'apify_storage' directory was renamed to '${actualStoragePath}' to align it with Apify SDK v3.`
|
|
@@ -93,17 +115,10 @@ export class RunCommand extends ApifyCommand {
|
|
|
93
115
|
if (!userId) {
|
|
94
116
|
warning('You are not logged in with your Apify Account. Some features like Apify Proxy will not work. Call "apify login" to fix that.');
|
|
95
117
|
}
|
|
96
|
-
const { language, languageVersion } = detectLocalActorLanguage(cwd);
|
|
97
118
|
if (language === LANGUAGE.NODEJS) { // Actor is written in Node.js
|
|
98
119
|
const currentNodeVersion = languageVersion;
|
|
99
120
|
const minimumSupportedNodeVersion = minVersion(SUPPORTED_NODEJS_VERSION);
|
|
100
121
|
if (currentNodeVersion) {
|
|
101
|
-
const serverJsFile = join(cwd, 'server.js');
|
|
102
|
-
const packageJson = await loadJsonFile(packageJsonPath);
|
|
103
|
-
if ((!packageJson.scripts || !packageJson.scripts.start) && !existsSync(serverJsFile)) {
|
|
104
|
-
throw new Error('The "npm start" script was not found in package.json. Please set it up for your project. '
|
|
105
|
-
+ 'For more information about that call "apify help run".');
|
|
106
|
-
}
|
|
107
122
|
// --max-http-header-size=80000
|
|
108
123
|
// Increases default size of headers. The original limit was 80kb, but from node 10+ they decided to lower it to 8kb.
|
|
109
124
|
// However they did not think about all the sites there with large headers,
|
|
@@ -117,7 +132,25 @@ export class RunCommand extends ApifyCommand {
|
|
|
117
132
|
}
|
|
118
133
|
this.telemetryData.actorNodejsVersion = currentNodeVersion;
|
|
119
134
|
this.telemetryData.actorLanguage = LANGUAGE.NODEJS;
|
|
120
|
-
|
|
135
|
+
// We allow "module" type directly in node too (it will work for a folder that has an `index.js` file)
|
|
136
|
+
if (runType === RunType.DirectFile || runType === RunType.Module) {
|
|
137
|
+
await execWithLog('node', [entrypoint], { env, cwd });
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
// TODO(vladfrangu): what is this for? Some old template maybe?
|
|
141
|
+
// && !existsSync(serverJsFile)
|
|
142
|
+
// const serverJsFile = join(cwd, 'server.js');
|
|
143
|
+
const packageJson = await loadJsonFile(packageJsonPath);
|
|
144
|
+
if (!packageJson.scripts) {
|
|
145
|
+
throw new Error('No scripts were found in package.json. Please set it up for your project. '
|
|
146
|
+
+ 'For more information about that call "apify help run".');
|
|
147
|
+
}
|
|
148
|
+
if (!packageJson.scripts[entrypoint]) {
|
|
149
|
+
throw new Error(`The script "${entrypoint}" was not found in package.json. Please set it up for your project. `
|
|
150
|
+
+ 'For more information about that call "apify help run".');
|
|
151
|
+
}
|
|
152
|
+
await execWithLog(getNpmCmd(), ['run', entrypoint], { env, cwd });
|
|
153
|
+
}
|
|
121
154
|
}
|
|
122
155
|
else {
|
|
123
156
|
error(`No Node.js detected! Please install Node.js ${minimumSupportedNodeVersion} or higher to be able to run Node.js Actors locally.`);
|
|
@@ -130,15 +163,19 @@ export class RunCommand extends ApifyCommand {
|
|
|
130
163
|
if (pythonVersion) {
|
|
131
164
|
if (isPythonVersionSupported(pythonVersion)) {
|
|
132
165
|
const pythonCommand = getPythonCommand(cwd);
|
|
133
|
-
|
|
134
|
-
if (isScrapyProject) {
|
|
166
|
+
if (isScrapyProject && !this.flags.entrypoint) {
|
|
135
167
|
const project = new ScrapyProjectAnalyzer(cwd);
|
|
136
168
|
project.loadScrapyCfg();
|
|
137
169
|
if (project.configuration.hasKey('apify', 'mainpy_location')) {
|
|
138
|
-
|
|
170
|
+
entrypoint = project.configuration.get('apify', 'mainpy_location');
|
|
139
171
|
}
|
|
140
172
|
}
|
|
141
|
-
|
|
173
|
+
if (runType === RunType.Module) {
|
|
174
|
+
await execWithLog(pythonCommand, ['-m', entrypoint], { env, cwd });
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
await execWithLog(pythonCommand, [entrypoint], { env, cwd });
|
|
178
|
+
}
|
|
142
179
|
}
|
|
143
180
|
else {
|
|
144
181
|
error(`Python Actors require Python 3.8 or higher, but you have Python ${pythonVersion}!`);
|
|
@@ -186,6 +223,23 @@ Object.defineProperty(RunCommand, "flags", {
|
|
|
186
223
|
description: 'Deletes all records from the default key-value store in the local directory before the run starts, except for the "INPUT" key.',
|
|
187
224
|
required: false,
|
|
188
225
|
}),
|
|
226
|
+
entrypoint: Flags.string({
|
|
227
|
+
description: [
|
|
228
|
+
'Optional entrypoint for running with injected environment variables.',
|
|
229
|
+
'\n',
|
|
230
|
+
'For Python, it is the module name, or a path to a file.',
|
|
231
|
+
'\n',
|
|
232
|
+
'For node.js, it is the npm script name, or a path to a JS/MJS file.',
|
|
233
|
+
'You can also pass in a directory name, provided that directory contains an "index.js" file.',
|
|
234
|
+
].join(' '),
|
|
235
|
+
required: false,
|
|
236
|
+
}),
|
|
189
237
|
}
|
|
190
238
|
});
|
|
239
|
+
var RunType;
|
|
240
|
+
(function (RunType) {
|
|
241
|
+
RunType[RunType["DirectFile"] = 0] = "DirectFile";
|
|
242
|
+
RunType[RunType["Module"] = 1] = "Module";
|
|
243
|
+
RunType[RunType["Script"] = 2] = "Script";
|
|
244
|
+
})(RunType || (RunType = {}));
|
|
191
245
|
//# sourceMappingURL=run.js.map
|
package/dist/commands/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,yBAA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;gBACJ,KAAK,CAAC,kGAAkG,CAAC,CAAC;YAC9G,CAAC;QACL,CAAC;IACL,CAAC;;AAnOe;;;;WAAc,oDAAoD;UAC5E,kDAAkD;UAClD,8FAA8F;UAC9F,kEAAkE;UAClE,mDAAmD,yBAAyB,eAAe;UAC3F,wCAAwC;UACxC,uIAAuI;UACvI,4EAA4E;GAAC;AAEnE;;;;WAAQ;QACpB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;YACjB,IAAI,EAAE,GAAG;YACT,WAAW,EAAE,gGAAgG;YAC7G,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC;YACzB,WAAW,EAAE,yFAAyF;YACtG,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC;YAC3B,WAAW,EAAE,mFAAmF;YAChG,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,uBAAuB,EAAE,KAAK,CAAC,OAAO,CAAC;YACnC,WAAW,EAAE,gIAAgI;YAC7I,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE;gBACT,sEAAsE;gBACtE,IAAI;gBACJ,yDAAyD;gBACzD,IAAI;gBACJ,qEAAqE;gBACrE,6FAA6F;aAChG,CAAC,IAAI,CAAC,GAAG,CAAC;YACX,QAAQ,EAAE,KAAK;SAClB,CAAC;KACL;GAAC;AAgMN,IAAK,OAIJ;AAJD,WAAK,OAAO;IACR,iDAAU,CAAA;IACV,yCAAM,CAAA;IACN,yCAAM,CAAA;AACV,CAAC,EAJI,OAAO,KAAP,OAAO,QAIX"}
|
package/oclif.manifest.json
CHANGED
|
@@ -466,6 +466,14 @@
|
|
|
466
466
|
"required": false,
|
|
467
467
|
"allowNo": false,
|
|
468
468
|
"type": "boolean"
|
|
469
|
+
},
|
|
470
|
+
"entrypoint": {
|
|
471
|
+
"description": "Optional entrypoint for running with injected environment variables. \n For Python, it is the module name, or a path to a file. \n For node.js, it is the npm script name, or a path to a JS/MJS file. You can also pass in a directory name, provided that directory contains an \"index.js\" file.",
|
|
472
|
+
"name": "entrypoint",
|
|
473
|
+
"required": false,
|
|
474
|
+
"hasDynamicHelp": false,
|
|
475
|
+
"multiple": false,
|
|
476
|
+
"type": "option"
|
|
469
477
|
}
|
|
470
478
|
},
|
|
471
479
|
"hasDynamicHelp": false,
|
|
@@ -718,5 +726,5 @@
|
|
|
718
726
|
]
|
|
719
727
|
}
|
|
720
728
|
},
|
|
721
|
-
"version": "1.0.0-beta.
|
|
729
|
+
"version": "1.0.0-beta.39"
|
|
722
730
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.39",
|
|
4
4
|
"description": "Apify command-line interface (CLI) helps you manage the Apify cloud platform and develop, build, and deploy Apify Actors.",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|