@revideo/create 0.1.4-alpha.875 → 0.1.4-alpha.877

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/index.js CHANGED
@@ -102,7 +102,7 @@ const PLUGINS = {
102
102
  return;
103
103
  }
104
104
 
105
- const plugins = ['core', 'ffmpeg'];
105
+ const plugins = [PLUGINS.core, PLUGINS.ffmpeg];
106
106
  const language = 'ts';
107
107
 
108
108
  const templateDir = path.resolve(
@@ -118,8 +118,7 @@ const PLUGINS = {
118
118
  );
119
119
  manifest.name = response.name;
120
120
  manifest.dependencies ??= {};
121
- for (const plugin of plugins) {
122
- const data = PLUGINS[plugin];
121
+ for (const data of plugins) {
123
122
  if (data.version) {
124
123
  manifest.dependencies[data.package] = data.version;
125
124
  }
@@ -181,10 +180,10 @@ function copy(src, dest) {
181
180
  }
182
181
  }
183
182
 
184
- function createConfig(response, plugins, language) {
183
+ function createConfig(response, selectedPlugins, language) {
185
184
  const imports = [];
186
- for (const plugin of plugins) {
187
- const data = PLUGINS[plugin];
185
+ const plugins = [];
186
+ for (const data of selectedPlugins) {
188
187
  imports.push(`import ${data.variable} from '${data.package}';\n`);
189
188
  plugins.push(`${data.variable}(${data.options?.(response) ?? ''}),`);
190
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revideo/create",
3
- "version": "0.1.4-alpha.875+4ebe905",
3
+ "version": "0.1.4-alpha.877+adf8bbd",
4
4
  "description": "Quickly scaffold revideo projects",
5
5
  "main": "index.js",
6
6
  "author": "revideo",
@@ -29,5 +29,5 @@
29
29
  "minimist": "^1.2.8",
30
30
  "prompts": "^2.4.2"
31
31
  },
32
- "gitHead": "4ebe9050d130e79de7e08d1c57616f2ca741ff65"
32
+ "gitHead": "adf8bbd16cc503ee3a903c67ebc534e6dc6adec3"
33
33
  }
@@ -0,0 +1,31 @@
1
+ {
2
+ "version": 0,
3
+ "shared": {
4
+ "background": null,
5
+ "range": [
6
+ 0,
7
+ null
8
+ ],
9
+ "size": {
10
+ "x": 1024,
11
+ "y": 1792
12
+ },
13
+ "audioOffset": 0
14
+ },
15
+ "preview": {
16
+ "fps": 30,
17
+ "resolutionScale": 1
18
+ },
19
+ "rendering": {
20
+ "fps": 30,
21
+ "resolutionScale": 1,
22
+ "colorSpace": "srgb",
23
+ "exporter": {
24
+ "name": "@revideo/ffmpeg",
25
+ "options": {
26
+ "fastStart": true,
27
+ "includeAudio": true
28
+ }
29
+ }
30
+ }
31
+ }