create-video 4.0.428 → 4.0.430
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 +7 -7
- package/dist/add-tailwind.d.ts +0 -1
- package/dist/add-tailwind.js +1 -12
- package/dist/esm/index.mjs +2 -47
- package/dist/init.js +7 -5
- package/dist/list-of-remotion-packages.js +1 -0
- package/dist/resolve-project-root.js +1 -1
- package/dist/templates.d.ts +1 -1
- package/dist/templates.js +0 -46
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# @remotion/create-video
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
Create a new Remotion project
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
[](https://npmcharts.com/compare/create-video?minimal=true)
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
## Installation
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
```bash
|
|
10
10
|
npm install create-video --save-exact
|
|
11
11
|
```
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
|
|
14
14
|
Remove the `^` character from the version number to use the exact version.
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
## Usage
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
See the [documentation](https://remotion.dev/templates) for more information.
|
package/dist/add-tailwind.d.ts
CHANGED
package/dist/add-tailwind.js
CHANGED
|
@@ -3,20 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.addTailwindToConfig = exports.addTailwindRootCss =
|
|
6
|
+
exports.addTailwindToConfig = exports.addTailwindRootCss = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const addPostcssConfig = (projectRoot) => {
|
|
10
|
-
const postcssConfigMjs = path_1.default.join(projectRoot, 'postcss.config.mjs');
|
|
11
|
-
fs_1.default.writeFileSync(postcssConfigMjs, `
|
|
12
|
-
export default {
|
|
13
|
-
plugins: {
|
|
14
|
-
"@tailwindcss/postcss": {},
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
`.trim() + '\n');
|
|
18
|
-
};
|
|
19
|
-
exports.addPostcssConfig = addPostcssConfig;
|
|
20
9
|
const addTailwindRootCss = (projectRoot) => {
|
|
21
10
|
const rootFileTsx = path_1.default.join(projectRoot, 'src', 'Root.tsx');
|
|
22
11
|
const rootFileJsx = path_1.default.join(projectRoot, 'src', 'Root.jsx');
|
package/dist/esm/index.mjs
CHANGED
|
@@ -84,7 +84,8 @@ var listOfRemotionPackages = [
|
|
|
84
84
|
"@remotion/web-renderer",
|
|
85
85
|
"@remotion/design",
|
|
86
86
|
"@remotion/light-leaks",
|
|
87
|
-
"@remotion/vercel"
|
|
87
|
+
"@remotion/vercel",
|
|
88
|
+
"@remotion/sfx"
|
|
88
89
|
];
|
|
89
90
|
|
|
90
91
|
// src/templates.ts
|
|
@@ -391,52 +392,6 @@ var FEATURED_TEMPLATES = [
|
|
|
391
392
|
contributedBy: null,
|
|
392
393
|
showStackblitz: true
|
|
393
394
|
},
|
|
394
|
-
{
|
|
395
|
-
homePageLabel: "Text-To-Speech (Azure)",
|
|
396
|
-
shortName: "TTS (Azure)",
|
|
397
|
-
org: "FelippeChemello",
|
|
398
|
-
repoName: "Remotion-TTS-Example",
|
|
399
|
-
description: "Turns text into speech and makes a video",
|
|
400
|
-
longerDescription: "A template that turns text into a spoken video. Integrates with Azure Cloud for Speech synthesis.",
|
|
401
|
-
promoVideo: {
|
|
402
|
-
muxId: "8vJJ01lNuFmQCx7n59VILevqQGxRuQHp9a7VBR7B4C8k",
|
|
403
|
-
width: 1920,
|
|
404
|
-
height: 1080
|
|
405
|
-
},
|
|
406
|
-
cliId: "tts",
|
|
407
|
-
type: "video",
|
|
408
|
-
defaultBranch: "master",
|
|
409
|
-
featuredOnHomePage: null,
|
|
410
|
-
previewURL: null,
|
|
411
|
-
previewLabel: null,
|
|
412
|
-
templateInMonorepo: "template-tts-azure",
|
|
413
|
-
allowEnableTailwind: false,
|
|
414
|
-
contributedBy: null,
|
|
415
|
-
showStackblitz: true
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
homePageLabel: "Text-To-Speech (Google)",
|
|
419
|
-
shortName: "TTS (Google)",
|
|
420
|
-
org: "thecmdrunner",
|
|
421
|
-
repoName: "remotion-gtts-template",
|
|
422
|
-
description: "Turns text into speech and makes a video",
|
|
423
|
-
longerDescription: "A template that turns text into a spoken video. Integrates with Firebase for Storage, and Google Cloud for Speech synthesis.",
|
|
424
|
-
promoVideo: {
|
|
425
|
-
muxId: "82dzhGhv3bl3p8LW009cFGd8oltqt6UvxTWdP27202BAY",
|
|
426
|
-
width: 1920,
|
|
427
|
-
height: 1080
|
|
428
|
-
},
|
|
429
|
-
cliId: "google-tts",
|
|
430
|
-
type: "video",
|
|
431
|
-
defaultBranch: "master",
|
|
432
|
-
featuredOnHomePage: null,
|
|
433
|
-
previewURL: null,
|
|
434
|
-
previewLabel: null,
|
|
435
|
-
templateInMonorepo: "template-tts-google",
|
|
436
|
-
allowEnableTailwind: false,
|
|
437
|
-
contributedBy: null,
|
|
438
|
-
showStackblitz: true
|
|
439
|
-
},
|
|
440
395
|
{
|
|
441
396
|
homePageLabel: "Audiogram",
|
|
442
397
|
shortName: "Audiogram",
|
package/dist/init.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.init = exports.checkGitAvailability = void 0;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
9
|
const execa_1 = __importDefault(require("execa"));
|
|
9
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
10
10
|
const add_tailwind_1 = require("./add-tailwind");
|
|
11
11
|
const add_yarn2_support_1 = require("./add-yarn2-support");
|
|
12
12
|
const ask_skills_1 = require("./ask-skills");
|
|
@@ -93,11 +93,12 @@ const init = async () => {
|
|
|
93
93
|
log_1.Log.error('Git is not installed or not in the path. Install Git to continue.');
|
|
94
94
|
process.exit(1);
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
const isInsideGitRepo = result.type === 'is-git-repo';
|
|
97
|
+
if (isInsideGitRepo) {
|
|
97
98
|
const { shouldContinue } = await (0, prompts_1.default)({
|
|
98
99
|
type: 'toggle',
|
|
99
100
|
name: 'shouldContinue',
|
|
100
|
-
message: `You are already inside a Git repo (${node_path_1.default.resolve(result.location)}).\
|
|
101
|
+
message: `You are already inside a Git repo (${node_path_1.default.resolve(result.location)}).\nA new project will be created without initializing a new Git repository. Do you want to continue?`,
|
|
101
102
|
initial: false,
|
|
102
103
|
active: 'Yes',
|
|
103
104
|
inactive: 'No',
|
|
@@ -122,7 +123,6 @@ const init = async () => {
|
|
|
122
123
|
(0, patch_readme_1.patchReadmeMd)(projectRoot, pkgManager, selectedTemplate);
|
|
123
124
|
if (shouldOverrideTailwind) {
|
|
124
125
|
(0, add_tailwind_1.addTailwindToConfig)(projectRoot);
|
|
125
|
-
(0, add_tailwind_1.addPostcssConfig)(projectRoot);
|
|
126
126
|
(0, add_tailwind_1.addTailwindRootCss)(projectRoot);
|
|
127
127
|
}
|
|
128
128
|
(0, create_public_folder_1.createPublicFolder)(projectRoot);
|
|
@@ -145,7 +145,9 @@ const init = async () => {
|
|
|
145
145
|
pkgManagerVersion,
|
|
146
146
|
projectRoot,
|
|
147
147
|
});
|
|
148
|
-
|
|
148
|
+
if (!isInsideGitRepo) {
|
|
149
|
+
await getGitStatus(projectRoot);
|
|
150
|
+
}
|
|
149
151
|
if (shouldInstallSkills) {
|
|
150
152
|
await (0, install_skills_1.installSkills)(projectRoot);
|
|
151
153
|
}
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.resolveProjectRoot = void 0;
|
|
7
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
8
7
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
8
|
const promises_1 = require("node:fs/promises");
|
|
10
9
|
const node_os_1 = require("node:os");
|
|
11
10
|
const node_path_1 = __importDefault(require("node:path"));
|
|
11
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
12
12
|
const log_1 = require("./log");
|
|
13
13
|
const mkdirp_1 = require("./mkdirp");
|
|
14
14
|
const prompts_1 = __importDefault(require("./prompts"));
|
package/dist/templates.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type Template = {
|
|
|
20
20
|
repoName: string;
|
|
21
21
|
homePageLabel: string;
|
|
22
22
|
longerDescription: string;
|
|
23
|
-
cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'next-no-tailwind' | 'next-pages-dir' | 'react-router' | 'three' | 'still' | '
|
|
23
|
+
cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'next-no-tailwind' | 'next-pages-dir' | 'react-router' | 'three' | 'still' | 'audiogram' | 'music-visualization' | 'prompt-to-video' | 'skia' | 'overlay' | 'stargazer' | 'tiktok' | 'code-hike' | 'render-server' | 'recorder' | 'prompt-to-motion-graphics' | 'vercel';
|
|
24
24
|
defaultBranch: string;
|
|
25
25
|
featuredOnHomePage: string | null;
|
|
26
26
|
previewURL: string | null;
|
package/dist/templates.js
CHANGED
|
@@ -304,52 +304,6 @@ exports.FEATURED_TEMPLATES = [
|
|
|
304
304
|
contributedBy: null,
|
|
305
305
|
showStackblitz: true,
|
|
306
306
|
},
|
|
307
|
-
{
|
|
308
|
-
homePageLabel: 'Text-To-Speech (Azure)',
|
|
309
|
-
shortName: 'TTS (Azure)',
|
|
310
|
-
org: 'FelippeChemello',
|
|
311
|
-
repoName: 'Remotion-TTS-Example',
|
|
312
|
-
description: 'Turns text into speech and makes a video',
|
|
313
|
-
longerDescription: 'A template that turns text into a spoken video. Integrates with Azure Cloud for Speech synthesis.',
|
|
314
|
-
promoVideo: {
|
|
315
|
-
muxId: '8vJJ01lNuFmQCx7n59VILevqQGxRuQHp9a7VBR7B4C8k',
|
|
316
|
-
width: 1920,
|
|
317
|
-
height: 1080,
|
|
318
|
-
},
|
|
319
|
-
cliId: 'tts',
|
|
320
|
-
type: 'video',
|
|
321
|
-
defaultBranch: 'master',
|
|
322
|
-
featuredOnHomePage: null,
|
|
323
|
-
previewURL: null,
|
|
324
|
-
previewLabel: null,
|
|
325
|
-
templateInMonorepo: 'template-tts-azure',
|
|
326
|
-
allowEnableTailwind: false,
|
|
327
|
-
contributedBy: null,
|
|
328
|
-
showStackblitz: true,
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
homePageLabel: 'Text-To-Speech (Google)',
|
|
332
|
-
shortName: 'TTS (Google)',
|
|
333
|
-
org: 'thecmdrunner',
|
|
334
|
-
repoName: 'remotion-gtts-template',
|
|
335
|
-
description: 'Turns text into speech and makes a video',
|
|
336
|
-
longerDescription: 'A template that turns text into a spoken video. Integrates with Firebase for Storage, and Google Cloud for Speech synthesis.',
|
|
337
|
-
promoVideo: {
|
|
338
|
-
muxId: '82dzhGhv3bl3p8LW009cFGd8oltqt6UvxTWdP27202BAY',
|
|
339
|
-
width: 1920,
|
|
340
|
-
height: 1080,
|
|
341
|
-
},
|
|
342
|
-
cliId: 'google-tts',
|
|
343
|
-
type: 'video',
|
|
344
|
-
defaultBranch: 'master',
|
|
345
|
-
featuredOnHomePage: null,
|
|
346
|
-
previewURL: null,
|
|
347
|
-
previewLabel: null,
|
|
348
|
-
templateInMonorepo: 'template-tts-google',
|
|
349
|
-
allowEnableTailwind: false,
|
|
350
|
-
contributedBy: null,
|
|
351
|
-
showStackblitz: true,
|
|
352
|
-
},
|
|
353
307
|
{
|
|
354
308
|
homePageLabel: 'Audiogram',
|
|
355
309
|
shortName: 'Audiogram',
|
package/package.json
CHANGED
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/create-video"
|
|
4
4
|
},
|
|
5
5
|
"name": "create-video",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.430",
|
|
7
7
|
"description": "Create a new Remotion project",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"bin": {
|
|
10
10
|
"create-video": "bin.js"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"formatting": "
|
|
13
|
+
"formatting": "oxfmt src --check",
|
|
14
|
+
"format": "oxfmt src",
|
|
14
15
|
"lint": "eslint src",
|
|
15
16
|
"test": "bun test src",
|
|
16
17
|
"make": "tsgo -d && bun --env-file=../.env.bundle bundle.ts"
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"@types/prompts": "^2.0.12",
|
|
30
31
|
"@types/tar": "6.1.1",
|
|
31
32
|
"react": "19.2.3",
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
33
|
+
"@remotion/eslint-config-internal": "4.0.429",
|
|
33
34
|
"eslint": "9.19.0",
|
|
34
35
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
35
36
|
},
|