create-video 3.3.15 → 3.3.17
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/templates.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare type DynamicTemplate = {
|
|
2
3
|
type: 'video';
|
|
3
4
|
promoVideo: {
|
|
@@ -19,8 +20,8 @@ export declare type Template = {
|
|
|
19
20
|
org: string;
|
|
20
21
|
repoName: string;
|
|
21
22
|
homePageLabel: string;
|
|
22
|
-
longerDescription:
|
|
23
|
-
cliId: 'hello-world' | 'javascript' | 'blank' | 'remix' | 'three' | 'still' | 'tts' | 'audiogram' | 'skia' | 'tailwind';
|
|
23
|
+
longerDescription: React.ReactNode;
|
|
24
|
+
cliId: 'hello-world' | 'javascript' | 'blank' | 'remix' | 'three' | 'still' | 'tts' | 'audiogram' | 'skia' | 'tailwind' | 'overlay';
|
|
24
25
|
defaultBranch: string;
|
|
25
26
|
} & DynamicTemplate;
|
|
26
27
|
export declare const FEATURED_TEMPLATES: Template[];
|
package/dist/templates.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FEATURED_TEMPLATES = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
5
|
exports.FEATURED_TEMPLATES = [
|
|
5
6
|
{
|
|
6
7
|
homePageLabel: 'TypeScript',
|
|
@@ -53,8 +54,8 @@ exports.FEATURED_TEMPLATES = [
|
|
|
53
54
|
{
|
|
54
55
|
homePageLabel: 'Remix',
|
|
55
56
|
shortName: 'Remix',
|
|
56
|
-
org: '
|
|
57
|
-
repoName: '
|
|
57
|
+
org: 'remotion-dev',
|
|
58
|
+
repoName: 'template-remix',
|
|
58
59
|
description: 'Remotion + Remix Starter Kit',
|
|
59
60
|
longerDescription: 'A software-as-a-service starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Built with remix.run.',
|
|
60
61
|
promoBanner: {
|
|
@@ -162,4 +163,20 @@ exports.FEATURED_TEMPLATES = [
|
|
|
162
163
|
type: 'video',
|
|
163
164
|
defaultBranch: 'main',
|
|
164
165
|
},
|
|
166
|
+
{
|
|
167
|
+
homePageLabel: 'Overlay',
|
|
168
|
+
shortName: 'Overlay',
|
|
169
|
+
org: 'remotion-dev',
|
|
170
|
+
repoName: 'template-overlay',
|
|
171
|
+
description: 'Overlays for video editing software',
|
|
172
|
+
longerDescription: ((0, jsx_runtime_1.jsxs)("span", { children: ["A starter template to create overlays to use in conventional video editing software.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/overlay", children: "Read more about creating overlays." })] })),
|
|
173
|
+
promoVideo: {
|
|
174
|
+
muxId: 'zgy7XK01009y33Vfzhns02cZS00rOyeZ6WaanaxcrDysqmU',
|
|
175
|
+
height: 720,
|
|
176
|
+
width: 1280,
|
|
177
|
+
},
|
|
178
|
+
cliId: 'overlay',
|
|
179
|
+
type: 'video',
|
|
180
|
+
defaultBranch: 'main',
|
|
181
|
+
},
|
|
165
182
|
];
|
|
@@ -7,14 +7,16 @@ const got_1 = __importDefault(require("got"));
|
|
|
7
7
|
const vitest_1 = require("vitest");
|
|
8
8
|
const templates_1 = require("../templates");
|
|
9
9
|
const getFileForTemplate = (template, file) => {
|
|
10
|
-
return `https://
|
|
10
|
+
return `https://github.com/${template.org}/${template.repoName}/raw/${template.defaultBranch}/${file}`;
|
|
11
11
|
};
|
|
12
12
|
for (const template of templates_1.FEATURED_TEMPLATES) {
|
|
13
13
|
(0, vitest_1.test)(template.shortName + ' should have a valid package.json', async () => {
|
|
14
14
|
var _a, _b;
|
|
15
|
-
const
|
|
16
|
-
const res = await (0, got_1.default)(
|
|
15
|
+
const packageJson = getFileForTemplate(template, 'package.json');
|
|
16
|
+
const res = await (0, got_1.default)(packageJson, {
|
|
17
17
|
throwHttpErrors: false,
|
|
18
|
+
cache: false,
|
|
19
|
+
followRedirect: true,
|
|
18
20
|
});
|
|
19
21
|
(0, vitest_1.expect)(res.statusCode).toBe(200);
|
|
20
22
|
const body = JSON.parse(res.body);
|
|
@@ -23,14 +25,14 @@ for (const template of templates_1.FEATURED_TEMPLATES) {
|
|
|
23
25
|
(0, vitest_1.expect)(body.scripts.build).toMatch(/render/);
|
|
24
26
|
(0, vitest_1.expect)(body.scripts.build).not.toContain('index');
|
|
25
27
|
}
|
|
26
|
-
(0, vitest_1.expect)(body.dependencies.remotion).toMatch(
|
|
27
|
-
(0, vitest_1.expect)(body.dependencies['@remotion/cli']).toMatch(
|
|
28
|
+
(0, vitest_1.expect)(body.dependencies.remotion).toMatch(/^\^?3/);
|
|
29
|
+
(0, vitest_1.expect)(body.dependencies['@remotion/cli']).toMatch(/^\^?3/);
|
|
28
30
|
(0, vitest_1.expect)(body.dependencies.react).toMatch(/^\^?18/);
|
|
29
31
|
(0, vitest_1.expect)(body.dependencies['react-dom']).toMatch(/^\^?18/);
|
|
30
32
|
(0, vitest_1.expect)(body.devDependencies.prettier).toMatch(/^\^?2/);
|
|
31
33
|
(0, vitest_1.expect)(body.devDependencies.eslint).toMatch(/^\^?8/);
|
|
32
|
-
const eitherPluginOrConfig = ((_a = body.devDependencies['@remotion/eslint-config']) === null || _a === void 0 ? void 0 : _a.match(
|
|
33
|
-
((_b = body.devDependencies['@remotion/eslint-plugin']) === null || _b === void 0 ? void 0 : _b.match(
|
|
34
|
+
const eitherPluginOrConfig = ((_a = body.devDependencies['@remotion/eslint-config']) === null || _a === void 0 ? void 0 : _a.match(/^\^?3/)) ||
|
|
35
|
+
((_b = body.devDependencies['@remotion/eslint-plugin']) === null || _b === void 0 ? void 0 : _b.match(/^\^?3/));
|
|
34
36
|
(0, vitest_1.expect)(eitherPluginOrConfig).toBeTruthy();
|
|
35
37
|
if (!template.shortName.includes('JavaScript')) {
|
|
36
38
|
(0, vitest_1.expect)(body.devDependencies.typescript).toMatch(/^\^?4/);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-video",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -29,13 +29,15 @@
|
|
|
29
29
|
"@types/minimist": "1.2.2",
|
|
30
30
|
"@types/node": "^16.7.5",
|
|
31
31
|
"@types/prompts": "^2.0.12",
|
|
32
|
+
"@types/react": "18.0.23",
|
|
32
33
|
"@types/tar": "6.1.1",
|
|
33
34
|
"eslint": "8.25.0",
|
|
34
35
|
"got": "^11",
|
|
35
36
|
"prettier": "2.6.2",
|
|
36
37
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
38
|
+
"react": "18.0.0",
|
|
37
39
|
"typescript": "^4.7.0",
|
|
38
40
|
"vitest": "0.24.3"
|
|
39
41
|
},
|
|
40
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0b80927c47c4216f84a4a34320d48b6f55488747"
|
|
41
43
|
}
|