create-video 4.0.0-alpha13 → 4.0.0-alpha16
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/log.d.ts +1 -1
- package/dist/open-in-editor.d.ts +2 -2
- package/dist/pkg-managers.d.ts +1 -1
- package/dist/prompts.d.ts +3 -3
- package/dist/resolve-project-root.d.ts +4 -1
- package/dist/templates.d.ts +3 -3
- package/dist/templates.js +1 -1
- package/package.json +3 -3
package/dist/log.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const Log: {
|
|
|
6
6
|
Color: ("black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright") | ("bgBlack" | "bgRed" | "bgGreen" | "bgYellow" | "bgBlue" | "bgMagenta" | "bgCyan" | "bgWhite" | "bgGray" | "bgGrey" | "bgBlackBright" | "bgRedBright" | "bgGreenBright" | "bgYellowBright" | "bgBlueBright" | "bgMagentaBright" | "bgCyanBright" | "bgWhiteBright");
|
|
7
7
|
ForegroundColor: "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright";
|
|
8
8
|
BackgroundColor: "bgBlack" | "bgRed" | "bgGreen" | "bgYellow" | "bgBlue" | "bgMagenta" | "bgCyan" | "bgWhite" | "bgGray" | "bgGrey" | "bgBlackBright" | "bgRedBright" | "bgGreenBright" | "bgYellowBright" | "bgBlueBright" | "bgMagentaBright" | "bgCyanBright" | "bgWhiteBright";
|
|
9
|
-
Modifiers: "
|
|
9
|
+
Modifiers: "reset" | "bold" | "dim" | "italic" | "underline" | "inverse" | "hidden" | "strikethrough" | "visible";
|
|
10
10
|
stderr: chalk.Chalk & {
|
|
11
11
|
supportsColor: false | chalk.ColorSupport;
|
|
12
12
|
};
|
package/dist/open-in-editor.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export declare const isVsCodeDerivative: (editor: Editor) => boolean;
|
|
|
2
2
|
export declare function isTerminalEditor(editor: Editor): boolean;
|
|
3
3
|
declare const editorNames: readonly ["atom", "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta", "brackets", "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl", "code", "code-insiders", "vscodium", "/Applications/AppCode.app/Contents/MacOS/appcode", "/Applications/CLion.app/Contents/MacOS/clion", "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea", "/Applications/PhpStorm.app/Contents/MacOS/phpstorm", "/Applications/PyCharm.app/Contents/MacOS/pycharm", "/Applications/PyCharm CE.app/Contents/MacOS/pycharm", "/Applications/RubyMine.app/Contents/MacOS/rubymine", "/Applications/WebStorm.app/Contents/MacOS/webstorm", "/Applications/GoLand.app/Contents/MacOS/goland", "/Applications/Rider.app/Contents/MacOS/rider", "mvim", "emacs", "gvim", "idea", "phpstorm", "pycharm", "rubymine", "sublime_text", "vim", "webstorm", "goland", "rider", "Brackets.exe", "Code.exe", "Code - Insiders.exe", "VSCodium.exe", "atom.exe", "sublime_text.exe", "notepad++.exe", "clion.exe", "clion64.exe", "idea.exe", "idea64.exe", "phpstorm.exe", "phpstorm64.exe", "pycharm.exe", "pycharm64.exe", "rubymine.exe", "rubymine64.exe", "webstorm.exe", "webstorm64.exe", "goland.exe", "goland64.exe", "rider.exe", "rider64.exe", "nano"];
|
|
4
4
|
export declare const getDisplayNameForEditor: (editor: Editor) => string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type Editor = typeof editorNames[number];
|
|
6
|
+
type ProcessAndCommand = {
|
|
7
7
|
process: string;
|
|
8
8
|
command: Editor;
|
|
9
9
|
};
|
package/dist/pkg-managers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Template } from './templates';
|
|
2
|
-
export
|
|
2
|
+
export type PackageManager = 'npm' | 'yarn' | 'pnpm';
|
|
3
3
|
export declare const selectPackageManager: () => PackageManager;
|
|
4
4
|
export declare const getInstallCommand: (manager: PackageManager) => "yarn" | "npm i" | "pnpm i" | undefined;
|
|
5
5
|
export declare const getDevCommand: (manager: PackageManager, template: Template) => string | undefined;
|
package/dist/prompts.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Options, PromptObject } from 'prompts';
|
|
2
2
|
import prompts from 'prompts';
|
|
3
|
-
export
|
|
3
|
+
export type Question<V extends string = string> = PromptObject<V> & {
|
|
4
4
|
optionsPerPage?: number;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
7
|
-
|
|
6
|
+
export type NamelessQuestion = Omit<Question<'value'>, 'name' | 'type'>;
|
|
7
|
+
type PromptOptions = {
|
|
8
8
|
nonInteractiveHelp?: string;
|
|
9
9
|
} & Options;
|
|
10
10
|
declare function prompt(questions: Question | Question[], { nonInteractiveHelp, ...options }?: PromptOptions): Promise<prompts.Answers<string>>;
|
package/dist/templates.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type DynamicTemplate = {
|
|
3
3
|
type: 'video';
|
|
4
4
|
promoVideo: {
|
|
5
5
|
muxId: string;
|
|
@@ -14,14 +14,14 @@ declare type DynamicTemplate = {
|
|
|
14
14
|
height: number;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Template = {
|
|
18
18
|
shortName: string;
|
|
19
19
|
description: string;
|
|
20
20
|
org: string;
|
|
21
21
|
repoName: string;
|
|
22
22
|
homePageLabel: string;
|
|
23
23
|
longerDescription: React.ReactNode;
|
|
24
|
-
cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'remix' | 'three' | 'still' | 'tts' | '
|
|
24
|
+
cliId: 'hello-world' | 'javascript' | 'blank' | 'next' | 'remix' | 'three' | 'still' | 'tts' | 'google-tts' | 'audiogram' | 'skia' | 'tailwind' | 'overlay';
|
|
25
25
|
defaultBranch: string;
|
|
26
26
|
} & DynamicTemplate;
|
|
27
27
|
export declare const FEATURED_TEMPLATES: Template[];
|
package/dist/templates.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-video",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-alpha16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@types/prompts": "^2.0.12",
|
|
27
27
|
"@types/react": "18.0.26",
|
|
28
28
|
"@types/tar": "6.1.1",
|
|
29
|
-
"eslint": "8.
|
|
29
|
+
"eslint": "8.42.0",
|
|
30
30
|
"got": "^11",
|
|
31
31
|
"prettier": "2.6.2",
|
|
32
32
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
33
|
-
"typescript": "
|
|
33
|
+
"typescript": "4.9.5",
|
|
34
34
|
"vitest": "0.31.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|