create-video 3.2.22 → 3.2.23-ensure-ffmpeg.123
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/LICENSE.md +8 -8
- package/dist/degit.d.ts +0 -0
- package/dist/degit.js +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/init.d.ts +0 -0
- package/dist/init.js +2 -2
- package/dist/latest-remotion-version.d.ts +0 -0
- package/dist/latest-remotion-version.js +0 -0
- package/dist/log.d.ts +0 -0
- package/dist/log.js +0 -0
- package/dist/mkdirp.d.ts +0 -0
- package/dist/mkdirp.js +0 -0
- package/dist/open-in-editor-flow.d.ts +0 -0
- package/dist/open-in-editor-flow.js +0 -0
- package/dist/open-in-editor.d.ts +0 -0
- package/dist/open-in-editor.js +0 -0
- package/dist/patch-package-json.d.ts +0 -0
- package/dist/patch-package-json.js +3 -0
- package/dist/patch-readme.d.ts +0 -0
- package/dist/patch-readme.js +2 -2
- package/dist/pkg-managers.d.ts +4 -1
- package/dist/pkg-managers.js +24 -6
- package/dist/prompts.d.ts +0 -0
- package/dist/prompts.js +0 -0
- package/dist/resolve-project-root.d.ts +0 -0
- package/dist/resolve-project-root.js +0 -0
- package/dist/select-template.d.ts +0 -0
- package/dist/select-template.js +0 -0
- package/dist/strip-ansi.d.ts +0 -0
- package/dist/strip-ansi.js +0 -0
- package/dist/templates.d.ts +19 -7
- package/dist/templates.js +35 -1
- package/dist/test/validate-templates.test.d.ts +1 -0
- package/dist/test/validate-templates.test.js +94 -0
- package/dist/validate-name.d.ts +0 -0
- package/dist/validate-name.js +0 -0
- package/dist/yesno.d.ts +0 -0
- package/dist/yesno.js +0 -0
- package/package.json +7 -6
package/LICENSE.md
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
# Remotion License
|
|
2
2
|
|
|
3
|
-
Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion create videos for free (even commercial), while a company license is required for for-profit
|
|
3
|
+
Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
|
|
4
4
|
|
|
5
5
|
- [Free license](#free-license)
|
|
6
6
|
- [Company license](#company-license)
|
|
7
7
|
|
|
8
8
|
## Free license
|
|
9
9
|
|
|
10
|
-
Copyright © 2022 [
|
|
10
|
+
Copyright © 2022 [Remotion](https://www.remotion.dev/)
|
|
11
11
|
|
|
12
12
|
### Eligibility
|
|
13
13
|
|
|
14
14
|
You are eligible to use Remotion for free if you are:
|
|
15
15
|
|
|
16
16
|
- an individual
|
|
17
|
-
- a for-profit
|
|
18
|
-
- a non-profit or not-for-profit
|
|
17
|
+
- a for-profit organization with up to 3 employees
|
|
18
|
+
- a non-profit or not-for-profit organization
|
|
19
19
|
- evaluating whether Remotion is a good fit, and are not yet using it in a commercial way
|
|
20
20
|
|
|
21
21
|
### Allowed use cases
|
|
22
22
|
|
|
23
|
-
Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify
|
|
23
|
+
Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
|
|
24
24
|
|
|
25
25
|
### Disallowed use cases
|
|
26
26
|
|
|
27
|
-
It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, sublicensing your own derivate of Remotion.
|
|
27
|
+
It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, or sublicensing your own derivate of Remotion.
|
|
28
28
|
|
|
29
29
|
### Warranty notice
|
|
30
30
|
|
|
31
|
-
The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and
|
|
31
|
+
The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
|
|
32
32
|
|
|
33
33
|
### Support
|
|
34
34
|
|
|
@@ -36,6 +36,6 @@ Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
|
36
36
|
|
|
37
37
|
## Company license
|
|
38
38
|
|
|
39
|
-
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support.
|
|
39
|
+
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](/docs/support)).
|
|
40
40
|
|
|
41
41
|
Visit [companies.remotion.dev](https://companies.remotion.dev) for pricing and to buy a license.
|
package/dist/degit.d.ts
CHANGED
|
File without changes
|
package/dist/degit.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/init.d.ts
CHANGED
|
File without changes
|
package/dist/init.js
CHANGED
|
@@ -114,10 +114,10 @@ const init = async () => {
|
|
|
114
114
|
await (0, open_in_editor_flow_1.openInEditorFlow)(projectRoot);
|
|
115
115
|
log_1.Log.info('Get started by running');
|
|
116
116
|
log_1.Log.info(chalk_1.default.blueBright(`cd ${folderName}`));
|
|
117
|
-
log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.
|
|
117
|
+
log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getDevCommand)(pkgManager, selectedTemplate)));
|
|
118
118
|
log_1.Log.info('');
|
|
119
119
|
log_1.Log.info('To render a video, run');
|
|
120
|
-
log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.
|
|
120
|
+
log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getRenderCommandForTemplate)(pkgManager, selectedTemplate)));
|
|
121
121
|
log_1.Log.info('');
|
|
122
122
|
log_1.Log.info('Docs to get you started:', chalk_1.default.underline('https://www.remotion.dev/docs/the-fundamentals'));
|
|
123
123
|
log_1.Log.info('Enjoy Remotion!');
|
|
File without changes
|
|
File without changes
|
package/dist/log.d.ts
CHANGED
|
File without changes
|
package/dist/log.js
CHANGED
|
File without changes
|
package/dist/mkdirp.d.ts
CHANGED
|
File without changes
|
package/dist/mkdirp.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/open-in-editor.d.ts
CHANGED
|
File without changes
|
package/dist/open-in-editor.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -14,6 +14,9 @@ exports.listOfRemotionPackages = [
|
|
|
14
14
|
'@remotion/skia',
|
|
15
15
|
'@remotion/lottie',
|
|
16
16
|
'@remotion/media-utils',
|
|
17
|
+
'@remotion/motion-blur',
|
|
18
|
+
'@remotion/google-fonts',
|
|
19
|
+
'@remotion/noise',
|
|
17
20
|
'@remotion/paths',
|
|
18
21
|
'@remotion/babel-loader',
|
|
19
22
|
'@remotion/lambda',
|
package/dist/patch-readme.d.ts
CHANGED
|
File without changes
|
package/dist/patch-readme.js
CHANGED
|
@@ -22,8 +22,8 @@ const patchReadmeMd = (projectRoot, packageManager) => {
|
|
|
22
22
|
if (c.startsWith('npm run build')) {
|
|
23
23
|
return (0, pkg_managers_1.getRenderCommand)(packageManager);
|
|
24
24
|
}
|
|
25
|
-
if (c.startsWith('npm run
|
|
26
|
-
return (0, pkg_managers_1.
|
|
25
|
+
if (c.startsWith('npm run ')) {
|
|
26
|
+
return (0, pkg_managers_1.getRunCommand)(packageManager) + c.replace('npm run', '');
|
|
27
27
|
}
|
|
28
28
|
return c;
|
|
29
29
|
})
|
package/dist/pkg-managers.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { Template } from './templates';
|
|
1
2
|
export declare type PackageManager = 'npm' | 'yarn' | 'pnpm';
|
|
2
3
|
export declare const selectPackageManager: () => PackageManager;
|
|
3
4
|
export declare const getInstallCommand: (manager: PackageManager) => "yarn" | "npm i" | "pnpm i" | undefined;
|
|
5
|
+
export declare const getDevCommand: (manager: PackageManager, template: Template) => string | undefined;
|
|
6
|
+
export declare const getRenderCommandForTemplate: (manager: PackageManager, template: Template) => string | undefined;
|
|
4
7
|
export declare const getStartCommand: (manager: PackageManager) => "npm start" | "yarn start" | "pnpm start" | undefined;
|
|
5
8
|
export declare const getRenderCommand: (manager: PackageManager) => "npm run build" | "yarn build" | "pnpm build" | undefined;
|
|
6
|
-
export declare const
|
|
9
|
+
export declare const getRunCommand: (manager: PackageManager) => "npm run" | "yarn run" | "pnpm run";
|
package/dist/pkg-managers.js
CHANGED
|
@@ -3,7 +3,7 @@ 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.
|
|
6
|
+
exports.getRunCommand = exports.getRenderCommand = exports.getStartCommand = exports.getRenderCommandForTemplate = exports.getDevCommand = exports.getInstallCommand = exports.selectPackageManager = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const shouldUseYarn = () => {
|
|
9
9
|
var _a, _b;
|
|
@@ -47,6 +47,23 @@ const getInstallCommand = (manager) => {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
exports.getInstallCommand = getInstallCommand;
|
|
50
|
+
const getDevCommand = (manager, template) => {
|
|
51
|
+
if (template.cliId === 'remix') {
|
|
52
|
+
return `${(0, exports.getRunCommand)(manager)} dev`;
|
|
53
|
+
}
|
|
54
|
+
return (0, exports.getStartCommand)(manager);
|
|
55
|
+
};
|
|
56
|
+
exports.getDevCommand = getDevCommand;
|
|
57
|
+
const getRenderCommandForTemplate = (manager, template) => {
|
|
58
|
+
if (template.cliId === 'remix') {
|
|
59
|
+
return `${(0, exports.getRunCommand)(manager)} remotion:render`;
|
|
60
|
+
}
|
|
61
|
+
if (template.cliId === 'still') {
|
|
62
|
+
return `${(0, exports.getRunCommand)(manager)} render`;
|
|
63
|
+
}
|
|
64
|
+
return (0, exports.getRenderCommand)(manager);
|
|
65
|
+
};
|
|
66
|
+
exports.getRenderCommandForTemplate = getRenderCommandForTemplate;
|
|
50
67
|
const getStartCommand = (manager) => {
|
|
51
68
|
if (manager === 'npm') {
|
|
52
69
|
return `npm start`;
|
|
@@ -71,15 +88,16 @@ const getRenderCommand = (manager) => {
|
|
|
71
88
|
}
|
|
72
89
|
};
|
|
73
90
|
exports.getRenderCommand = getRenderCommand;
|
|
74
|
-
const
|
|
91
|
+
const getRunCommand = (manager) => {
|
|
75
92
|
if (manager === 'npm') {
|
|
76
|
-
return `npm run
|
|
93
|
+
return `npm run`;
|
|
77
94
|
}
|
|
78
95
|
if (manager === 'yarn') {
|
|
79
|
-
return `yarn run
|
|
96
|
+
return `yarn run`;
|
|
80
97
|
}
|
|
81
98
|
if (manager === 'pnpm') {
|
|
82
|
-
return `pnpm run
|
|
99
|
+
return `pnpm run`;
|
|
83
100
|
}
|
|
101
|
+
throw new TypeError('unknown package manager');
|
|
84
102
|
};
|
|
85
|
-
exports.
|
|
103
|
+
exports.getRunCommand = getRunCommand;
|
package/dist/prompts.d.ts
CHANGED
|
File without changes
|
package/dist/prompts.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/select-template.js
CHANGED
|
File without changes
|
package/dist/strip-ansi.d.ts
CHANGED
|
File without changes
|
package/dist/strip-ansi.js
CHANGED
|
File without changes
|
package/dist/templates.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
declare type DynamicTemplate = {
|
|
2
|
+
type: 'video';
|
|
3
|
+
promoVideo: {
|
|
4
|
+
muxId: string;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
9
|
+
type: 'image';
|
|
10
|
+
promoBanner: {
|
|
11
|
+
src: string;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
1
16
|
export declare type Template = {
|
|
2
17
|
shortName: string;
|
|
3
18
|
description: string;
|
|
@@ -5,11 +20,8 @@ export declare type Template = {
|
|
|
5
20
|
repoName: string;
|
|
6
21
|
homePageLabel: string;
|
|
7
22
|
longerDescription: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
height: number;
|
|
12
|
-
};
|
|
13
|
-
cliId: string;
|
|
14
|
-
};
|
|
23
|
+
cliId: 'hello-world' | 'javascript' | 'blank' | 'remix' | 'three' | 'still' | 'tts' | 'audiogram' | 'skia' | 'tailwind';
|
|
24
|
+
defaultBranch: string;
|
|
25
|
+
} & DynamicTemplate;
|
|
15
26
|
export declare const FEATURED_TEMPLATES: Template[];
|
|
27
|
+
export {};
|
package/dist/templates.js
CHANGED
|
@@ -15,10 +15,12 @@ exports.FEATURED_TEMPLATES = [
|
|
|
15
15
|
width: 1920,
|
|
16
16
|
},
|
|
17
17
|
cliId: 'hello-world',
|
|
18
|
+
type: 'video',
|
|
19
|
+
defaultBranch: 'main',
|
|
18
20
|
},
|
|
19
21
|
{
|
|
20
22
|
homePageLabel: 'JavaScript',
|
|
21
|
-
shortName: 'Hello World (
|
|
23
|
+
shortName: 'Hello World (JavaScript)',
|
|
22
24
|
org: 'remotion-dev',
|
|
23
25
|
repoName: 'template-helloworld-javascript',
|
|
24
26
|
description: 'The default starter template in plain JS',
|
|
@@ -29,6 +31,8 @@ exports.FEATURED_TEMPLATES = [
|
|
|
29
31
|
height: 1080,
|
|
30
32
|
},
|
|
31
33
|
cliId: 'javascript',
|
|
34
|
+
type: 'video',
|
|
35
|
+
defaultBranch: 'main',
|
|
32
36
|
},
|
|
33
37
|
{
|
|
34
38
|
homePageLabel: 'Blank',
|
|
@@ -43,6 +47,24 @@ exports.FEATURED_TEMPLATES = [
|
|
|
43
47
|
height: 720,
|
|
44
48
|
},
|
|
45
49
|
cliId: 'blank',
|
|
50
|
+
type: 'video',
|
|
51
|
+
defaultBranch: 'main',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
homePageLabel: 'Remix',
|
|
55
|
+
shortName: 'Remix',
|
|
56
|
+
org: 'florentpergoud',
|
|
57
|
+
repoName: 'remotion-remix-template',
|
|
58
|
+
description: 'Remotion + Remix Starter Kit',
|
|
59
|
+
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
|
+
promoBanner: {
|
|
61
|
+
width: 1280,
|
|
62
|
+
height: 720,
|
|
63
|
+
src: '/img/remix-template.png',
|
|
64
|
+
},
|
|
65
|
+
cliId: 'remix',
|
|
66
|
+
type: 'image',
|
|
67
|
+
defaultBranch: 'main',
|
|
46
68
|
},
|
|
47
69
|
{
|
|
48
70
|
homePageLabel: '3D',
|
|
@@ -57,6 +79,8 @@ exports.FEATURED_TEMPLATES = [
|
|
|
57
79
|
height: 720,
|
|
58
80
|
},
|
|
59
81
|
cliId: 'three',
|
|
82
|
+
type: 'video',
|
|
83
|
+
defaultBranch: 'main',
|
|
60
84
|
},
|
|
61
85
|
{
|
|
62
86
|
homePageLabel: 'Stills',
|
|
@@ -71,6 +95,8 @@ exports.FEATURED_TEMPLATES = [
|
|
|
71
95
|
width: 1200,
|
|
72
96
|
},
|
|
73
97
|
cliId: 'still',
|
|
98
|
+
type: 'video',
|
|
99
|
+
defaultBranch: 'main',
|
|
74
100
|
},
|
|
75
101
|
{
|
|
76
102
|
homePageLabel: 'TTS',
|
|
@@ -85,6 +111,8 @@ exports.FEATURED_TEMPLATES = [
|
|
|
85
111
|
height: 1080,
|
|
86
112
|
},
|
|
87
113
|
cliId: 'tts',
|
|
114
|
+
type: 'video',
|
|
115
|
+
defaultBranch: 'master',
|
|
88
116
|
},
|
|
89
117
|
{
|
|
90
118
|
homePageLabel: 'Audiogram',
|
|
@@ -99,6 +127,8 @@ exports.FEATURED_TEMPLATES = [
|
|
|
99
127
|
width: 1080,
|
|
100
128
|
},
|
|
101
129
|
cliId: 'audiogram',
|
|
130
|
+
type: 'video',
|
|
131
|
+
defaultBranch: 'main',
|
|
102
132
|
},
|
|
103
133
|
{
|
|
104
134
|
homePageLabel: 'Skia',
|
|
@@ -113,6 +143,8 @@ exports.FEATURED_TEMPLATES = [
|
|
|
113
143
|
width: 1920,
|
|
114
144
|
},
|
|
115
145
|
cliId: 'skia',
|
|
146
|
+
type: 'video',
|
|
147
|
+
defaultBranch: 'main',
|
|
116
148
|
},
|
|
117
149
|
{
|
|
118
150
|
homePageLabel: 'Tailwind',
|
|
@@ -127,5 +159,7 @@ exports.FEATURED_TEMPLATES = [
|
|
|
127
159
|
width: 1280,
|
|
128
160
|
},
|
|
129
161
|
cliId: 'tailwind',
|
|
162
|
+
type: 'video',
|
|
163
|
+
defaultBranch: 'main',
|
|
130
164
|
},
|
|
131
165
|
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const got_1 = __importDefault(require("got"));
|
|
7
|
+
const vitest_1 = require("vitest");
|
|
8
|
+
const templates_1 = require("../templates");
|
|
9
|
+
const getFileForTemplate = (template, file) => {
|
|
10
|
+
return `https://raw.githubusercontent.com/${template.org}/${template.repoName}/${template.defaultBranch}/${file}`;
|
|
11
|
+
};
|
|
12
|
+
for (const template of templates_1.FEATURED_TEMPLATES) {
|
|
13
|
+
(0, vitest_1.test)(template.shortName + ' should have a valid package.json', async () => {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const packageLockJson = getFileForTemplate(template, 'package.json');
|
|
16
|
+
const res = await (0, got_1.default)(packageLockJson, {
|
|
17
|
+
throwHttpErrors: false,
|
|
18
|
+
});
|
|
19
|
+
(0, vitest_1.expect)(res.statusCode).toBe(200);
|
|
20
|
+
const body = JSON.parse(res.body);
|
|
21
|
+
if (!template.shortName.includes('Remix')) {
|
|
22
|
+
(0, vitest_1.expect)(body.scripts.build).toMatch(/render/);
|
|
23
|
+
(0, vitest_1.expect)(body.scripts.build).not.toContain('index');
|
|
24
|
+
}
|
|
25
|
+
(0, vitest_1.expect)(body.dependencies.remotion).toMatch(/^\^3/);
|
|
26
|
+
(0, vitest_1.expect)(body.dependencies['@remotion/cli']).toMatch(/^\^3/);
|
|
27
|
+
(0, vitest_1.expect)(body.dependencies.react).toMatch(/^\^?18/);
|
|
28
|
+
(0, vitest_1.expect)(body.dependencies['react-dom']).toMatch(/^\^?18/);
|
|
29
|
+
(0, vitest_1.expect)(body.devDependencies.prettier).toMatch(/^\^?2/);
|
|
30
|
+
(0, vitest_1.expect)(body.devDependencies.eslint).toMatch(/^\^?8/);
|
|
31
|
+
const eitherPluginOrConfig = ((_a = body.devDependencies['@remotion/eslint-config']) === null || _a === void 0 ? void 0 : _a.match(/^\^3/)) ||
|
|
32
|
+
((_b = body.devDependencies['@remotion/eslint-plugin']) === null || _b === void 0 ? void 0 : _b.match(/^\^3/));
|
|
33
|
+
(0, vitest_1.expect)(eitherPluginOrConfig).toBeTruthy();
|
|
34
|
+
if (!template.shortName.includes('JavaScript')) {
|
|
35
|
+
(0, vitest_1.expect)(body.devDependencies.typescript).toMatch(/^\^?4/);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
(0, vitest_1.test)(template.shortName + ' should not have a package-lock.json', async () => {
|
|
39
|
+
const packageLockJson = getFileForTemplate(template, 'package-lock.json');
|
|
40
|
+
const res = await (0, got_1.default)(packageLockJson, {
|
|
41
|
+
throwHttpErrors: false,
|
|
42
|
+
});
|
|
43
|
+
(0, vitest_1.expect)(res.statusCode).toBe(404);
|
|
44
|
+
});
|
|
45
|
+
(0, vitest_1.test)(template.shortName + ' should not have a yarn.lock', async () => {
|
|
46
|
+
const packageLockJson = getFileForTemplate(template, 'yarn.lock');
|
|
47
|
+
const res = await (0, got_1.default)(packageLockJson, {
|
|
48
|
+
throwHttpErrors: false,
|
|
49
|
+
});
|
|
50
|
+
(0, vitest_1.expect)(res.statusCode).toBe(404);
|
|
51
|
+
});
|
|
52
|
+
(0, vitest_1.test)(template.shortName + ' should not have a pnpm-lock.yaml', async () => {
|
|
53
|
+
const packageLockJson = getFileForTemplate(template, 'pnpm-lock.yaml');
|
|
54
|
+
const res = await (0, got_1.default)(packageLockJson, {
|
|
55
|
+
throwHttpErrors: false,
|
|
56
|
+
});
|
|
57
|
+
(0, vitest_1.expect)(res.statusCode).toBe(404);
|
|
58
|
+
});
|
|
59
|
+
(0, vitest_1.test)(template.shortName + ' should not have a standard entry point', async () => {
|
|
60
|
+
const { contents, entryPoint } = await findFile([
|
|
61
|
+
getFileForTemplate(template, 'src/index.ts'),
|
|
62
|
+
getFileForTemplate(template, 'src/index.js'),
|
|
63
|
+
getFileForTemplate(template, 'remotion/index.ts'),
|
|
64
|
+
getFileForTemplate(template, 'app/remotion/index.ts'),
|
|
65
|
+
]);
|
|
66
|
+
(0, vitest_1.expect)(entryPoint).toBeTruthy();
|
|
67
|
+
(0, vitest_1.expect)(contents).toMatch(/RemotionRoot/);
|
|
68
|
+
});
|
|
69
|
+
(0, vitest_1.test)(template.shortName + ' should not have a standard Root file', async () => {
|
|
70
|
+
const { contents, entryPoint } = await findFile([
|
|
71
|
+
getFileForTemplate(template, 'src/Root.tsx'),
|
|
72
|
+
getFileForTemplate(template, 'src/Root.jsx'),
|
|
73
|
+
getFileForTemplate(template, 'remotion/Root.tsx'),
|
|
74
|
+
getFileForTemplate(template, 'app/remotion/Root.tsx'),
|
|
75
|
+
]);
|
|
76
|
+
(0, vitest_1.expect)(entryPoint).toBeTruthy();
|
|
77
|
+
(0, vitest_1.expect)(contents).toMatch(/export const RemotionRoot/);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const findFile = async (options) => {
|
|
81
|
+
let entryPoint = null;
|
|
82
|
+
let contents = null;
|
|
83
|
+
for (const point of options) {
|
|
84
|
+
const res = await (0, got_1.default)(point, {
|
|
85
|
+
throwHttpErrors: false,
|
|
86
|
+
});
|
|
87
|
+
if (res.statusCode === 200) {
|
|
88
|
+
entryPoint = point;
|
|
89
|
+
contents = res.body;
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return { entryPoint, contents };
|
|
94
|
+
};
|
package/dist/validate-name.d.ts
CHANGED
|
File without changes
|
package/dist/validate-name.js
CHANGED
|
File without changes
|
package/dist/yesno.d.ts
CHANGED
|
File without changes
|
package/dist/yesno.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-video",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.23-ensure-ffmpeg.123+3ffa18f9e",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"create-video": "bin.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
"_template"
|
|
10
|
+
"dist"
|
|
12
11
|
],
|
|
13
12
|
"scripts": {
|
|
14
13
|
"build": "tsc -d",
|
|
@@ -30,10 +29,12 @@
|
|
|
30
29
|
"@types/node": "^16.7.5",
|
|
31
30
|
"@types/prompts": "^2.0.12",
|
|
32
31
|
"@types/tar": "6.1.1",
|
|
33
|
-
"eslint": "8.
|
|
32
|
+
"eslint": "8.25.0",
|
|
33
|
+
"got": "^11",
|
|
34
34
|
"prettier": "2.6.2",
|
|
35
35
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
36
|
-
"typescript": "^4.7.0"
|
|
36
|
+
"typescript": "^4.7.0",
|
|
37
|
+
"vitest": "0.24.3"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3ffa18f9eafd4322373c51c92816c671b92e3258"
|
|
39
40
|
}
|