create-video 4.1.0-alpha5 → 4.1.0-alpha7

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.
@@ -21,7 +21,7 @@ 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';
24
+ cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'remix' | 'three' | 'still' | 'tts' | 'google-tts' | 'audiogram' | 'skia' | 'tailwind' | 'overlay' | 'stargazer';
25
25
  defaultBranch: string;
26
26
  } & DynamicTemplate;
27
27
  export declare const FEATURED_TEMPLATES: Template[];
package/dist/templates.js CHANGED
@@ -217,4 +217,20 @@ exports.FEATURED_TEMPLATES = [
217
217
  type: 'video',
218
218
  defaultBranch: 'main',
219
219
  },
220
+ {
221
+ homePageLabel: 'Stargazer',
222
+ shortName: 'Stargazer',
223
+ org: 'pomber',
224
+ repoName: 'stargazer',
225
+ description: 'Celebrate your repo stars with a video',
226
+ longerDescription: 'Your repo reached a stars milestone? Celebrate with a video of your stargazers!',
227
+ promoVideo: {
228
+ muxId: 'y9rC1DoQ7rCzzI9TGeUywyTliOVU8xhHTHHZZ2BhM014',
229
+ height: 540,
230
+ width: 960,
231
+ },
232
+ cliId: 'stargazer',
233
+ type: 'video',
234
+ defaultBranch: 'main',
235
+ },
220
236
  ].filter(truthy);
@@ -26,21 +26,18 @@ const getFileForTemplate = (template, file) => {
26
26
  (0, vitest_1.expect)(body.scripts.build).toMatch(/render/);
27
27
  (0, vitest_1.expect)(body.scripts.build).not.toContain('index');
28
28
  }
29
- // TODO: Enable this for v4
30
- // expect(body.dependencies.remotion).toMatch(/^\^?4/);
31
- // expect(body.dependencies['@remotion/cli']).toMatch(/^\^?4/);
29
+ (0, vitest_1.expect)(body.dependencies.remotion).toMatch(/^\^?4/);
30
+ (0, vitest_1.expect)(body.dependencies['@remotion/cli']).toMatch(/^\^?4/);
32
31
  (0, vitest_1.expect)(body.dependencies.react).toMatch(/^\^?18/);
33
32
  (0, vitest_1.expect)(body.dependencies['react-dom']).toMatch(/^\^?18/);
34
- (0, vitest_1.expect)(body.devDependencies.prettier).toMatch(/^\^?2.8.1/);
35
- (0, vitest_1.expect)(body.devDependencies.eslint).toMatch(/^\^?8.30/);
36
- // @ts-expect-error
37
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
38
- const eitherPluginOrConfig = ((_a = body.devDependencies['@remotion/eslint-config']) === null || _a === void 0 ? void 0 : _a.match(/^\^?3/)) ||
39
- ((_b = body.devDependencies['@remotion/eslint-plugin']) === null || _b === void 0 ? void 0 : _b.match(/^\^?3/));
40
- // TODO: Enable after v4 merge
41
- // expect(eitherPluginOrConfig).toBeTruthy();
33
+ (0, vitest_1.expect)(body.devDependencies.prettier).toMatch(/^\^?2.8.8/);
42
34
  if (!template.shortName.includes('JavaScript')) {
35
+ (0, vitest_1.expect)(body.devDependencies.eslint).toMatch(/^\^?8.43/);
43
36
  (0, vitest_1.expect)(body.devDependencies.typescript).toMatch(/^\^?4/);
37
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
38
+ const eitherPluginOrConfig = ((_a = body.devDependencies['@remotion/eslint-config']) === null || _a === void 0 ? void 0 : _a.match(/^\^?4/)) ||
39
+ ((_b = body.devDependencies['@remotion/eslint-plugin']) === null || _b === void 0 ? void 0 : _b.match(/^\^?4/));
40
+ (0, vitest_1.expect)(eitherPluginOrConfig).toBeTruthy();
44
41
  }
45
42
  }, 12000);
46
43
  (0, vitest_1.it)(template.shortName + ' should not have a package-lock.json', async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-video",
3
- "version": "4.1.0-alpha5",
3
+ "version": "4.1.0-alpha7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {