create-zephyr-apps 0.0.6 → 0.0.8

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 (80) hide show
  1. package/.github/workflows/pull_request.yml +56 -0
  2. package/.vscode/settings.json +75 -0
  3. package/biome.json +37 -0
  4. package/dist/index.cjs +135 -89
  5. package/dist/index.mjs +133 -87
  6. package/dist/package/utils/constants.d.ts +1 -1
  7. package/dist/package/utils/end.d.ts +1 -1
  8. package/package/index.ts +178 -113
  9. package/package/utils/constants.ts +64 -58
  10. package/package/utils/end.ts +19 -13
  11. package/package/utils/types.ts +1 -1
  12. package/package.json +33 -20
  13. package/rslib.config.ts +36 -37
  14. package/tsconfig.json +1 -2
  15. package/vite-mf/host/README.md +0 -50
  16. package/vite-mf/host/eslint.config.js +0 -25
  17. package/vite-mf/host/index.html +0 -13
  18. package/vite-mf/host/package.json +0 -31
  19. package/vite-mf/host/public/vite.svg +0 -1
  20. package/vite-mf/host/src/App.css +0 -42
  21. package/vite-mf/host/src/App.tsx +0 -37
  22. package/vite-mf/host/src/assets/react.svg +0 -1
  23. package/vite-mf/host/src/bootstrap.tsx +0 -10
  24. package/vite-mf/host/src/index.css +0 -68
  25. package/vite-mf/host/src/main.tsx +0 -8
  26. package/vite-mf/host/src/vite-env.d.ts +0 -1
  27. package/vite-mf/host/tsconfig.app.json +0 -24
  28. package/vite-mf/host/tsconfig.json +0 -4
  29. package/vite-mf/host/tsconfig.node.json +0 -22
  30. package/vite-mf/host/vite.config.ts +0 -40
  31. package/vite-mf/image.png +0 -0
  32. package/vite-mf/package.json +0 -12
  33. package/vite-mf/pnpm-lock.yaml +0 -9440
  34. package/vite-mf/pnpm-workspace.yaml +0 -2
  35. package/vite-mf/readme.md +0 -17
  36. package/vite-mf/remote/eslint.config.js +0 -25
  37. package/vite-mf/remote/index.html +0 -13
  38. package/vite-mf/remote/package.json +0 -31
  39. package/vite-mf/remote/public/vite.svg +0 -1
  40. package/vite-mf/remote/src/App.css +0 -38
  41. package/vite-mf/remote/src/App.tsx +0 -24
  42. package/vite-mf/remote/src/Button.css +0 -9
  43. package/vite-mf/remote/src/Button.tsx +0 -20
  44. package/vite-mf/remote/src/assets/react.svg +0 -1
  45. package/vite-mf/remote/src/bootstrap.tsx +0 -10
  46. package/vite-mf/remote/src/index.css +0 -68
  47. package/vite-mf/remote/src/main.tsx +0 -10
  48. package/vite-mf/remote/src/vite-env.d.ts +0 -1
  49. package/vite-mf/remote/tsconfig.app.json +0 -24
  50. package/vite-mf/remote/tsconfig.json +0 -4
  51. package/vite-mf/remote/tsconfig.node.json +0 -22
  52. package/vite-mf/remote/vite.config.ts +0 -25
  53. package/vite-mf/rspack/.babelrc +0 -6
  54. package/vite-mf/rspack/compilation.config.js +0 -31
  55. package/vite-mf/rspack/package.json +0 -32
  56. package/vite-mf/rspack/postcss.config.js +0 -6
  57. package/vite-mf/rspack/rspack.config.js +0 -110
  58. package/vite-mf/rspack/src/App.tsx +0 -21
  59. package/vite-mf/rspack/src/Image.tsx +0 -18
  60. package/vite-mf/rspack/src/assets/rspack-logo.png +0 -0
  61. package/vite-mf/rspack/src/global.d.ts +0 -4
  62. package/vite-mf/rspack/src/index.css +0 -7
  63. package/vite-mf/rspack/src/index.html +0 -12
  64. package/vite-mf/rspack/src/index.tsx +0 -1
  65. package/vite-mf/rspack/tailwind.config.js +0 -11
  66. package/vite-mf/rspack/tsconfig.json +0 -29
  67. package/vite-mf/webpack/.babelrc +0 -13
  68. package/vite-mf/webpack/compilation.config.js +0 -31
  69. package/vite-mf/webpack/package.json +0 -46
  70. package/vite-mf/webpack/postcss.config.js +0 -6
  71. package/vite-mf/webpack/src/App.tsx +0 -16
  72. package/vite-mf/webpack/src/Image.tsx +0 -18
  73. package/vite-mf/webpack/src/assets/webpack-logo.png +0 -0
  74. package/vite-mf/webpack/src/global.d.ts +0 -4
  75. package/vite-mf/webpack/src/index.html +0 -12
  76. package/vite-mf/webpack/src/index.scss +0 -7
  77. package/vite-mf/webpack/src/index.ts +0 -1
  78. package/vite-mf/webpack/tailwind.config.js +0 -11
  79. package/vite-mf/webpack/tsconfig.json +0 -29
  80. package/vite-mf/webpack/webpack.config.js +0 -91
