create-video 4.0.18 → 4.0.20
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 +2 -1
- package/dist/templates.js +47 -18
- package/dist/test/validate-templates.test.js +2 -1
- package/package.json +1 -1
package/dist/templates.d.ts
CHANGED
|
@@ -21,8 +21,9 @@ export type Template = {
|
|
|
21
21
|
repoName: string;
|
|
22
22
|
homePageLabel: string;
|
|
23
23
|
longerDescription: React.ReactNode;
|
|
24
|
-
cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'remix' | 'three' | 'still' | 'tts' | 'google-tts' | 'audiogram' | 'skia' | 'tailwind' | 'overlay' | 'stargazer';
|
|
24
|
+
cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'next-pages-dir' | 'remix' | 'three' | 'still' | 'tts' | 'google-tts' | 'audiogram' | 'skia' | 'tailwind' | 'overlay' | 'stargazer';
|
|
25
25
|
defaultBranch: string;
|
|
26
|
+
featuredOnHomePage: string | null;
|
|
26
27
|
} & DynamicTemplate;
|
|
27
28
|
export declare const FEATURED_TEMPLATES: Template[];
|
|
28
29
|
export {};
|
package/dist/templates.js
CHANGED
|
@@ -5,23 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
function truthy(value) {
|
|
6
6
|
return Boolean(value);
|
|
7
7
|
}
|
|
8
|
-
const ENABLE_NEXT = false;
|
|
9
|
-
const nextTemplate = {
|
|
10
|
-
homePageLabel: 'Next.js',
|
|
11
|
-
shortName: 'Next.js',
|
|
12
|
-
org: 'remotion-dev',
|
|
13
|
-
repoName: 'template-next',
|
|
14
|
-
description: 'SaaS template for video generation apps',
|
|
15
|
-
longerDescription: 'A software-as-a-service starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Our recommended choice for people who want to build a video generation app.',
|
|
16
|
-
promoBanner: {
|
|
17
|
-
width: 1280,
|
|
18
|
-
height: 720,
|
|
19
|
-
src: '/img/remix-template.png',
|
|
20
|
-
},
|
|
21
|
-
cliId: 'next',
|
|
22
|
-
type: 'image',
|
|
23
|
-
defaultBranch: 'main',
|
|
24
|
-
};
|
|
25
8
|
// Note that this page is statically analyzed by extract-articles.mjs
|
|
26
9
|
exports.FEATURED_TEMPLATES = [
|
|
27
10
|
{
|
|
@@ -39,8 +22,42 @@ exports.FEATURED_TEMPLATES = [
|
|
|
39
22
|
cliId: 'hello-world',
|
|
40
23
|
type: 'video',
|
|
41
24
|
defaultBranch: 'main',
|
|
25
|
+
featuredOnHomePage: 'Hello World',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
homePageLabel: 'Next.js (App dir)',
|
|
29
|
+
shortName: 'Next.js (App dir)',
|
|
30
|
+
org: 'remotion-dev',
|
|
31
|
+
repoName: 'template-next-app-dir',
|
|
32
|
+
description: 'SaaS template for video generation apps',
|
|
33
|
+
longerDescription: 'A SaaS starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Our recommended choice for people who want to build an app that can generate videos.',
|
|
34
|
+
promoVideo: {
|
|
35
|
+
width: 1280,
|
|
36
|
+
height: 720,
|
|
37
|
+
muxId: 'RufnZIJZh6L1MAaeG02jnXuM9pK96tNuHRxmXHbWqCBI',
|
|
38
|
+
},
|
|
39
|
+
cliId: 'next',
|
|
40
|
+
type: 'video',
|
|
41
|
+
defaultBranch: 'main',
|
|
42
|
+
featuredOnHomePage: 'Next.js',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
homePageLabel: 'Next.js (Pages dir)',
|
|
46
|
+
shortName: 'Next.js (Pages dir)',
|
|
47
|
+
org: 'remotion-dev',
|
|
48
|
+
repoName: 'template-next-pages-dir',
|
|
49
|
+
description: 'SaaS template for video generation apps',
|
|
50
|
+
longerDescription: 'A SaaS starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Our recommended choice for people who want to build an app that can generate videos.',
|
|
51
|
+
promoVideo: {
|
|
52
|
+
width: 1280,
|
|
53
|
+
height: 720,
|
|
54
|
+
muxId: 'RufnZIJZh6L1MAaeG02jnXuM9pK96tNuHRxmXHbWqCBI',
|
|
55
|
+
},
|
|
56
|
+
cliId: 'next-pages-dir',
|
|
57
|
+
type: 'video',
|
|
58
|
+
defaultBranch: 'main',
|
|
59
|
+
featuredOnHomePage: null,
|
|
42
60
|
},
|
|
43
|
-
ENABLE_NEXT ? nextTemplate : null,
|
|
44
61
|
{
|
|
45
62
|
homePageLabel: 'Blank',
|
|
46
63
|
shortName: 'Blank',
|
|
@@ -56,6 +73,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
56
73
|
cliId: 'blank',
|
|
57
74
|
type: 'video',
|
|
58
75
|
defaultBranch: 'main',
|
|
76
|
+
featuredOnHomePage: 'Blank',
|
|
59
77
|
},
|
|
60
78
|
{
|
|
61
79
|
homePageLabel: 'JavaScript',
|
|
@@ -72,6 +90,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
72
90
|
cliId: 'javascript',
|
|
73
91
|
type: 'video',
|
|
74
92
|
defaultBranch: 'main',
|
|
93
|
+
featuredOnHomePage: 'JavaScript',
|
|
75
94
|
},
|
|
76
95
|
{
|
|
77
96
|
homePageLabel: 'Remix',
|
|
@@ -88,6 +107,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
88
107
|
cliId: 'remix',
|
|
89
108
|
type: 'image',
|
|
90
109
|
defaultBranch: 'main',
|
|
110
|
+
featuredOnHomePage: null,
|
|
91
111
|
},
|
|
92
112
|
{
|
|
93
113
|
homePageLabel: '3D',
|
|
@@ -104,6 +124,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
104
124
|
cliId: 'three',
|
|
105
125
|
type: 'video',
|
|
106
126
|
defaultBranch: 'main',
|
|
127
|
+
featuredOnHomePage: null,
|
|
107
128
|
},
|
|
108
129
|
{
|
|
109
130
|
homePageLabel: 'Stills',
|
|
@@ -120,6 +141,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
120
141
|
cliId: 'still',
|
|
121
142
|
type: 'video',
|
|
122
143
|
defaultBranch: 'main',
|
|
144
|
+
featuredOnHomePage: null,
|
|
123
145
|
},
|
|
124
146
|
{
|
|
125
147
|
homePageLabel: 'Text-To-Speech (Azure)',
|
|
@@ -136,6 +158,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
136
158
|
cliId: 'tts',
|
|
137
159
|
type: 'video',
|
|
138
160
|
defaultBranch: 'master',
|
|
161
|
+
featuredOnHomePage: null,
|
|
139
162
|
},
|
|
140
163
|
{
|
|
141
164
|
homePageLabel: 'Text-To-Speech (Google)',
|
|
@@ -152,6 +175,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
152
175
|
cliId: 'google-tts',
|
|
153
176
|
type: 'video',
|
|
154
177
|
defaultBranch: 'master',
|
|
178
|
+
featuredOnHomePage: null,
|
|
155
179
|
},
|
|
156
180
|
{
|
|
157
181
|
homePageLabel: 'Audiogram',
|
|
@@ -168,6 +192,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
168
192
|
cliId: 'audiogram',
|
|
169
193
|
type: 'video',
|
|
170
194
|
defaultBranch: 'main',
|
|
195
|
+
featuredOnHomePage: null,
|
|
171
196
|
},
|
|
172
197
|
{
|
|
173
198
|
homePageLabel: 'Skia',
|
|
@@ -184,6 +209,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
184
209
|
cliId: 'skia',
|
|
185
210
|
type: 'video',
|
|
186
211
|
defaultBranch: 'main',
|
|
212
|
+
featuredOnHomePage: null,
|
|
187
213
|
},
|
|
188
214
|
{
|
|
189
215
|
homePageLabel: 'Tailwind',
|
|
@@ -200,6 +226,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
200
226
|
cliId: 'tailwind',
|
|
201
227
|
type: 'video',
|
|
202
228
|
defaultBranch: 'main',
|
|
229
|
+
featuredOnHomePage: null,
|
|
203
230
|
},
|
|
204
231
|
{
|
|
205
232
|
homePageLabel: 'Overlay',
|
|
@@ -216,6 +243,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
216
243
|
cliId: 'overlay',
|
|
217
244
|
type: 'video',
|
|
218
245
|
defaultBranch: 'main',
|
|
246
|
+
featuredOnHomePage: null,
|
|
219
247
|
},
|
|
220
248
|
{
|
|
221
249
|
homePageLabel: 'Stargazer',
|
|
@@ -232,5 +260,6 @@ exports.FEATURED_TEMPLATES = [
|
|
|
232
260
|
cliId: 'stargazer',
|
|
233
261
|
type: 'video',
|
|
234
262
|
defaultBranch: 'main',
|
|
263
|
+
featuredOnHomePage: null,
|
|
235
264
|
},
|
|
236
265
|
].filter(truthy);
|
|
@@ -22,6 +22,7 @@ const getFileForTemplate = (template, file) => {
|
|
|
22
22
|
(0, vitest_1.expect)(res.statusCode).toBe(200);
|
|
23
23
|
const body = JSON.parse(res.body);
|
|
24
24
|
if (!template.shortName.includes('Remix') &&
|
|
25
|
+
!template.shortName.includes('Next') &&
|
|
25
26
|
!template.shortName.includes('Still')) {
|
|
26
27
|
(0, vitest_1.expect)(body.scripts.build).toMatch(/render/);
|
|
27
28
|
(0, vitest_1.expect)(body.scripts.build).not.toContain('index');
|
|
@@ -91,7 +92,7 @@ const getFileForTemplate = (template, file) => {
|
|
|
91
92
|
(0, vitest_1.expect)(entryPoint).toBeTruthy();
|
|
92
93
|
(0, vitest_1.expect)(contents).toMatch(/export const RemotionRoot/);
|
|
93
94
|
}, 12000);
|
|
94
|
-
(0, vitest_1.it)(template.shortName
|
|
95
|
+
(0, vitest_1.it)(`${template.shortName} should use the new config file format`, async () => {
|
|
95
96
|
const { contents, entryPoint } = await findFile([
|
|
96
97
|
getFileForTemplate(template, 'remotion.config.ts'),
|
|
97
98
|
getFileForTemplate(template, 'remotion.config.js'),
|