@rayburst/cli 0.1.17 → 0.2.0

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.
Files changed (39) hide show
  1. package/README.md +165 -257
  2. package/dist/analysis/analyze-project.d.ts +9 -0
  3. package/dist/analysis/analyze-project.js +440 -0
  4. package/dist/git-utils.d.ts +33 -0
  5. package/dist/git-utils.js +96 -0
  6. package/dist/incremental-analyzer.d.ts +128 -0
  7. package/dist/incremental-analyzer.js +259 -0
  8. package/dist/index.d.ts +6 -0
  9. package/dist/index.js +6 -0
  10. package/dist/local-storage.d.ts +39 -0
  11. package/dist/local-storage.js +117 -0
  12. package/dist/registry.d.ts +89 -0
  13. package/dist/registry.js +287 -0
  14. package/dist/vite-plugin.d.ts +7 -0
  15. package/dist/vite-plugin.js +109 -0
  16. package/package.json +33 -30
  17. package/bin/rayburst.js +0 -232
  18. package/dist/assets/_commonjsHelpers-B85MJLTf.js +0 -5
  19. package/dist/assets/hostInit-BWYxHpMp.js +0 -9
  20. package/dist/assets/index-9R1akZrm.js +0 -578
  21. package/dist/assets/index-BW-RulSg.js +0 -258
  22. package/dist/assets/index-VnAMn3JB.js +0 -16587
  23. package/dist/assets/preload-helper-Dea3Szod.js +0 -54
  24. package/dist/assets/rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__-CHUYMhiU.js +0 -35
  25. package/dist/assets/rayburstCli__loadShare__react__loadShare__-CE7VtFm0.js +0 -19
  26. package/dist/assets/rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js +0 -4173
  27. package/dist/assets/remoteEntry-B8biLITo.js +0 -122
  28. package/dist/assets/virtualExposes-DwA08f_D.js +0 -5
  29. package/dist/index.html +0 -56
  30. package/index.html +0 -54
  31. package/scripts/analyze-project.js +0 -475
  32. package/server.js +0 -188
  33. package/src/file-watcher.js +0 -174
  34. package/src/git-utils.js +0 -105
  35. package/src/incremental-analyzer.js +0 -295
  36. package/src/main.tsx +0 -126
  37. package/src/registry.js +0 -262
  38. package/vite-plugin-api.js +0 -123
  39. package/vite.config.ts +0 -73
