create-video 4.0.0-reorg.7 → 4.0.0-resetpath.13

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.
Files changed (46) hide show
  1. package/LICENSE.md +8 -8
  2. package/dist/add-yarn2-support.d.ts +6 -0
  3. package/dist/add-yarn2-support.js +27 -0
  4. package/dist/degit.d.ts +0 -0
  5. package/dist/degit.js +0 -0
  6. package/dist/index.d.ts +0 -0
  7. package/dist/index.js +1 -1
  8. package/dist/init.d.ts +8 -0
  9. package/dist/init.js +63 -14
  10. package/dist/latest-remotion-version.d.ts +1 -0
  11. package/dist/latest-remotion-version.js +31 -0
  12. package/dist/log.d.ts +0 -0
  13. package/dist/log.js +0 -0
  14. package/dist/mkdirp.d.ts +0 -0
  15. package/dist/mkdirp.js +0 -0
  16. package/dist/open-in-editor-flow.d.ts +0 -0
  17. package/dist/open-in-editor-flow.js +0 -0
  18. package/dist/open-in-editor.d.ts +0 -0
  19. package/dist/open-in-editor.js +0 -0
  20. package/dist/patch-package-json.d.ts +11 -1
  21. package/dist/patch-package-json.js +38 -5
  22. package/dist/patch-readme.d.ts +2 -1
  23. package/dist/patch-readme.js +4 -4
  24. package/dist/pkg-managers.d.ts +6 -2
  25. package/dist/pkg-managers.js +53 -7
  26. package/dist/prompts.d.ts +0 -0
  27. package/dist/prompts.js +0 -0
  28. package/dist/resolve-project-root.d.ts +0 -0
  29. package/dist/resolve-project-root.js +0 -0
  30. package/dist/select-template.d.ts +0 -0
  31. package/dist/select-template.js +0 -0
  32. package/dist/strip-ansi.d.ts +0 -0
  33. package/dist/strip-ansi.js +0 -0
  34. package/dist/templates.d.ts +21 -8
  35. package/dist/templates.js +87 -13
  36. package/dist/test/git-status.test.d.ts +1 -0
  37. package/dist/test/git-status.test.js +24 -0
  38. package/dist/test/patch-package-json.test.d.ts +1 -0
  39. package/dist/test/patch-package-json.test.js +48 -0
  40. package/dist/test/validate-templates.test.d.ts +1 -0
  41. package/dist/test/validate-templates.test.js +122 -0
  42. package/dist/validate-name.d.ts +0 -0
  43. package/dist/validate-name.js +0 -0
  44. package/dist/yesno.d.ts +0 -0
  45. package/dist/yesno.js +0 -0
  46. package/package.json +11 -7
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 organisations 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.
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 [Jonny Burger](https://jonny.io)
10
+ Copyright © 2023 [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 organisation with up to 3 employees
18
- - a non-profit or not-for-profit organisation
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 and 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.
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 noninfringement. 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.
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.
@@ -0,0 +1,6 @@
1
+ import type { PackageManager } from './pkg-managers';
2
+ export declare const createYarnYmlFile: ({ projectRoot, pkgManagerVersion, pkgManager, }: {
3
+ projectRoot: string;
4
+ pkgManagerVersion: string | null;
5
+ pkgManager: PackageManager;
6
+ }) => void;
@@ -0,0 +1,27 @@
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
+ exports.createYarnYmlFile = void 0;
7
+ const fs_1 = require("fs");
8
+ const path_1 = __importDefault(require("path"));
9
+ const log_1 = require("./log");
10
+ const createYarnYmlFile = ({ projectRoot, pkgManagerVersion, pkgManager, }) => {
11
+ if (pkgManager !== 'yarn') {
12
+ return;
13
+ }
14
+ if (!pkgManagerVersion) {
15
+ return;
16
+ }
17
+ const majorVersion = pkgManagerVersion[0];
18
+ const majorVersionNumber = Number(majorVersion);
19
+ if (majorVersionNumber < 2) {
20
+ return;
21
+ }
22
+ log_1.Log.info('Remotion has no support for automatically installing the Yarn PnP modules yet.');
23
+ log_1.Log.info('Creating .yarnrc.yml file to disable Yarn PnP.');
24
+ const yarnrcYml = `nodeLinker: node-modules\n`;
25
+ (0, fs_1.writeFileSync)(path_1.default.join(projectRoot, '.yarnrc.yml'), yarnrcYml);
26
+ };
27
+ exports.createYarnYmlFile = createYarnYmlFile;
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
@@ -6,5 +6,5 @@ exports.CreateVideoInternals = {
6
6
  FEATURED_TEMPLATES: templates_1.FEATURED_TEMPLATES,
7
7
  };
8
8
  exports.default = () => {
9
- throw new Error('create-video is a CLI tool only. Run `yarn create video` or `npm init video` instead!');
9
+ throw new Error('create-video is a CLI tool only. Run `npm init video`, `pnpm create video` or `yarn create video` instead!');
10
10
  };
package/dist/init.d.ts CHANGED
@@ -1 +1,9 @@
1
+ export declare const checkGitAvailability: (cwd: string, command: string) => Promise<{
2
+ type: 'no-git-repo';
3
+ } | {
4
+ type: 'is-git-repo';
5
+ location: string;
6
+ } | {
7
+ type: 'git-not-installed';
8
+ }>;
1
9
  export declare const init: () => Promise<void>;
package/dist/init.js CHANGED
@@ -3,10 +3,13 @@ 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.init = void 0;
6
+ exports.init = exports.checkGitAvailability = void 0;
7
7
  const chalk_1 = __importDefault(require("chalk"));
8
8
  const execa_1 = __importDefault(require("execa"));
9
+ const os_1 = __importDefault(require("os"));
10
+ const add_yarn2_support_1 = require("./add-yarn2-support");
9
11
  const degit_1 = require("./degit");
12
+ const latest_remotion_version_1 = require("./latest-remotion-version");
10
13
  const log_1 = require("./log");
11
14
  const open_in_editor_flow_1 = require("./open-in-editor-flow");
12
15
  const patch_package_json_1 = require("./patch-package-json");
@@ -14,19 +17,36 @@ const patch_readme_1 = require("./patch-readme");
14
17
  const pkg_managers_1 = require("./pkg-managers");
15
18
  const resolve_project_root_1 = require("./resolve-project-root");
16
19
  const select_template_1 = require("./select-template");
17
- const isGitExecutableAvailable = async () => {
20
+ const yesno_1 = require("./yesno");
21
+ const binaryExists = (name) => {
22
+ const isWin = os_1.default.platform() === 'win32';
23
+ const where = isWin ? 'where' : 'which';
18
24
  try {
19
- await (0, execa_1.default)('git', ['--version']);
25
+ execa_1.default.sync(where, [name]);
20
26
  return true;
21
27
  }
28
+ catch (err) {
29
+ return false;
30
+ }
31
+ };
32
+ const checkGitAvailability = async (cwd, command) => {
33
+ if (!binaryExists(command)) {
34
+ return { type: 'git-not-installed' };
35
+ }
36
+ try {
37
+ const result = await (0, execa_1.default)(command, ['rev-parse', '--show-toplevel'], {
38
+ cwd,
39
+ });
40
+ return { type: 'is-git-repo', location: result.stdout };
41
+ }
22
42
  catch (e) {
23
- if (e.errno === 'ENOENT') {
24
- log_1.Log.warn('Unable to find `git` command. `git` not in PATH.');
25
- return false;
26
- }
43
+ return {
44
+ type: 'no-git-repo',
45
+ };
27
46
  }
28
47
  };
29
- const initGitRepoAsync = async (root) => {
48
+ exports.checkGitAvailability = checkGitAvailability;
49
+ const getGitStatus = async (root) => {
30
50
  // not in git tree, so let's init
31
51
  try {
32
52
  await (0, execa_1.default)('git', ['init'], { cwd: root });
@@ -48,18 +68,42 @@ const initGitRepoAsync = async (root) => {
48
68
  };
49
69
  const init = async () => {
50
70
  var _a, _b, _c, _d, _e, _f;
71
+ const result = await (0, exports.checkGitAvailability)(process.cwd(), 'git');
72
+ if (result.type === 'git-not-installed') {
73
+ log_1.Log.error('Git is not installed or not in the path. Install Git to continue.');
74
+ process.exit(1);
75
+ }
76
+ if (result.type === 'is-git-repo') {
77
+ const should = await (0, yesno_1.yesOrNo)({
78
+ defaultValue: false,
79
+ question: `You are already inside a Git repo (${result.location}).\nThis might lead to a Git Submodule being created. Do you want to continue? (y/N):`,
80
+ });
81
+ if (!should) {
82
+ log_1.Log.error('Aborting.');
83
+ process.exit(1);
84
+ }
85
+ }
51
86
  const [projectRoot, folderName] = await (0, resolve_project_root_1.resolveProjectRoot)();
52
- await isGitExecutableAvailable();
87
+ const latestRemotionVersionPromise = (0, latest_remotion_version_1.getLatestRemotionVersion)();
53
88
  const selectedTemplate = await (0, select_template_1.selectTemplate)();
54
89
  const pkgManager = (0, pkg_managers_1.selectPackageManager)();
90
+ const pkgManagerVersion = await (0, pkg_managers_1.getPackageManagerVersionOrNull)(pkgManager);
55
91
  try {
56
92
  await (0, degit_1.degit)({
57
93
  repoOrg: selectedTemplate.org,
58
94
  repoName: selectedTemplate.repoName,
59
95
  dest: projectRoot,
60
96
  });
61
- (0, patch_readme_1.patchReadmeMd)(projectRoot, pkgManager);
62
- (0, patch_package_json_1.patchPackageJson)(projectRoot, folderName);
97
+ (0, patch_readme_1.patchReadmeMd)(projectRoot, pkgManager, selectedTemplate);
98
+ const latestVersion = await latestRemotionVersionPromise;
99
+ (0, patch_package_json_1.patchPackageJson)({
100
+ projectRoot,
101
+ projectName: folderName,
102
+ latestRemotionVersion: latestVersion,
103
+ packageManager: pkgManagerVersion
104
+ ? `${pkgManager}@${pkgManagerVersion}`
105
+ : null,
106
+ });
63
107
  }
64
108
  catch (e) {
65
109
  log_1.Log.error(e);
@@ -67,6 +111,11 @@ const init = async () => {
67
111
  process.exit(1);
68
112
  }
69
113
  log_1.Log.info(`Copied ${chalk_1.default.blueBright(selectedTemplate.shortName)} to ${chalk_1.default.blueBright(folderName)}. Installing dependencies...`);
114
+ (0, add_yarn2_support_1.createYarnYmlFile)({
115
+ pkgManager,
116
+ pkgManagerVersion,
117
+ projectRoot,
118
+ });
70
119
  if (pkgManager === 'yarn') {
71
120
  log_1.Log.info('> yarn');
72
121
  const promise = (0, execa_1.default)('yarn', [], {
@@ -100,17 +149,17 @@ const init = async () => {
100
149
  (_f = promise.stdout) === null || _f === void 0 ? void 0 : _f.pipe(process.stdout);
101
150
  await promise;
102
151
  }
103
- await initGitRepoAsync(projectRoot);
152
+ await getGitStatus(projectRoot);
104
153
  log_1.Log.info();
105
154
  log_1.Log.info(`Welcome to ${chalk_1.default.blueBright('Remotion')}!`);
106
155
  log_1.Log.info(`✨ Your video has been created at ${chalk_1.default.blueBright(folderName)}.`);
107
156
  await (0, open_in_editor_flow_1.openInEditorFlow)(projectRoot);
108
157
  log_1.Log.info('Get started by running');
109
158
  log_1.Log.info(chalk_1.default.blueBright(`cd ${folderName}`));
110
- log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getStartCommand)(pkgManager)));
159
+ log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getDevCommand)(pkgManager, selectedTemplate)));
111
160
  log_1.Log.info('');
112
161
  log_1.Log.info('To render a video, run');
113
- log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getRenderCommand)(pkgManager)));
162
+ log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getRenderCommandForTemplate)(pkgManager, selectedTemplate)));
114
163
  log_1.Log.info('');
