lucid-package 0.0.128 → 0.0.130
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 +3 -3
- package/src/angularframeworkutils.d.ts +2 -1
- package/src/angularframeworkutils.js +8 -5
- package/src/dataconnector.d.ts +2 -1
- package/src/dataconnector.js +3 -3
- package/src/editorextension.d.ts +6 -5
- package/src/editorextension.js +14 -13
- package/src/filesystemutil.d.ts +16 -3
- package/src/filesystemutil.js +40 -8
- package/src/index.js +41 -12
- package/src/installationutil.d.ts +16 -3
- package/src/installationutil.js +34 -8
- package/src/package.d.ts +5 -3
- package/src/package.js +30 -11
- package/src/reactframeworkutils.d.ts +2 -1
- package/src/reactframeworkutils.js +8 -5
- package/src/shapelibrary.js +2 -2
- package/templates/dataconnector/package-lock.json +103 -15
- package/templates/dataconnector/pnpm-lock.yaml +1163 -0
- package/templates/dataconnector/pnpm-workspace.yaml +1 -0
- package/templates/dataconnector/tsconfig.json +1 -0
- package/templates/editorextension/angular/skeleton/pnpm-lock.yaml +847 -0
- package/templates/editorextension/angular/skeleton/pnpm-workspace.yaml +1 -0
- package/templates/editorextension/angular/skeleton/tsconfig.json +1 -0
- package/templates/editorextension/angular/skeleton/webpack.config.js +4 -4
- package/templates/editorextension/react/skeleton/pnpm-lock.yaml +847 -0
- package/templates/editorextension/react/skeleton/pnpm-workspace.yaml +1 -0
- package/templates/editorextension/react/skeleton/tsconfig.json +1 -0
- package/templates/editorextension/react/skeleton/webpack.config.js +4 -4
- package/templates/editorextension/vanilla/pnpm-lock.yaml +847 -0
- package/templates/editorextension/vanilla/pnpm-workspace.yaml +1 -0
- package/templates/editorextension/vanilla/tsconfig.json +1 -0
- package/templates/package/package.json +9 -9
- package/templates/package/pnpm-lock.yaml +9 -0
- package/templates/package/pnpm-workspace.yaml +1 -0
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { PackageManagerOptions } from './installationutil';
|
|
2
|
+
export declare function createReactEditorExtension(name: string, flavor: string, isInternal: boolean, packageManagerOptions: PackageManagerOptions, skipSDKDependency: boolean): Promise<void>;
|
|
@@ -8,8 +8,8 @@ const installationutil_1 = require("./installationutil");
|
|
|
8
8
|
const package_1 = require("./package");
|
|
9
9
|
const theme_1 = require("./theme");
|
|
10
10
|
const REACT_PROJECT_NAME = 'react-app';
|
|
11
|
-
async function createReactEditorExtension(name, flavor, isInternal, skipSDKDependency) {
|
|
12
|
-
await (0, editorextension_1.createEditorExtension)(name, isInternal, skipSDKDependency, path.join('react', 'skeleton'), [
|
|
11
|
+
async function createReactEditorExtension(name, flavor, isInternal, packageManagerOptions, skipSDKDependency) {
|
|
12
|
+
await (0, editorextension_1.createEditorExtension)(name, isInternal, packageManagerOptions, skipSDKDependency, path.join('react', 'skeleton'), [
|
|
13
13
|
'webpack-shell-plugin-next',
|
|
14
14
|
]);
|
|
15
15
|
let typescript = false;
|
|
@@ -26,7 +26,7 @@ async function createReactEditorExtension(name, flavor, isInternal, skipSDKDepen
|
|
|
26
26
|
const reactEditorExtensionTargetFolder = path.join(process.cwd(), REACT_PROJECT_NAME);
|
|
27
27
|
const publicTargetFolder = path.join(process.cwd(), '..', '..', 'public');
|
|
28
28
|
console.log((0, theme_1.success)('Creating React project in ' + reactEditorExtensionTargetFolder));
|
|
29
|
-
(0, installationutil_1.installReactProject)(REACT_PROJECT_NAME, typescript);
|
|
29
|
+
(0, installationutil_1.installReactProject)(REACT_PROJECT_NAME, typescript, packageManagerOptions);
|
|
30
30
|
await fs.mkdir(path.join(publicTargetFolder, name));
|
|
31
31
|
await copyFilesTo(path.join(reactEditorExtensionTargetFolder, 'public'), path.join(publicTargetFolder, name), [
|
|
32
32
|
'.png',
|
|
@@ -38,7 +38,10 @@ async function createReactEditorExtension(name, flavor, isInternal, skipSDKDepen
|
|
|
38
38
|
'.svg',
|
|
39
39
|
'.ico',
|
|
40
40
|
]);
|
|
41
|
-
const
|
|
41
|
+
const reactBuildCommand = `${packageManagerOptions.packageManagerPath} exec -- react-scripts build`;
|
|
42
|
+
const webpackConfig = (await fs.readFile('webpack.config.js', 'utf8'))
|
|
43
|
+
.replace('<<dynamicname>>', REACT_PROJECT_NAME)
|
|
44
|
+
.replace('<<reactbuildcommand>>', reactBuildCommand);
|
|
42
45
|
const extensionTemplateCode = (await fs.readFile(path.join('src', 'extension.ts'), 'utf8')).replace('<<dynamicname>>', REACT_PROJECT_NAME);
|
|
43
46
|
await fs.writeFile(path.join(process.cwd(), 'webpack.config.js'), webpackConfig);
|
|
44
47
|
await fs.writeFile(path.join('src', 'extension.ts'), extensionTemplateCode);
|
|
@@ -56,7 +59,7 @@ async function createReactEditorExtension(name, flavor, isInternal, skipSDKDepen
|
|
|
56
59
|
const apptsx = (await fs.readFile(path.join('src', appName), 'utf8')).replace('{logo}', '"logo.svg"');
|
|
57
60
|
await fs.writeFile(path.join('src', appName), apptsx);
|
|
58
61
|
console.log('Installing React dependencies');
|
|
59
|
-
(0, installationutil_1.installDependenciesIfNeeded)(isInternal, skipSDKDependency);
|
|
62
|
+
(0, installationutil_1.installDependenciesIfNeeded)(isInternal, packageManagerOptions, skipSDKDependency);
|
|
60
63
|
}
|
|
61
64
|
async function copyFilesTo(sourceFolder, destFolder, endingWith) {
|
|
62
65
|
(await fs.readdir(sourceFolder))
|
package/src/shapelibrary.js
CHANGED
|
@@ -32,7 +32,7 @@ async function createEmptyShapeLibrary(name) {
|
|
|
32
32
|
manifest['shapeLibraries'].push({
|
|
33
33
|
'name': name,
|
|
34
34
|
'product': 'chart',
|
|
35
|
-
'lcszPath': path.join('shapelibraries', `${name}.lcsz`),
|
|
35
|
+
'lcszPath': path.posix.join('shapelibraries', `${name}.lcsz`),
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -122,7 +122,7 @@ async function createImageShapeLibrary(name, imagePath, config) {
|
|
|
122
122
|
manifest['shapeLibraries'].push({
|
|
123
123
|
'name': name,
|
|
124
124
|
'product': 'chart',
|
|
125
|
-
'lcszPath': path.join('shapelibraries', `${name}.lcsz`),
|
|
125
|
+
'lcszPath': path.posix.join('shapelibraries', `${name}.lcsz`),
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
});
|
|
@@ -258,6 +258,22 @@
|
|
|
258
258
|
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
|
|
259
259
|
"license": "MIT"
|
|
260
260
|
},
|
|
261
|
+
"node_modules/asynckit": {
|
|
262
|
+
"version": "0.4.0",
|
|
263
|
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
|
264
|
+
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
|
265
|
+
"license": "MIT"
|
|
266
|
+
},
|
|
267
|
+
"node_modules/axios": {
|
|
268
|
+
"version": "0.27.2",
|
|
269
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz",
|
|
270
|
+
"integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",
|
|
271
|
+
"license": "MIT",
|
|
272
|
+
"dependencies": {
|
|
273
|
+
"follow-redirects": "^1.14.9",
|
|
274
|
+
"form-data": "^4.0.0"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
261
277
|
"node_modules/balanced-match": {
|
|
262
278
|
"version": "1.0.2",
|
|
263
279
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
|
@@ -389,6 +405,18 @@
|
|
|
389
405
|
"fsevents": "~2.3.2"
|
|
390
406
|
}
|
|
391
407
|
},
|
|
408
|
+
"node_modules/combined-stream": {
|
|
409
|
+
"version": "1.0.8",
|
|
410
|
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
|
411
|
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
|
412
|
+
"license": "MIT",
|
|
413
|
+
"dependencies": {
|
|
414
|
+
"delayed-stream": "~1.0.0"
|
|
415
|
+
},
|
|
416
|
+
"engines": {
|
|
417
|
+
"node": ">= 0.8"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
392
420
|
"node_modules/concat-map": {
|
|
393
421
|
"version": "0.0.1",
|
|
394
422
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
|
@@ -448,6 +476,15 @@
|
|
|
448
476
|
"ms": "2.0.0"
|
|
449
477
|
}
|
|
450
478
|
},
|
|
479
|
+
"node_modules/delayed-stream": {
|
|
480
|
+
"version": "1.0.0",
|
|
481
|
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
|
482
|
+
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
|
483
|
+
"license": "MIT",
|
|
484
|
+
"engines": {
|
|
485
|
+
"node": ">=0.4.0"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
451
488
|
"node_modules/depd": {
|
|
452
489
|
"version": "2.0.0",
|
|
453
490
|
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
|
@@ -536,6 +573,21 @@
|
|
|
536
573
|
"node": ">= 0.4"
|
|
537
574
|
}
|
|
538
575
|
},
|
|
576
|
+
"node_modules/es-set-tostringtag": {
|
|
577
|
+
"version": "2.1.0",
|
|
578
|
+
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
|
|
579
|
+
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
|
580
|
+
"license": "MIT",
|
|
581
|
+
"dependencies": {
|
|
582
|
+
"es-errors": "^1.3.0",
|
|
583
|
+
"get-intrinsic": "^1.2.6",
|
|
584
|
+
"has-tostringtag": "^1.0.2",
|
|
585
|
+
"hasown": "^2.0.2"
|
|
586
|
+
},
|
|
587
|
+
"engines": {
|
|
588
|
+
"node": ">= 0.4"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
539
591
|
"node_modules/escape-html": {
|
|
540
592
|
"version": "1.0.3",
|
|
541
593
|
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
|
@@ -628,6 +680,42 @@
|
|
|
628
680
|
"node": ">= 0.8"
|
|
629
681
|
}
|
|
630
682
|
},
|
|
683
|
+
"node_modules/follow-redirects": {
|
|
684
|
+
"version": "1.15.11",
|
|
685
|
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
|
|
686
|
+
"integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
|
|
687
|
+
"funding": [
|
|
688
|
+
{
|
|
689
|
+
"type": "individual",
|
|
690
|
+
"url": "https://github.com/sponsors/RubenVerborgh"
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
"license": "MIT",
|
|
694
|
+
"engines": {
|
|
695
|
+
"node": ">=4.0"
|
|
696
|
+
},
|
|
697
|
+
"peerDependenciesMeta": {
|
|
698
|
+
"debug": {
|
|
699
|
+
"optional": true
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"node_modules/form-data": {
|
|
704
|
+
"version": "4.0.5",
|
|
705
|
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
|
|
706
|
+
"integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
|
|
707
|
+
"license": "MIT",
|
|
708
|
+
"dependencies": {
|
|
709
|
+
"asynckit": "^0.4.0",
|
|
710
|
+
"combined-stream": "^1.0.8",
|
|
711
|
+
"es-set-tostringtag": "^2.1.0",
|
|
712
|
+
"hasown": "^2.0.2",
|
|
713
|
+
"mime-types": "^2.1.12"
|
|
714
|
+
},
|
|
715
|
+
"engines": {
|
|
716
|
+
"node": ">= 6"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
631
719
|
"node_modules/forwarded": {
|
|
632
720
|
"version": "0.2.0",
|
|
633
721
|
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
|
@@ -646,21 +734,6 @@
|
|
|
646
734
|
"node": ">= 0.6"
|
|
647
735
|
}
|
|
648
736
|
},
|
|
649
|
-
"node_modules/fsevents": {
|
|
650
|
-
"version": "2.3.3",
|
|
651
|
-
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
|
652
|
-
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
|
653
|
-
"dev": true,
|
|
654
|
-
"hasInstallScript": true,
|
|
655
|
-
"license": "MIT",
|
|
656
|
-
"optional": true,
|
|
657
|
-
"os": [
|
|
658
|
-
"darwin"
|
|
659
|
-
],
|
|
660
|
-
"engines": {
|
|
661
|
-
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
|
662
|
-
}
|
|
663
|
-
},
|
|
664
737
|
"node_modules/function-bind": {
|
|
665
738
|
"version": "1.1.2",
|
|
666
739
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
|
@@ -754,6 +827,21 @@
|
|
|
754
827
|
"url": "https://github.com/sponsors/ljharb"
|
|
755
828
|
}
|
|
756
829
|
},
|
|
830
|
+
"node_modules/has-tostringtag": {
|
|
831
|
+
"version": "1.0.2",
|
|
832
|
+
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
|
833
|
+
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
|
834
|
+
"license": "MIT",
|
|
835
|
+
"dependencies": {
|
|
836
|
+
"has-symbols": "^1.0.3"
|
|
837
|
+
},
|
|
838
|
+
"engines": {
|
|
839
|
+
"node": ">= 0.4"
|
|
840
|
+
},
|
|
841
|
+
"funding": {
|
|
842
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
843
|
+
}
|
|
844
|
+
},
|
|
757
845
|
"node_modules/hasown": {
|
|
758
846
|
"version": "2.0.2",
|
|
759
847
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|