@@ -1,122 +0,0 @@
1
- import { i as init_1, r as rayburstCli__mf_v__runtimeInit__mf_v__ } from './rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js';
2
- import exposesMap from './virtualExposes-DwA08f_D.js';
3
- import { _ as __vitePreload } from './preload-helper-Dea3Szod.js';
4
-
5
- const importMap = {
6
-
7
- "react": async () => {
8
- let pkg = await __vitePreload(() => import('./index-9R1akZrm.js').then(n => n.i),true ?[]:void 0);
9
- return pkg;
10
- }
11
- ,
12
- "react-dom": async () => {
13
- let pkg = await __vitePreload(() => import('./index-BW-RulSg.js').then(n => n.i),true ?[]:void 0);
14
- return pkg;
15
- }
16
-
17
- };
18
- const usedShared = {
19
-
20
- "react": {
21
- name: "react",
22
- version: "19.2.0",
23
- scope: ["default"],
24
- loaded: false,
25
- from: "rayburstCli",
26
- async get () {
27
- usedShared["react"].loaded = true;
28
- const {"react": pkgDynamicImport} = importMap;
29
- const res = await pkgDynamicImport();
30
- const exportModule = {...res};
31
- // All npm packages pre-built by vite will be converted to esm
32
- Object.defineProperty(exportModule, "__esModule", {
33
- value: true,
34
- enumerable: false
35
- });
36
- return function () {
37
- return exportModule
38
- }
39
- },
40
- shareConfig: {
41
- singleton: true,
42
- requiredVersion: "^19.0.0",
43
-
44
- }
45
- }
46
- ,
47
- "react-dom": {
48
- name: "react-dom",
49
- version: "19.2.0",
50
- scope: ["default"],
51
- loaded: false,
52
- from: "rayburstCli",
53
- async get () {
54
- usedShared["react-dom"].loaded = true;
55
- const {"react-dom": pkgDynamicImport} = importMap;
56
- const res = await pkgDynamicImport();
57
- const exportModule = {...res};
58
- // All npm packages pre-built by vite will be converted to esm
59
- Object.defineProperty(exportModule, "__esModule", {
60
- value: true,
61
- enumerable: false
62
- });
63
- return function () {
64
- return exportModule
65
- }
66
- },
67
- shareConfig: {
68
- singleton: true,
69
- requiredVersion: "^19.0.0",
70
-
71
- }
72
- }
73
-
74
- };
75
- const usedRemotes = [
76
- {
77
- entryGlobalName: "rayburstApp",
78
- name: "rayburstApp",
79
- type: "module",
80
- entry: "https://www.rayburst.app/remoteEntry.js?t=1763426532048",
81
- shareScope: "default",
82
- }
83
-
84
- ];
85
-
86
- const initTokens = {};
87
- const shareScopeName = "default";
88
- const mfName = "rayburstCli";
89
- async function init(shared = {}, initScope = []) {
90
- const initRes = init_1({
91
- name: mfName,
92
- remotes: usedRemotes,
93
- shared: usedShared,
94
- plugins: [],
95
- shareStrategy: 'version-first'
96
- });
97
- // handling circular init calls
98
- var initToken = initTokens[shareScopeName];
99
- if (!initToken)
100
- initToken = initTokens[shareScopeName] = { from: mfName };
101
- if (initScope.indexOf(initToken) >= 0) return;
102
- initScope.push(initToken);
103
- initRes.initShareScopeMap('default', shared);
104
- try {
105
- await Promise.all(await initRes.initializeSharing('default', {
106
- strategy: 'version-first',
107
- from: "build",
108
- initScope
109
- }));
110
- } catch (e) {
111
- console.error(e);
112
- }
113
- rayburstCli__mf_v__runtimeInit__mf_v__.initResolve(initRes);
114
- return initRes
115
- }
116
-
117
- function getExposes(moduleName) {
118
- if (!(moduleName in exposesMap)) throw new Error(`Module ${moduleName} does not exist in container.`)
119
- return (exposesMap[moduleName])().then(res => () => res)
120
- }
121
-
122
- export { getExposes as get, init };
@@ -1,5 +0,0 @@
1
- const exposesMap = {
2
-
3
- };
4
-
5
- export { exposesMap as default };
package/dist/index.html DELETED
@@ -1,56 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <script type="module" src="/assets/hostInit-BWYxHpMp.js"></script>
5
-
6
- <meta charset="UTF-8" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
- <title>Rayburst</title>
9
- <style>
10
- /* Scoped styles for loading screen only - do not interfere with remote app styles */
11
- .loading-container {
12
- display: flex;
13
- flex-direction: column;
14
- align-items: center;
15
- justify-content: center;
16
- height: 100vh;
17
- width: 100%;
18
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
19
- color: white;
20
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
21
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
22
- sans-serif;
23
- -webkit-font-smoothing: antialiased;
24
- -moz-osx-font-smoothing: grayscale;
25
- }
26
-
27
- .spinner {
28
- width: 50px;
29
- height: 50px;
30
- border: 4px solid rgba(255, 255, 255, 0.3);
31
- border-top-color: white;
32
- border-radius: 50%;
33
- animation: spin 1s linear infinite;
34
- margin-bottom: 20px;
35
- }
36
-
37
- @keyframes spin {
38
- to { transform: rotate(360deg); }
39
- }
40
-
41
- .loading-text {
42
- font-size: 18px;
43
- font-weight: 500;
44
- }
45
- </style>
46
- <script type="module" crossorigin src="/assets/index-VnAMn3JB.js"></script>
47
- </head>
48
- <body>
49
- <div id="app">
50
- <div class="loading-container">
51
- <div class="spinner"></div>
52
- <div class="loading-text">Loading Rayburst...</div>
53
- </div>
54
- </div>
55
- </body>
56
- </html>
package/index.html DELETED
@@ -1,54 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Rayburst</title>
7
- <style>
8
- /* Scoped styles for loading screen only - do not interfere with remote app styles */
9
- .loading-container {
10
- display: flex;
11
- flex-direction: column;
12
- align-items: center;
13
- justify-content: center;
14
- height: 100vh;
15
- width: 100%;
16
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
17
- color: white;
18
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
19
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
20
- sans-serif;
21
- -webkit-font-smoothing: antialiased;
22
- -moz-osx-font-smoothing: grayscale;
23
- }
24
-
25
- .spinner {
26
- width: 50px;
27
- height: 50px;
28
- border: 4px solid rgba(255, 255, 255, 0.3);
29
- border-top-color: white;
30
- border-radius: 50%;
31
- animation: spin 1s linear infinite;
32
- margin-bottom: 20px;
33
- }
34
-
35
- @keyframes spin {
36
- to { transform: rotate(360deg); }
37
- }
38
-
39
- .loading-text {
40
- font-size: 18px;
41
- font-weight: 500;
42
- }
43
- </style>
44
- </head>
45
- <body>
46
- <div id="app">
47
- <div class="loading-container">
48
- <div class="spinner"></div>
49
- <div class="loading-text">Loading Rayburst...</div>
50
- </div>
51
- </div>
52
- <script type="module" src="/src/main.tsx"></script>
53
- </body>
54
- </html>