115
164
  log_1.Log.info('Docs to get you started:', chalk_1.default.underline('https://www.remotion.dev/docs/the-fundamentals'));
116
165
  log_1.Log.info('Enjoy Remotion!');
@@ -0,0 +1 @@
1
+ export declare const getLatestRemotionVersion: () => Promise<any>;
@@ -0,0 +1,31 @@
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
+ exports.getLatestRemotionVersion = void 0;
7
+ const https_1 = __importDefault(require("https"));
8
+ const getPackageJsonForRemotion = () => {
9
+ return new Promise((resolve, reject) => {
10
+ const req = https_1.default.get('https://registry.npmjs.org/remotion', {
11
+ headers: {
12
+ accept: 'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*',
13
+ },
14
+ }, (res) => {
15
+ let data = '';
16
+ res.on('data', (d) => {
17
+ data += d;
18
+ });
19
+ res.on('end', () => resolve(data));
20
+ });
21
+ req.on('error', (error) => {
22
+ reject(error);
23
+ });
24
+ req.end();
25
+ });
26
+ };
27
+ const getLatestRemotionVersion = async () => {
28
+ const pkgJson = await getPackageJsonForRemotion();
29
+ return JSON.parse(pkgJson)['dist-tags'].latest;
30
+ };
31
+ exports.getLatestRemotionVersion = getLatestRemotionVersion;
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
File without changes
File without changes
@@ -1 +1,11 @@
1
- export declare const patchPackageJson: (projectRoot: string, projectName: string) => void;
1
+ import type { PackageManager } from './pkg-managers';
2
+ export declare const listOfRemotionPackages: string[];
3
+ export declare const patchPackageJson: ({ projectRoot, projectName, latestRemotionVersion, packageManager, }: {
4
+ projectRoot: string;
5
+ projectName: string;
6
+ latestRemotionVersion: string;
7
+ packageManager: `${PackageManager}@${string}` | null;
8
+ }, { getPackageJson, setPackageJson, }?: {
9
+ getPackageJson?: ((filename: string) => string) | undefined;
10
+ setPackageJson?: ((filename: string, content: string) => void) | undefined;
11
+ }) => void;
@@ -3,17 +3,50 @@ 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.patchPackageJson = void 0;
6
+ exports.patchPackageJson = exports.listOfRemotionPackages = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
- const patchPackageJson = (projectRoot, projectName) => {
9
+ exports.listOfRemotionPackages = [
10
+ '@remotion/bundler',
11
+ '@remotion/cli',
12
+ '@remotion/eslint-config',
13
+ '@remotion/renderer',
14
+ '@remotion/skia',
15
+ '@remotion/lottie',
16
+ '@remotion/media-utils',
17
+ '@remotion/motion-blur',
18
+ '@remotion/google-fonts',
19
+ '@remotion/noise',
20
+ '@remotion/paths',
21
+ '@remotion/babel-loader',
22
+ '@remotion/lambda',
23
+ '@remotion/player',
24
+ '@remotion/preload',
25
+ '@remotion/three',
26
+ '@remotion/gif',
27
+ 'remotion',
28
+ ];
29
+ const patchPackageJson = ({ projectRoot, projectName, latestRemotionVersion, packageManager, }, { getPackageJson = (filename) => fs_1.default.readFileSync(filename, 'utf-8'), setPackageJson = (filename, content) => fs_1.default.writeFileSync(filename, content), } = {}) => {
10
30
  const fileName = path_1.default.join(projectRoot, 'package.json');
11
- const contents = fs_1.default.readFileSync(fileName, 'utf-8');
31
+ const contents = getPackageJson(fileName);
12
32
  const packageJson = JSON.parse(contents);
33
+ const { name, dependencies, ...others } = packageJson;
34
+ const newDependencies = Object.keys(dependencies)
35
+ .map((d) => {
36
+ if (exports.listOfRemotionPackages.includes(d)) {
37
+ return [d, latestRemotionVersion];
38
+ }
39
+ return [d, dependencies[d]];
40
+ })
41
+ .reduce((a, b) => {
42
+ return { ...a, [b[0]]: b[1] };
43
+ }, {});
13
44
  const newPackageJson = JSON.stringify({
14
- ...packageJson,
15
45
  name: projectName,
46
+ ...others,
47
+ dependencies: newDependencies,
48
+ ...(packageManager ? { packageManager } : {}),
16
49
  }, undefined, 2);
17
- fs_1.default.writeFileSync(fileName, newPackageJson);
50
+ setPackageJson(fileName, newPackageJson);
18
51
  };
19
52
  exports.patchPackageJson = patchPackageJson;
@@ -1,2 +1,3 @@
1
1
  import type { PackageManager } from './pkg-managers';
2
- export declare const patchReadmeMd: (projectRoot: string, packageManager: PackageManager) => void;
2
+ import type { Template } from './templates';
3
+ export declare const patchReadmeMd: (projectRoot: string, packageManager: PackageManager, template: Template) => void;
@@ -7,7 +7,7 @@ exports.patchReadmeMd = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const pkg_managers_1 = require("./pkg-managers");
10
- const patchReadmeMd = (projectRoot, packageManager) => {
10
+ const patchReadmeMd = (projectRoot, packageManager, template) => {
11
11
  const fileName = path_1.default.join(projectRoot, 'README.md');
12
12
  const contents = fs_1.default.readFileSync(fileName, 'utf8');
13
13
  const newContents = contents
@@ -17,13 +17,13 @@ const patchReadmeMd = (projectRoot, packageManager) => {
17
17
  return (0, pkg_managers_1.getInstallCommand)(packageManager);
18
18
  }
19
19
  if (c.startsWith('npm start')) {
20
- return (0, pkg_managers_1.getStartCommand)(packageManager);
20
+ return (0, pkg_managers_1.getDevCommand)(packageManager, template);
21
21
  }
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 upgrade')) {
26
- return (0, pkg_managers_1.getUpgradeCommand)(packageManager);
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
  })
@@ -1,6 +1,10 @@
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;
4
- export declare const getStartCommand: (manager: PackageManager) => "npm start" | "yarn start" | "pnpm start" | undefined;
5
+ export declare const getDevCommand: (manager: PackageManager, template: Template) => string | undefined;
6
+ export declare const getRenderCommandForTemplate: (manager: PackageManager, template: Template) => string | undefined;
5
7
  export declare const getRenderCommand: (manager: PackageManager) => "npm run build" | "yarn build" | "pnpm build" | undefined;
6
- export declare const getUpgradeCommand: (manager: PackageManager) => "npm run upgrade" | "yarn run upgrade" | "pnpm run upgrade" | undefined;
8
+ export declare const getRunCommand: (manager: PackageManager) => "npm run" | "yarn run" | "pnpm run";
9
+ export declare const getPackageManagerVersion: (manager: PackageManager) => Promise<string>;
10
+ export declare const getPackageManagerVersionOrNull: (manager: PackageManager) => Promise<string | null>;
@@ -3,7 +3,8 @@ 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.getUpgradeCommand = exports.getRenderCommand = exports.getStartCommand = exports.getInstallCommand = exports.selectPackageManager = void 0;
6
+ exports.getPackageManagerVersionOrNull = exports.getPackageManagerVersion = exports.getRunCommand = exports.getRenderCommand = exports.getRenderCommandForTemplate = exports.getDevCommand = exports.getInstallCommand = exports.selectPackageManager = void 0;
7
+ const child_process_1 = require("child_process");
7
8
  const path_1 = __importDefault(require("path"));
8
9
  const shouldUseYarn = () => {
9
10
  var _a, _b;
@@ -47,6 +48,23 @@ const getInstallCommand = (manager) => {
47
48
  }
48
49
  };
49
50
  exports.getInstallCommand = getInstallCommand;
51
+ const getDevCommand = (manager, template) => {
52
+ if (template.cliId === 'remix' || template.cliId === 'next') {
53
+ return `${(0, exports.getRunCommand)(manager)} dev`;
54
+ }
55
+ return getStartCommand(manager);
56
+ };
57
+ exports.getDevCommand = getDevCommand;
58
+ const getRenderCommandForTemplate = (manager, template) => {
59
+ if (template.cliId === 'remix' || template.cliId === 'next') {
60
+ return `${(0, exports.getRunCommand)(manager)} remotion:render`;
61
+ }
62
+ if (template.cliId === 'still') {
63
+ return `${(0, exports.getRunCommand)(manager)} render`;
64
+ }
65
+ return (0, exports.getRenderCommand)(manager);
66
+ };
67
+ exports.getRenderCommandForTemplate = getRenderCommandForTemplate;
50
68
  const getStartCommand = (manager) => {
51
69
  if (manager === 'npm') {
52
70
  return `npm start`;
@@ -58,7 +76,6 @@ const getStartCommand = (manager) => {
58
76
  return `pnpm start`;
59
77
  }
60
78
  };
61
- exports.getStartCommand = getStartCommand;
62
79
  const getRenderCommand = (manager) => {
63
80
  if (manager === 'npm') {
64
81
  return `npm run build`;
@@ -71,15 +88,44 @@ const getRenderCommand = (manager) => {
71
88
  }
72
89
  };
73
90
  exports.getRenderCommand = getRenderCommand;
74
- const getUpgradeCommand = (manager) => {
91
+ const getRunCommand = (manager) => {
75
92
  if (manager === 'npm') {
76
- return `npm run upgrade`;
93
+ return `npm run`;
77
94
  }
78
95
  if (manager === 'yarn') {
79
- return `yarn run upgrade`;
96
+ return `yarn run`;
80
97
  }
81
98
  if (manager === 'pnpm') {
82
- return `pnpm run upgrade`;
99
+ return `pnpm run`;
100
+ }
101
+ throw new TypeError('unknown package manager');
102
+ };
103
+ exports.getRunCommand = getRunCommand;
104
+ const getPackageManagerVersion = (manager) => {
105
+ const cmd = `${manager} -v`;
106
+ return new Promise((resolve, reject) => {
107
+ (0, child_process_1.exec)(cmd, (error, stdout, stderr) => {
108
+ if (error) {
109
+ reject(error);
110
+ return;
111
+ }
112
+ if (stderr) {
113
+ reject(stderr);
114
+ return;
115
+ }
116
+ resolve(stdout.trim());
117
+ });
118
+ });
119
+ };
120
+ exports.getPackageManagerVersion = getPackageManagerVersion;
121
+ const getPackageManagerVersionOrNull = async (manager) => {
122
+ try {
123
+ const version = await (0, exports.getPackageManagerVersion)(manager);
124
+ return version;
125
+ }
126
+ catch (err) {
127
+ console.warn(`Could not determine the version of ${manager}.`);
128
+ return null;
83
129
  }
84
130
  };
85
- exports.getUpgradeCommand = getUpgradeCommand;
131
+ exports.getPackageManagerVersionOrNull = getPackageManagerVersionOrNull;
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
File without changes
File without changes
File without changes
@@ -1,15 +1,28 @@
1
- export declare type Template = {
2
- shortName: string;
3
- description: string;
4
- org: string;
5
- repoName: string;
6
- homePageLabel: string;
7
- longerDescription: string;
1
+ import React from 'react';
2
+ declare type DynamicTemplate = {
3
+ type: 'video';
8
4
  promoVideo: {
9
5
  muxId: string;
10
6
  width: number;
11
7
  height: number;
12
8
  };
13
- cliId: string;
9
+ } | {
10
+ type: 'image';
11
+ promoBanner: {
12
+ src: string;
13
+ width: number;
14
+ height: number;
15
+ };
14
16
  };
17
+ export declare type Template = {
18
+ shortName: string;
19
+ description: string;
20
+ org: string;
21
+ repoName: string;
22
+ homePageLabel: string;
23
+ longerDescription: React.ReactNode;
24
+ cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'remix' | 'three' | 'still' | 'tts' | 'audiogram' | 'skia' | 'tailwind' | 'overlay';
25
+ defaultBranch: string;
26
+ } & DynamicTemplate;
15
27
  export declare const FEATURED_TEMPLATES: Template[];
28
+ export {};
package/dist/templates.js CHANGED
@@ -1,13 +1,36 @@
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");
5
+ function truthy(value) {
6
+ return Boolean(value);
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
+ // TODO: Update this image
20
+ src: '/img/remix-template.png',
21
+ },
22
+ cliId: 'next',
23
+ type: 'image',
24
+ defaultBranch: 'main',
25
+ };
26
+ // Note that this page is statically analyzed by extract-articles.mjs
4
27
  exports.FEATURED_TEMPLATES = [
5
28
  {
6
- homePageLabel: 'TypeScript',
29
+ homePageLabel: 'Hello World',
7
30
  shortName: 'Hello World',
8
31
  org: 'remotion-dev',
9
32
  repoName: 'template-helloworld',
10
- description: 'The default starter template (recommended)',
33
+ description: 'A "Hello World" starter template',
11
34
  longerDescription: 'A basic template with TypeScript, Prettier and ESLint preconfigured. Our recommended choice for beginners.',
12
35
  promoVideo: {
13
36
  muxId: 'vKvV6aa7GXGlR01cmpc6J8Zz4Gkj9d2hBSnVYoef00900I',
@@ -15,10 +38,29 @@ exports.FEATURED_TEMPLATES = [
15
38
  width: 1920,
16
39
  },
17
40
  cliId: 'hello-world',
41
+ type: 'video',
42
+ defaultBranch: 'main',
43
+ },
44
+ ENABLE_NEXT ? nextTemplate : null,
45
+ {
46
+ homePageLabel: 'Blank',
47
+ shortName: 'Blank',
48
+ description: 'Nothing except an empty canvas',
49
+ org: 'remotion-dev',
50
+ repoName: 'template-empty',
51
+ longerDescription: 'A template containing nothing but an empty canvas. Recommended for people who already worked with Remotion.',
52
+ promoVideo: {
53
+ muxId: 'JD00x15y859GjqO7C9hpILkrSddGzd55K4lfj02dv8gU4',
54
+ width: 1280,
55
+ height: 720,
56
+ },
57
+ cliId: 'blank',
58
+ type: 'video',
59
+ defaultBranch: 'main',
18
60
  },
19
61
  {
20
62
  homePageLabel: 'JavaScript',
21
- shortName: 'Hello World (Javascript)',
63
+ shortName: 'Hello World (JavaScript)',
22
64
  org: 'remotion-dev',
23
65
  repoName: 'template-helloworld-javascript',
24
66
  description: 'The default starter template in plain JS',
@@ -29,20 +71,24 @@ exports.FEATURED_TEMPLATES = [
29
71
  height: 1080,
30
72
  },
31
73
  cliId: 'javascript',
74
+ type: 'video',
75
+ defaultBranch: 'main',
32
76
  },
33
77
  {
34
- homePageLabel: 'Blank',
35
- shortName: 'Blank',
36
- description: 'Nothing except an empty canvas',
78
+ homePageLabel: 'Remix',
79
+ shortName: 'Remix',
37
80
  org: 'remotion-dev',
38
- repoName: 'template-empty',
39
- longerDescription: 'A template containing nothing but an empty canvas. Recommended for people who already worked with Remotion.',
40
- promoVideo: {
41
- muxId: 'JD00x15y859GjqO7C9hpILkrSddGzd55K4lfj02dv8gU4',
81
+ repoName: 'template-remix',
82
+ description: 'Remotion + Remix Starter Kit',
83
+ longerDescription: 'A software-as-a-service starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Built with remix.run.',
84
+ promoBanner: {
42
85
  width: 1280,
43
86
  height: 720,
87
+ src: '/img/remix-template.png',
44
88
  },
45
- cliId: 'blank',
89
+ cliId: 'remix',
90
+ type: 'image',
91
+ defaultBranch: 'main',
46
92
  },
47
93
  {
48
94
  homePageLabel: '3D',
@@ -57,6 +103,8 @@ exports.FEATURED_TEMPLATES = [
57
103
  height: 720,
58
104
  },
59
105
  cliId: 'three',
106
+ type: 'video',
107
+ defaultBranch: 'main',
60
108
  },
61
109
  {
62
110
  homePageLabel: 'Stills',
@@ -71,9 +119,11 @@ exports.FEATURED_TEMPLATES = [
71
119
  width: 1200,
72
120
  },
73
121
  cliId: 'still',
122
+ type: 'video',
123
+ defaultBranch: 'main',
74
124
  },
75
125
  {
76
- homePageLabel: 'TTS',
126
+ homePageLabel: 'Text-To-Speech',
77
127
  shortName: 'Text To Speech',
78
128
  org: 'FelippeChemello',
79
129
  repoName: 'Remotion-TTS-Example',
@@ -85,6 +135,8 @@ exports.FEATURED_TEMPLATES = [
85
135
  height: 1080,
86
136
  },
87
137
  cliId: 'tts',
138
+ type: 'video',
139
+ defaultBranch: 'master',
88
140
  },
89
141
  {
90
142
  homePageLabel: 'Audiogram',
@@ -99,6 +151,8 @@ exports.FEATURED_TEMPLATES = [
99
151
  width: 1080,
100
152
  },
101
153
  cliId: 'audiogram',
154
+ type: 'video',
155
+ defaultBranch: 'main',
102
156
  },
103
157
  {
104
158
  homePageLabel: 'Skia',
@@ -113,6 +167,8 @@ exports.FEATURED_TEMPLATES = [
113
167
  width: 1920,
114
168
  },
115
169
  cliId: 'skia',
170
+ type: 'video',
171
+ defaultBranch: 'main',
116
172
  },
117
173
  {
118
174
  homePageLabel: 'Tailwind',
@@ -127,5 +183,23 @@ exports.FEATURED_TEMPLATES = [
127
183
  width: 1280,
128
184
  },
129
185
  cliId: 'tailwind',
186
+ type: 'video',
187
+ defaultBranch: 'main',
188
+ },
189
+ {
190
+ homePageLabel: 'Overlay',
191
+ shortName: 'Overlay',
192
+ org: 'remotion-dev',
193
+ repoName: 'template-overlay',
194
+ description: 'Overlays for video editing software',
195
+ 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." })] })),
196
+ promoVideo: {
197
+ muxId: 'zgy7XK01009y33Vfzhns02cZS00rOyeZ6WaanaxcrDysqmU',
198
+ height: 720,
199
+ width: 1280,
200
+ },
201
+ cliId: 'overlay',
202
+ type: 'video',
203
+ defaultBranch: 'main',
130
204
  },
131
- ];
205
+ ].filter(truthy);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
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 path_1 = __importDefault(require("path"));
7
+ const vitest_1 = require("vitest");
8
+ const init_1 = require("../init");
9
+ (0, vitest_1.test)('Get git status', async () => {
10
+ const status = await (0, init_1.checkGitAvailability)(process.cwd(), 'git');
11
+ (0, vitest_1.expect)(status).toEqual({
12
+ type: 'is-git-repo',
13
+ location: path_1.default.posix
14
+ .join(__dirname, '..', '..', '..', '..')
15
+ .replace(/\\/g, '/'),
16
+ });
17
+ if (status.type !== 'is-git-repo') {
18
+ throw new Error('is git repo');
19
+ }
20
+ const status2 = await (0, init_1.checkGitAvailability)(path_1.default.dirname(status.location), 'git');
21
+ (0, vitest_1.expect)(status2).toEqual({ type: 'no-git-repo' });
22
+ const status3 = await (0, init_1.checkGitAvailability)(path_1.default.dirname(status.location), 'wronggitbinary');
23
+ (0, vitest_1.expect)(status3).toEqual({ type: 'git-not-installed' });
24
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const vitest_1 = require("vitest");
4
+ const patch_package_json_1 = require("../patch-package-json");
5
+ const packageManagers = ['npm', 'pnpm', 'yarn'];
6
+ for (const packageManager of packageManagers) {
7
+ (0, vitest_1.test)(`Using ${packageManager} package manager provides the correct "packageManager" entry in package.json`, () => {
8
+ const latestRemotionVersion = '1.0.0';
9
+ const packageManagerVersion = '1.22.19';
10
+ const packageJson = {
11
+ name: 'my-video',
12
+ version: '1.0.0',
13
+ description: 'My Remotion video',
14
+ scripts: {
15
+ start: 'remotion preview',
16
+ },
17
+ dependencies: {
18
+ '@remotion/cli': 'stale-remotion-version',
19
+ react: '^18.0.0',
20
+ remotion: 'stale-remotion-version',
21
+ },
22
+ devDependencies: {
23
+ '@types/react': '^18.0.6',
24
+ },
25
+ };
26
+ let newPackageJson = null;
27
+ (0, patch_package_json_1.patchPackageJson)({
28
+ projectRoot: '/path/to/project',
29
+ latestRemotionVersion,
30
+ packageManager: `${packageManager}@${packageManagerVersion}`,
31
+ projectName: 'my-video',
32
+ }, {
33
+ getPackageJson: () => JSON.stringify(packageJson),
34
+ setPackageJson: (_, content) => {
35
+ newPackageJson = JSON.parse(content);
36
+ },
37
+ });
38
+ (0, vitest_1.expect)(newPackageJson).to.deep.equal({
39
+ ...packageJson,
40
+ dependencies: {
41
+ ...packageJson.dependencies,
42
+ '@remotion/cli': latestRemotionVersion,
43
+ remotion: latestRemotionVersion,
44
+ },
45
+ packageManager: `${packageManager}@${packageManagerVersion}`
46
+ });
47
+ });
48
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,122 @@
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://github.com/${template.org}/${template.repoName}/raw/${template.defaultBranch}/${file}`;
11
+ };
12
+ (0, vitest_1.describe)('Templates should be valid', () => {
13
+ for (const template of templates_1.FEATURED_TEMPLATES) {
14
+ (0, vitest_1.it)(template.shortName + ' should have a valid package.json', async () => {
15
+ var _a, _b;
16
+ const packageJson = getFileForTemplate(template, 'package.json');
17
+ const res = await (0, got_1.default)(packageJson, {
18
+ throwHttpErrors: false,
19
+ cache: false,
20
+ followRedirect: true,
21
+ });
22
+ (0, vitest_1.expect)(res.statusCode).toBe(200);
23
+ const body = JSON.parse(res.body);
24
+ if (!template.shortName.includes('Remix') &&
25
+ !template.shortName.includes('Still')) {
26
+ (0, vitest_1.expect)(body.scripts.build).toMatch(/render/);
27
+ (0, vitest_1.expect)(body.scripts.build).not.toContain('index');
28
+ }
29
+ (0, vitest_1.expect)(body.dependencies.remotion).toMatch(/^\^?3/);
30
+ (0, vitest_1.expect)(body.dependencies['@remotion/cli']).toMatch(/^\^?3/);
31
+ (0, vitest_1.expect)(body.dependencies.react).toMatch(/^\^?18/);
32
+ (0, vitest_1.expect)(body.dependencies['react-dom']).toMatch(/^\^?18/);
33
+ (0, vitest_1.expect)(body.devDependencies.prettier).toMatch(/^\^?2.8.1/);
34
+ (0, vitest_1.expect)(body.devDependencies.eslint).toMatch(/^\^?8.30/);
35
+ const eitherPluginOrConfig = ((_a = body.devDependencies['@remotion/eslint-config']) === null || _a === void 0 ? void 0 : _a.match(/^\^?3/)) ||
36
+ ((_b = body.devDependencies['@remotion/eslint-plugin']) === null || _b === void 0 ? void 0 : _b.match(/^\^?3/));
37
+ (0, vitest_1.expect)(eitherPluginOrConfig).toBeTruthy();
38
+ if (!template.shortName.includes('JavaScript')) {
39
+ (0, vitest_1.expect)(body.devDependencies.typescript).toMatch(/^\^?4/);
40
+ }
41
+ }, 12000);
42
+ (0, vitest_1.it)(template.shortName + ' should not have a package-lock.json', async () => {
43
+ const packageLockJson = getFileForTemplate(template, 'package-lock.json');
44
+ const res = await (0, got_1.default)(packageLockJson, {
45
+ throwHttpErrors: false,
46
+ });
47
+ (0, vitest_1.expect)(res.statusCode).toBe(404);
48
+ }, 12000);
49
+ (0, vitest_1.it)(template.shortName + ' should not have a yarn.lock', async () => {
50
+ const packageLockJson = getFileForTemplate(template, 'yarn.lock');
51
+ const res = await (0, got_1.default)(packageLockJson, {
52
+ throwHttpErrors: false,
53
+ });
54
+ (0, vitest_1.expect)(res.statusCode).toBe(404);
55
+ }, 12000);
56
+ (0, vitest_1.it)(template.shortName + ' should not have a pnpm-lock.yaml', async () => {
57
+ const packageLockJson = getFileForTemplate(template, 'pnpm-lock.yaml');
58
+ const res = await (0, got_1.default)(packageLockJson, {
59
+ throwHttpErrors: false,
60
+ });
61
+ (0, vitest_1.expect)(res.statusCode).toBe(404);
62
+ }, 12000);
63
+ (0, vitest_1.it)(template.shortName + ' should not have a standard entry point', async () => {
64
+ const { contents, entryPoint } = await findFile([
65
+ getFileForTemplate(template, 'src/index.ts'),
66
+ getFileForTemplate(template, 'src/index.js'),
67
+ getFileForTemplate(template, 'remotion/index.ts'),
68
+ getFileForTemplate(template, 'app/remotion/index.ts'),
69
+ ]);
70
+ (0, vitest_1.expect)(entryPoint).toBeTruthy();
71
+ (0, vitest_1.expect)(contents).toMatch(/RemotionRoot/);
72
+ }, 12000);
73
+ (0, vitest_1.it)(template.shortName + ' should not have a standard Root file', async () => {
74
+ const { contents, entryPoint } = await findFile([
75
+ getFileForTemplate(template, 'src/Root.tsx'),
76
+ getFileForTemplate(template, 'src/Root.jsx'),
77
+ getFileForTemplate(template, 'remotion/Root.tsx'),
78
+ getFileForTemplate(template, 'app/remotion/Root.tsx'),
79
+ ]);
80
+ (0, vitest_1.expect)(entryPoint).toBeTruthy();
81
+ (0, vitest_1.expect)(contents).toMatch(/export const RemotionRoot/);
82
+ }, 12000);
83
+ (0, vitest_1.it)(template.shortName + ' should not have a standard Root file', async () => {
84
+ const { contents, entryPoint } = await findFile([
85
+ getFileForTemplate(template, 'src/Root.tsx'),
86
+ getFileForTemplate(template, 'src/Root.jsx'),
87
+ getFileForTemplate(template, 'remotion/Root.tsx'),
88
+ getFileForTemplate(template, 'app/remotion/Root.tsx'),
89
+ ]);
90
+ (0, vitest_1.expect)(entryPoint).toBeTruthy();
91
+ (0, vitest_1.expect)(contents).toMatch(/export const RemotionRoot/);
92
+ }, 12000);
93
+ (0, vitest_1.it)(template.shortName + 'should use the new config file format', async () => {
94
+ const { contents, entryPoint } = await findFile([
95
+ getFileForTemplate(template, 'remotion.config.ts'),
96
+ getFileForTemplate(template, 'remotion.config.js'),
97
+ ]);
98
+ (0, vitest_1.expect)(entryPoint).toBeTruthy();
99
+ (0, vitest_1.expect)(contents).not.toContain('Config.Rendering');
100
+ (0, vitest_1.expect)(contents).not.toContain('Config.Bundling');
101
+ (0, vitest_1.expect)(contents).not.toContain('Config.Log');
102
+ (0, vitest_1.expect)(contents).not.toContain('Config.Puppeteer');
103
+ (0, vitest_1.expect)(contents).not.toContain('Config.Output');
104
+ (0, vitest_1.expect)(contents).not.toContain('Config.Preview');
105
+ });
106
+ }
107
+ });
108
+ const findFile = async (options) => {
109
+ let entryPoint = null;
110
+ let contents = null;
111
+ for (const point of options) {
112
+ const res = await (0, got_1.default)(point, {
113
+ throwHttpErrors: false,
114
+ });
115
+ if (res.statusCode === 200) {
116
+ entryPoint = point;
117
+ contents = res.body;
118
+ break;
119
+ }
120
+ }
121
+ return { entryPoint, contents };
122
+ };
File without changes
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,19 +1,19 @@
1
1
  {
2
2
  "name": "create-video",
3
- "version": "4.0.0-reorg.7+ac7863933",
3
+ "version": "4.0.0-resetpath.13+40cc970bd",
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",
15
14
  "watch": "tsc -w",
16
- "lint": "eslint src --ext ts,tsx"
15
+ "lint": "eslint src --ext ts,tsx",
16
+ "test": "vitest --run"
17
17
  },
18
18
  "author": "",
19
19
  "license": "SEE LICENSE IN LICENSE.md",
@@ -22,6 +22,7 @@
22
22
  "execa": "5.1.1",
23
23
  "minimist": "1.2.6",
24
24
  "prompts": "2.4.1",
25
+ "react": "18.0.0",
25
26
  "tar": "6.1.11"
26
27
  },
27
28
  "devDependencies": {
@@ -29,11 +30,14 @@
29
30
  "@types/minimist": "1.2.2",
30
31
  "@types/node": "^16.7.5",
31
32
  "@types/prompts": "^2.0.12",
33
+ "@types/react": "18.0.26",
32
34
  "@types/tar": "6.1.1",
33
- "eslint": "8.13.0",
35
+ "eslint": "8.25.0",
36
+ "got": "^11",
34
37
  "prettier": "2.6.2",
35
38
  "prettier-plugin-organize-imports": "^2.3.4",
36
- "typescript": "^4.7.0"
39
+ "typescript": "^4.7.0",
40
+ "vitest": "0.24.3"
37
41
  },
38
- "gitHead": "ac7863933e3e016e3db0b979b6a8a3a380888d64"
42
+ "gitHead": "40cc970bd20f2c9fde0c1644f1c9f33cd47f3dc7"
39
43
  }