lucid-package 0.0.113 → 0.0.115
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/package.json +1 -1
- package/src/editorextension.js +7 -3
- package/src/package.js +1 -0
package/package.json
CHANGED
package/src/editorextension.js
CHANGED
|
@@ -22,12 +22,16 @@ const chokidar = require('chokidar');
|
|
|
22
22
|
async function createEditorExtension(name, isInternal, skipSDKDependency, source = 'vanilla', deps = []) {
|
|
23
23
|
const editorExtensionSource = path.join(__dirname, '..', 'templates', 'editorextension', source);
|
|
24
24
|
const editorExtensionTargetFolder = path.join('editorextensions', name);
|
|
25
|
-
const publicSource = path.join(__dirname, '..', 'templates', 'public');
|
|
26
|
-
const publicTargetFolder = 'public';
|
|
27
25
|
const codePath = path.join('editorextensions', name, 'bin', 'extension.js');
|
|
28
26
|
console.log((0, theme_1.success)('Creating empty editor extension in ' + editorExtensionTargetFolder));
|
|
29
27
|
(0, filesystemutil_1.copyFolderRecursiveSync)(editorExtensionSource, editorExtensionTargetFolder);
|
|
30
|
-
|
|
28
|
+
// Angular and React extensions will automatically create the `public` folder,
|
|
29
|
+
// during the webpack build
|
|
30
|
+
if (source === 'vanilla') {
|
|
31
|
+
const publicSource = path.join(__dirname, '..', 'templates', 'public');
|
|
32
|
+
const publicTargetFolder = 'public';
|
|
33
|
+
(0, filesystemutil_1.copyFolderRecursiveSync)(publicSource, publicTargetFolder);
|
|
34
|
+
}
|
|
31
35
|
await (0, package_1.modifyManifest)((manifest) => {
|
|
32
36
|
if (!manifest['extensions']) {
|
|
33
37
|
manifest['extensions'] = [];
|
package/src/package.js
CHANGED