@@ -1,8 +0,0 @@
1
- import { init } from '@module-federation/runtime';
2
-
3
- init({
4
- name: 'vite-host',
5
- remotes: [],
6
- });
7
-
8
- import('./bootstrap');
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
- "module": "ESNext",
7
- "skipLibCheck": true,
8
-
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "allowImportingTsExtensions": true,
12
- "isolatedModules": true,
13
- "moduleDetection": "force",
14
- "noEmit": true,
15
- "jsx": "react-jsx",
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
22
- },
23
- "include": ["src"]
24
- }
@@ -1,4 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
4
- }
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "lib": ["ES2023"],
5
- "module": "ESNext",
6
- "skipLibCheck": true,
7
-
8
- /* Bundler mode */
9
- "moduleResolution": "bundler",
10
- "allowImportingTsExtensions": true,
11
- "isolatedModules": true,
12
- "moduleDetection": "force",
13
- "noEmit": true,
14
-
15
- /* Linting */
16
- "strict": true,
17
- "noUnusedLocals": true,
18
- "noUnusedParameters": true,
19
- "noFallthroughCasesInSwitch": true
20
- },
21
- "include": ["vite.config.ts"]
22
- }
@@ -1,40 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react';
3
- import { withZephyr } from 'vite-plugin-zephyr';
4
-
5
- const mfConfig = {
6
- name: 'vite-host',
7
- filename: 'remoteEntry.js',
8
- remotes: {
9
- 'vite-remote': {
10
- name: 'vite-remote',
11
- entry: 'http://localhost:5174/remoteEntry.js',
12
- type: 'module',
13
- },
14
- vite_webpack: {
15
- name: 'vite_webpack',
16
- entry: 'http://localhost:8080/remoteEntry.js',
17
- type: 'var',
18
- },
19
- vite_rspack: {
20
- name: 'vite_rspack',
21
- entry: 'http://localhost:8081/remoteEntry.js',
22
- type: 'var',
23
- },
24
- },
25
- shared: {
26
- react: {
27
- singleton: true,
28
- },
29
- 'react-dom': {
30
- singleton: true,
31
- },
32
- },
33
- };
34
-
35
- export default defineConfig({
36
- plugins: [react(), withZephyr({ mfConfig })],
37
- build: {
38
- target: 'chrome89',
39
- },
40
- });
package/vite-mf/image.png DELETED
Binary file
@@ -1,12 +0,0 @@
1
- {
2
- "name": "react-vite-mf",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC"
12
- }