Skip to content

Commit 629bd32

Browse files
committed
Bump version to 1.0.2 and update README
1 parent f342641 commit 629bd32

File tree

9 files changed

+18
-65
lines changed

9 files changed

+18
-65
lines changed

.yarnrc.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ changesetBaseRefs:
33
- origin/main
44
- upstream/main
55

6-
npmScopes:
7-
redneckz:
8-
npmAlwaysAuth: true
9-
npmAuthIdent: "${NPM_REGISTRY_AUTH-}"
10-
npmPublishRegistry: "${NPM_REGISTRY-}"
11-
rshb:
12-
npmAlwaysAuth: true
13-
npmAuthIdent: "${NPM_REGISTRY_AUTH-}"
14-
npmPublishRegistry: "${NPM_REGISTRY-}"
6+
# npmScopes:
7+
# redneckz:
8+
# npmAlwaysAuth: true
9+
# npmAuthIdent: "${NPM_REGISTRY_AUTH-}"
10+
# npmPublishRegistry: "${NPM_REGISTRY-}"
1511

1612
packageExtensions:
1713
babel-loader@*:

README.md

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ import React from 'react';
181181
import { Redirect, Switch, Route } from 'react-router-dom';
182182

183183
import { register } from '@redneckz/microfront-core';
184-
import { MicroFrontInShadow } from '@redneckz/microfront-core-react';
184+
import { MicroFrontContainer } from '@redneckz/microfront-core-react';
185185

186186
const bootstrapFoo = register(
187187
'foo', // remote module name according to Module Federation config
@@ -191,58 +191,15 @@ const bootstrapFoo = register(
191191
export const App: React.FC = () => (
192192
<Switch>
193193
<Route path="path/to/foo">
194-
<MicroFrontInShadow route="path/to/foo" bootstrap={bootstrapFoo}>
194+
<MicroFrontContainer route="path/to/foo" bootstrap={bootstrapFoo}>
195195
{mountingRootRef => <div ref={mountingRootRef}>Loading...</div>}
196-
</MicroFrontInShadow>
196+
</MicroFrontContainer>
197197
</Route>
198198
...
199199
</Switch>
200200
);
201201
```
202202

203-
## Step #4 [Angular] Host Container
204-
205-
TODO Implement @redneckz/microfront-core-angular
206-
207-
```ts
208-
import { Component, NgModule } from '@angular/core';
209-
import { RouterModule, Routes } from '@angular/router';
210-
211-
import { register } from '@redneckz/microfront-core';
212-
import { MicroFrontCoreModule } from '@redneckz/microfront-core-angular';
213-
214-
const bootstrapFoo = register(
215-
'foo', // remote module name according to Module Federation config
216-
() => import('foo/foo-page') // remote module
217-
);
218-
219-
@Component({
220-
// "microfront-in-shadow" is a part of "MicroFrontCoreModule"
221-
template: '<microfront-in-shadow route="path/to/foo" [bootstrap]="bootstrap"></microfront-in-shadow>'
222-
})
223-
export class FooInShadowComponent {
224-
bootstrap = bootstrapFoo;
225-
}
226-
227-
const routes: Routes = [
228-
...,
229-
{
230-
path: 'path/to/foo', // remote module root route
231-
children: [{
232-
path: '**',
233-
component: FooInShadowComponent
234-
}]
235-
}
236-
];
237-
238-
@NgModule({
239-
declarations: [FooInShadowComponent],
240-
imports: [RouterModule.forRoot(routes), MicroFrontCoreModule],
241-
exports: [RouterModule]
242-
})
243-
export class AppRoutingModule {}
244-
```
245-
246203
## Step #5 [React] Micro Frontend
247204

248205
```tsx

demo/react-host/src/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const App: React.FC = () => (
3636
<Router>
3737
<Layout
3838
header={
39-
/* Typings are correctly seeped from "bootstrapHeader" to "MicroFrontInShadow" */
39+
/* Typings are correctly seeped from "bootstrapHeader" to "MicroFrontContainer" */
4040
<MicroFrontContainer bootstrap={bootstrapHeader} title="Micro Frontend Host Container">
4141
{mountingRootRef => <div ref={mountingRootRef}>Loading...</div>}
4242
</MicroFrontContainer>

packages/microfront-core-react/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Integrate micro frontend with host container and pass in additional params:
128128
import React from 'react';
129129

130130
import { register } from '@redneckz/microfront-core';
131-
import { MicroFrontInShadow } from '@redneckz/microfront-core-react';
131+
import { MicroFrontContainer } from '@redneckz/microfront-core-react';
132132

133133
import { Layout } from './Layout';
134134

@@ -149,10 +149,10 @@ const bootstrapHeader = register<HeaderProps>(
149149
export const App: React.FC = () => (
150150
<Layout
151151
header={
152-
/* Typings are correctly seeped from "bootstrapHeader" to "MicroFrontInShadow" */
153-
<MicroFrontInShadow bootstrap={bootstrapHeader} title="Micro Frontends">
152+
/* Typings are correctly seeped from "bootstrapHeader" to "MicroFrontContainer" */
153+
<MicroFrontContainer bootstrap={bootstrapHeader} title="Micro Frontends">
154154
{mountingRootRef => <div ref={mountingRootRef}>Loading...</div>}
155-
</MicroFrontInShadow>
155+
</MicroFrontContainer>
156156
}
157157
>
158158
...

packages/microfront-core-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@redneckz/microfront-core-react",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Microfrontend lightweight core library for React",
55
"keywords": [
66
"microfrontend",

packages/microfront-core-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@redneckz/microfront-core-vue",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Microfrontend lightweight core library for Vue 3",
55
"main": "dist/index.js",
66
"module": "lib/index.js",

packages/microfront-core-vue2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@redneckz/microfront-core-vue2",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Microfrontend lightweight core library for Vue 2",
55
"main": "dist/index.js",
66
"module": "lib/index.js",

packages/microfront-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@redneckz/microfront-core",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Microfrontend lightweight core library",
55
"keywords": [
66
"microfrontend"

packages/module-federation-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@redneckz/module-federation-utils",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Module Federation Utils",
55
"keywords": [
66
"webpack",

0 commit comments

Comments
 (0)