alex-c-line 2.6.0 → 2.6.2
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/dist/index.cjs +11 -9
- package/dist/index.js +11 -9
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -338,7 +338,7 @@ async function readdirSafe(path) {
|
|
|
338
338
|
//#endregion
|
|
339
339
|
//#region src/cli/commands/internal/media/generate.ts
|
|
340
340
|
function internalMediaGenerate(program) {
|
|
341
|
-
program.command("generate").argument("[target]", "The directory to generate from", process.cwd()).option("--ignore <ignore>", "Extra directories to ignore as comma-separated list").action(async (target, { ignore }) => {
|
|
341
|
+
program.command("generate").argument("[target]", "The directory to generate from.", process.cwd()).option("--ignore <ignore>", "Extra directories to ignore as comma-separated list.").option("-r --resolution <resolution>", "The resolution of the rendered scenes, with a comma between width and height.").action(async (target, { ignore, resolution }) => {
|
|
342
342
|
const ignored = new Set([
|
|
343
343
|
".git",
|
|
344
344
|
"node_modules",
|
|
@@ -350,14 +350,16 @@ function internalMediaGenerate(program) {
|
|
|
350
350
|
async function renderFile(file) {
|
|
351
351
|
const relativePath = node_path.default.relative(process.cwd(), file);
|
|
352
352
|
console.info(`Rendering ${relativePath}...`);
|
|
353
|
+
const runManimCommand = (0, execa.execa)({
|
|
354
|
+
stdio: "inherit",
|
|
355
|
+
env: {
|
|
356
|
+
...process.env,
|
|
357
|
+
PYTHONPATH: node_path.default.resolve("src")
|
|
358
|
+
}
|
|
359
|
+
});
|
|
353
360
|
try {
|
|
354
|
-
return await
|
|
355
|
-
|
|
356
|
-
env: {
|
|
357
|
-
...process.env,
|
|
358
|
-
PYTHONPATH: node_path.default.resolve("src")
|
|
359
|
-
}
|
|
360
|
-
})`manim -qh ${file}`;
|
|
361
|
+
if (resolution) return await runManimCommand`manim -qh -r ${resolution} ${file}`;
|
|
362
|
+
return await runManimCommand`manim -qh ${file}`;
|
|
361
363
|
} catch (error) {
|
|
362
364
|
if (error instanceof execa.ExecaError) program.error(`${errorPrefix} An error has occurred with Manim while rendering ${relativePath}.`, {
|
|
363
365
|
exitCode: error.exitCode ?? 1,
|
|
@@ -1166,7 +1168,7 @@ function template(program) {
|
|
|
1166
1168
|
//#endregion
|
|
1167
1169
|
//#region package.json
|
|
1168
1170
|
var name = "alex-c-line";
|
|
1169
|
-
var version$1 = "2.6.
|
|
1171
|
+
var version$1 = "2.6.2";
|
|
1170
1172
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1171
1173
|
//#endregion
|
|
1172
1174
|
//#region src/utility/updates/checkUpdate.ts
|
package/dist/index.js
CHANGED
|
@@ -307,7 +307,7 @@ async function readdirSafe(path) {
|
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/cli/commands/internal/media/generate.ts
|
|
309
309
|
function internalMediaGenerate(program) {
|
|
310
|
-
program.command("generate").argument("[target]", "The directory to generate from", process.cwd()).option("--ignore <ignore>", "Extra directories to ignore as comma-separated list").action(async (target, { ignore }) => {
|
|
310
|
+
program.command("generate").argument("[target]", "The directory to generate from.", process.cwd()).option("--ignore <ignore>", "Extra directories to ignore as comma-separated list.").option("-r --resolution <resolution>", "The resolution of the rendered scenes, with a comma between width and height.").action(async (target, { ignore, resolution }) => {
|
|
311
311
|
const ignored = new Set([
|
|
312
312
|
".git",
|
|
313
313
|
"node_modules",
|
|
@@ -319,14 +319,16 @@ function internalMediaGenerate(program) {
|
|
|
319
319
|
async function renderFile(file) {
|
|
320
320
|
const relativePath = path.relative(process.cwd(), file);
|
|
321
321
|
console.info(`Rendering ${relativePath}...`);
|
|
322
|
+
const runManimCommand = execa({
|
|
323
|
+
stdio: "inherit",
|
|
324
|
+
env: {
|
|
325
|
+
...process.env,
|
|
326
|
+
PYTHONPATH: path.resolve("src")
|
|
327
|
+
}
|
|
328
|
+
});
|
|
322
329
|
try {
|
|
323
|
-
return await
|
|
324
|
-
|
|
325
|
-
env: {
|
|
326
|
-
...process.env,
|
|
327
|
-
PYTHONPATH: path.resolve("src")
|
|
328
|
-
}
|
|
329
|
-
})`manim -qh ${file}`;
|
|
330
|
+
if (resolution) return await runManimCommand`manim -qh -r ${resolution} ${file}`;
|
|
331
|
+
return await runManimCommand`manim -qh ${file}`;
|
|
330
332
|
} catch (error) {
|
|
331
333
|
if (error instanceof ExecaError) program.error(`${errorPrefix} An error has occurred with Manim while rendering ${relativePath}.`, {
|
|
332
334
|
exitCode: error.exitCode ?? 1,
|
|
@@ -1135,7 +1137,7 @@ function template(program) {
|
|
|
1135
1137
|
//#endregion
|
|
1136
1138
|
//#region package.json
|
|
1137
1139
|
var name = "alex-c-line";
|
|
1138
|
-
var version$1 = "2.6.
|
|
1140
|
+
var version$1 = "2.6.2";
|
|
1139
1141
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1140
1142
|
//#endregion
|
|
1141
1143
|
//#region src/utility/updates/checkUpdate.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alex-c-line",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "Command-line tool with commands to streamline the developer workflow.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alextheman/utility": "5.
|
|
37
|
+
"@alextheman/utility": "5.11.0",
|
|
38
38
|
"@inquirer/prompts": "8.4.1",
|
|
39
39
|
"axios": "1.15.0",
|
|
40
40
|
"boxen": "8.0.1",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"format-prettier-javascript": "prettier --write \"./**/*.js\"",
|
|
88
88
|
"format-prettier-typescript": "prettier --write --parser typescript \"./**/*.ts\"",
|
|
89
89
|
"format-prettier-yml": "prettier --write \"./**/*.{yml,yaml}\"",
|
|
90
|
-
"lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-markdownlint && pnpm run lint-prettier && pnpm run lint-
|
|
90
|
+
"lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-markdownlint && pnpm run lint-prettier && pnpm run lint-pre-release",
|
|
91
91
|
"lint-eslint": "eslint \"package.json\" \"{src,tests}/**/*.ts\"",
|
|
92
92
|
"lint-markdownlint": "bash -o pipefail -c 'pnpm exec markdownlint-cli2 \"**/*.md\" \"!{node_modules,dist}/**\"| grep -v \"^Finding:\"'",
|
|
93
93
|
"lint-pre-release": "node dist/index.js package-json check --rules no-pre-release-dependencies",
|