mfeflow 0.1.0 → 0.3.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.
- package/assets/features/analytics-clarity/feature.json +64 -0
- package/assets/features/analytics-clarity/files/clarity-test.ts +36 -0
- package/assets/features/analytics-clarity/files/clarity.ts +26 -0
- package/assets/features/analytics-gtm/files/init.ts +2 -2
- package/assets/features/ci-github/files/ci.md +1 -1
- package/assets/features/ci-github/files/ci.yml +4 -4
- package/assets/features/commit-prompt/feature.json +27 -0
- package/assets/features/commit-prompt/files/cz.config.js +27 -0
- package/assets/features/data-react-query/feature.json +89 -0
- package/assets/features/data-react-query/files/keys.ts.eta +8 -0
- package/assets/features/data-react-query/files/remote-Query-test.tsx.eta +39 -0
- package/assets/features/data-react-query/files/remote-Query.tsx +15 -0
- package/assets/features/data-react-query/files/shell-Query-test.tsx +21 -0
- package/assets/features/data-react-query/files/shell-Query.tsx +14 -0
- package/assets/features/data-react-query/files/useHealth.fetch.ts.eta +15 -0
- package/assets/features/data-react-query/files/useHealth.http.ts.eta +11 -0
- package/assets/features/env-t3/feature.json +42 -0
- package/assets/features/env-t3/files/env.arktype.ts +1 -1
- package/assets/features/env-t3/files/env.valibot.ts +1 -1
- package/assets/features/env-t3/files/env.zod.ts +1 -1
- package/assets/features/env-t3/files/schema.arktype.ts +1 -1
- package/assets/features/env-t3/files/schema.valibot.ts +1 -1
- package/assets/features/env-t3/files/schema.zod.ts +1 -1
- package/assets/features/event-bus/feature.json +100 -0
- package/assets/features/event-bus/files/announce.tsx.eta +10 -0
- package/assets/features/event-bus/files/contracts-events.ts +11 -0
- package/assets/features/event-bus/files/contracts-package.json.eta +10 -0
- package/assets/features/event-bus/files/contracts-readme.md +10 -0
- package/assets/features/event-bus/files/events-test.ts.eta +18 -0
- package/assets/features/event-bus/files/events.ts.eta +20 -0
- package/assets/features/event-bus/files/shell-events-test.ts.eta +22 -0
- package/assets/features/event-bus/files/shell-events.ts.eta +19 -0
- package/assets/features/forms/feature.json +90 -0
- package/assets/features/forms/files/ContactForm-test.tsx +35 -0
- package/assets/features/forms/files/ContactForm.tsx +50 -0
- package/assets/features/forms/files/schema.arktype.ts +9 -0
- package/assets/features/forms/files/schema.valibot.ts +9 -0
- package/assets/features/forms/files/schema.zod.ts +9 -0
- package/assets/features/http/feature.json +81 -0
- package/assets/features/http/files/client-test.ts +19 -0
- package/assets/features/http/files/client.ts +20 -0
- package/assets/features/i18n/feature.json +139 -0
- package/assets/features/i18n/files/LanguageSwitcher.tsx +28 -0
- package/assets/features/i18n/files/Languages.tsx +12 -0
- package/assets/features/i18n/files/language-switcher-test.tsx +19 -0
- package/assets/features/i18n/files/remote-I18n-test.tsx.eta +43 -0
- package/assets/features/i18n/files/remote-I18n.tsx.eta +36 -0
- package/assets/features/i18n/files/remote-ar.json.eta +3 -0
- package/assets/features/i18n/files/remote-config.ts +9 -0
- package/assets/features/i18n/files/remote-en.json.eta +3 -0
- package/assets/features/i18n/files/remote-load.ts +4 -0
- package/assets/features/i18n/files/shell-config.ts +20 -0
- package/assets/features/i18n/files/shell-init-test.ts +32 -0
- package/assets/features/i18n/files/shell-init.ts +7 -0
- package/assets/features/lint-oxlint/files/oxlintrc.json +1 -1
- package/assets/features/lint-oxlint/files/prettierignore +1 -0
- package/assets/features/route-factory/feature.json +60 -0
- package/assets/features/route-factory/files/contract.ts.eta +7 -0
- package/assets/features/route-factory/files/routes-contract.ts.eta +11 -0
- package/assets/features/route-factory/files/routes-test.ts.eta +9 -0
- package/assets/features/route-factory/files/routes.ts.eta +11 -0
- package/assets/features/storybook/feature.json +119 -0
- package/assets/features/storybook/files/App.stories.tsx.eta +8 -0
- package/assets/features/storybook/files/Home.stories.tsx +9 -0
- package/assets/features/storybook/files/button.stories.tsx +14 -0
- package/assets/features/storybook/files/remote-main.ts +13 -0
- package/assets/features/storybook/files/rsbuild.config.ts +10 -0
- package/assets/features/storybook/files/shell-main.ts +39 -0
- package/assets/features/tailwind/feature.json +87 -0
- package/assets/features/tailwind/files/Scope-test.tsx.eta +17 -0
- package/assets/features/tailwind/files/Scope.tsx.eta +15 -0
- package/assets/features/tailwind/files/postcss.config.mjs +1 -0
- package/assets/features/tailwind/files/remote-styles.css.eta +21 -0
- package/assets/features/tailwind/files/shell-styles.css.eta +22 -0
- package/assets/features/testing/files/vitest.config.ts +11 -2
- package/assets/features/theming/feature.json +103 -0
- package/assets/features/theming/files/Theme.tsx +15 -0
- package/assets/features/theming/files/ThemeToggle.tsx +23 -0
- package/assets/features/theming/files/apply-stored-test.ts +37 -0
- package/assets/features/theming/files/apply-stored.ts +13 -0
- package/assets/features/theming/files/head-script.ts +8 -0
- package/assets/features/theming/files/theme-toggle-test.tsx +18 -0
- package/assets/features/theming/files/theme.css +14 -0
- package/assets/features/theming/files/themes.ts +30 -0
- package/assets/features/theming/files/tokens-test.ts +9 -0
- package/assets/features/theming/files/tokens.ts +9 -0
- package/assets/features/ui-shadcn/feature.json +61 -0
- package/assets/features/ui-shadcn/files/button-test.tsx.eta +32 -0
- package/assets/features/ui-shadcn/files/button.tsx.eta +36 -0
- package/assets/features/ui-shadcn/files/components.json.eta +22 -0
- package/assets/features/ui-shadcn/files/utils-test.ts.eta +17 -0
- package/assets/features/ui-shadcn/files/utils.ts.eta +11 -0
- package/assets/features/url-factory/files/endpoints.ts +13 -2
- package/assets/templates/monorepo/feature.json +26 -0
- package/assets/templates/monorepo/files/root/AGENTS.md.eta +3 -3
- package/assets/templates/monorepo/files/root/README.md.eta +11 -11
- package/assets/templates/monorepo/files/root/gitignore.eta +1 -0
- package/assets/templates/monorepo/files/root/pnpm-workspace.yaml.eta +3 -1
- package/assets/templates/monorepo/files/shell/src/pages/Home.tsx.eta +3 -1
- package/dist/index.js +62 -0
- package/package.json +4 -4
|
@@ -2,6 +2,8 @@ packages:
|
|
|
2
2
|
- apps/*
|
|
3
3
|
- packages/*
|
|
4
4
|
|
|
5
|
-
# Dependencies allowed to run install scripts.
|
|
5
|
+
# Dependencies allowed to run install scripts. esbuild (pulled in by Storybook) works without its
|
|
6
|
+
# script; listing it as false keeps pnpm from stopping the install to ask.
|
|
6
7
|
allowBuilds:
|
|
7
8
|
lefthook: true
|
|
9
|
+
esbuild: false
|
|
@@ -3,7 +3,9 @@ import { RemoteBoundary, registeredRemotes } from '@mfeflow/runtime';
|
|
|
3
3
|
// Shows every remote the registry listed, so a new remote appears here without a code change.
|
|
4
4
|
export function Home() {
|
|
5
5
|
const remotes = registeredRemotes();
|
|
6
|
-
if (remotes.length === 0)
|
|
6
|
+
if (remotes.length === 0) {
|
|
7
|
+
return <p>No remotes yet. Run `pnpm mfeflow add remote <name>`.</p>;
|
|
8
|
+
}
|
|
7
9
|
return remotes.map((remote) => (
|
|
8
10
|
<section key={remote.name}>
|
|
9
11
|
<RemoteBoundary id={`${remote.name}/App`} loading={<p>Loading {remote.name}…</p>} />
|
package/dist/index.js
CHANGED
|
@@ -156,6 +156,61 @@ const FIRST_PARTY = [
|
|
|
156
156
|
always: false,
|
|
157
157
|
default: false
|
|
158
158
|
},
|
|
159
|
+
{
|
|
160
|
+
name: 'event-bus',
|
|
161
|
+
always: false,
|
|
162
|
+
default: false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'route-factory',
|
|
166
|
+
always: false,
|
|
167
|
+
default: false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'http',
|
|
171
|
+
always: false,
|
|
172
|
+
default: false
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'theming',
|
|
176
|
+
always: false,
|
|
177
|
+
default: false
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'i18n',
|
|
181
|
+
always: false,
|
|
182
|
+
default: false
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'tailwind',
|
|
186
|
+
always: false,
|
|
187
|
+
default: false
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'ui-shadcn',
|
|
191
|
+
always: false,
|
|
192
|
+
default: false
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'forms',
|
|
196
|
+
always: false,
|
|
197
|
+
default: false
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: 'data-react-query',
|
|
201
|
+
always: false,
|
|
202
|
+
default: false
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'analytics-clarity',
|
|
206
|
+
always: false,
|
|
207
|
+
default: false
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'storybook',
|
|
211
|
+
always: false,
|
|
212
|
+
default: false
|
|
213
|
+
},
|
|
159
214
|
{
|
|
160
215
|
name: 'ci-github',
|
|
161
216
|
always: false,
|
|
@@ -165,6 +220,11 @@ const FIRST_PARTY = [
|
|
|
165
220
|
name: 'git-hooks',
|
|
166
221
|
always: false,
|
|
167
222
|
default: false
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: 'commit-prompt',
|
|
226
|
+
always: false,
|
|
227
|
+
default: false
|
|
168
228
|
}
|
|
169
229
|
];
|
|
170
230
|
function isFirstParty(name) {
|
|
@@ -1583,6 +1643,8 @@ const SINGLETON_SPECIFIERS = [
|
|
|
1583
1643
|
'@mfeflow/analytics',
|
|
1584
1644
|
'@mfeflow/analytics/react',
|
|
1585
1645
|
'@mfeflow/telemetry',
|
|
1646
|
+
'@mfeflow/event-bus',
|
|
1647
|
+
'@mfeflow/event-bus/react',
|
|
1586
1648
|
'@mfeflow/storage',
|
|
1587
1649
|
'@mfeflow/storage/react',
|
|
1588
1650
|
'@mfeflow/theme',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mfeflow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Create and grow a React micro-frontend platform: mfeflow init, add remote, add <feature>.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"micro-frontend",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@clack/prompts": "1.8.1",
|
|
52
|
-
"@mfeflow/contracts": "0.
|
|
53
|
-
"@mfeflow/core": "0.
|
|
52
|
+
"@mfeflow/contracts": "0.3.0",
|
|
53
|
+
"@mfeflow/core": "0.3.0",
|
|
54
54
|
"citty": "0.2.2",
|
|
55
55
|
"semver": "7.8.5",
|
|
56
56
|
"yaml": "2.9.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@mfeflow/rsbuild": "0.
|
|
59
|
+
"@mfeflow/rsbuild": "0.3.0",
|
|
60
60
|
"@rslib/core": "1.0.5",
|
|
61
61
|
"@types/node": "26.6.6",
|
|
62
62
|
"@types/semver": "7.8.0",
|