@revideo/create 0.1.4-alpha.874 → 0.1.4-alpha.876
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 +3 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -111,7 +111,7 @@ const PLUGINS = {
|
|
|
111
111
|
`template-2d-${language}`,
|
|
112
112
|
);
|
|
113
113
|
copyDirectory(templateDir, response.path);
|
|
114
|
-
createConfig(response, language);
|
|
114
|
+
createConfig(response, PLUGINS, language);
|
|
115
115
|
|
|
116
116
|
const manifest = JSON.parse(
|
|
117
117
|
fs.readFileSync(path.join(templateDir, `package.json`), 'utf-8'),
|
|
@@ -181,11 +181,9 @@ function copy(src, dest) {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
function createConfig(response, language) {
|
|
184
|
+
function createConfig(response, plugins, language) {
|
|
185
185
|
const imports = [];
|
|
186
|
-
const plugins
|
|
187
|
-
for (const plugin of plugins) {
|
|
188
|
-
const data = PLUGINS[plugin];
|
|
186
|
+
for (const data of plugins) {
|
|
189
187
|
imports.push(`import ${data.variable} from '${data.package}';\n`);
|
|
190
188
|
plugins.push(`${data.variable}(${data.options?.(response) ?? ''}),`);
|
|
191
189
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revideo/create",
|
|
3
|
-
"version": "0.1.4-alpha.
|
|
3
|
+
"version": "0.1.4-alpha.876+062cccb",
|
|
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": "
|
|
32
|
+
"gitHead": "062cccbd390d0c4eb076e6ddeba60bc2d344067c"
|
|
33
33
|
}
|