Skip to content

Commit 05cd96c

Browse files
Replace yarn (#3554)
* introduce basic api style controller * locks * locks * update readme * replace yarn with pnpm in readme * locks * ignore files * ignore files --------- Co-authored-by: ScriptedAlchemy <[email protected]>
1 parent fc74365 commit 05cd96c

File tree

112 files changed

+2120
-742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2120
-742
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ buildServer
132132
**/cypress/report/**
133133
/federated-express-routes/host/build/
134134
/federated-express-routes/remote/build/
135-
/comprehensive-demo-react*/*/public/*.js
136-
/comprehensive-demo-react*/*/public/*.css
135+
/comprehensive-demo-react*/**/public/*.js
136+
/comprehensive-demo-react*/**/public/*.css
137137
*.map
138138

angular-universal-ssr/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Running Demo
77

8-
Run `yarn start`. This will build and serve both `client-app`, `host-app`, on
8+
Run `pnpm run start`. This will build and serve both `client-app`, `host-app`, on
99
ports `4000`, `5000`, respectively.
1010

1111
- [localhost:4000](http://localhost:4000/) (CLIENT_APP)

angular-universal-ssr/e2e.ci.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const concurrently = require('concurrently');
22
const commands = {
3-
startHost: 'yarn start',
3+
startHost: 'pnpm run start',
44
startE2e: 'wait-on http://localhost:4000 && yarn e2e:test'
55
};
66

angular11-microfrontends-ngrx/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ cd angular11-microfrontends-ngrx
2020

2121
- Install packages: `yarn install`
2222
- Build the shared library `yarn build:shared`
23-
- Start the mdmf-shell: `yarn start:shell`
24-
- Start the Microfrontend: `yarn start:profile`
23+
- Start the mdmf-shell: `pnpm run start:shell`
24+
- Start the Microfrontend: `pnpm run start:profile`
2525
- Open the shell http://localhost:4200
2626
- Click the profile navigation link to load the remote Microfrontend
2727

angular11-microfrontends-ngxs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ This project shows an example of using Webpack 5 Module Federation with Angular
1818

1919
- Install packages: `yarn install`
2020
- Build the shared library `yarn build:shared`
21-
- Start the mdmf-shell: `yarn start:shell`
22-
- Start the Microfrontend: `yarn start:profile`
21+
- Start the mdmf-shell: `pnpm run start:shell`
22+
- Start the Microfrontend: `pnpm run start:profile`
2323
- Open the shell http://localhost:4200
2424
- Click the profile navigation link to load the remote Microfrontend
2525

angular14-react/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Note the use of **yarn**, this is required to override the webpack version for t
88

99
For `react-user-list`:
1010
- Install packages: `yarn install`
11-
- Start: `yarn start`(the app uses port 3002)
11+
- Start: `pnpm run start`(the app uses port 3002)
1212

1313

1414
For `angular-profile`:
1515

1616
- Install packages: `yarn install`
17-
- Start: `yarn start`
17+
- Start: `pnpm run start`
1818
- Open the shell http://localhost:4201
1919

2020
Ports could be changed in `webpack.config.js` files located in `react-user-list` and `angular-profile` folders.

angular15-microfrontends-lazy-components/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ This project shows an example of using Webpack 5 Module Federation with Angular
1818

1919
- Install packages: `yarn install`
2020
- Build the shared library `yarn build:shared`
21-
- Start the mdmf-shell: `yarn start:shell`
22-
- Start the Microfrontend: `yarn start:profile`
21+
- Start the mdmf-shell: `pnpm run start:shell`
22+
- Start the Microfrontend: `pnpm run start:profile`
2323
- Open the shell http://localhost:4200
2424
- Click the profile navigation link to load the remote Microfrontend
2525

angular15-vue3/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This project shows an example of using Webpack 5 Module Federation with Angular
55
## Running the demo
66

77
- Install packages: `yarn install`
8-
- Start the shell: `yarn start:shell`
9-
- Start the shell: `yarn start:remote`
8+
- Start the shell: `pnpm run start:shell`
9+
- Start the shell: `pnpm run start:remote`
1010
- Open the shell http://localhost:4200
1111

1212
# Running Cypress E2E Tests

angular15-vue3/e2e.ci.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const concurrently = require('concurrently');
22
const commands = {
3-
startHost: 'yarn start:shell',
4-
startRemote: 'yarn start:remote',
3+
startHost: 'pnpm run start:shell',
4+
startRemote: 'pnpm run start:remote',
55
startE2e: 'yarn e2e:test'
66
};
77

apollo-client/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `app2` is used to expose a component called `Content` and a route called `us
1111

1212
Run `yarn` to install the dependencies.
1313

14-
Run `yarn start` this will build and start all applications.
14+
Run `pnpm run start` this will build and start all applications.
1515

1616
Bellow you can see the port mapping:
1717

basic-host-remote/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This example demos a basic host application loading remote component.
77

88
# Running Demo
99

10-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
10+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1111

1212
- [localhost:3001](http://localhost:3001/) (HOST)
1313
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

bi-directional/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This example demos bi-directional hosts each with their own remote `Button` comp
77

88
# Running Demo
99

10-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
10+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1111

1212
- [localhost:3001](http://localhost:3001/)
1313
- [localhost:3002](http://localhost:3002/)

comprehensive-demo-react16/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
```sh
44
yarn install
5-
yarn start
5+
pnpm run start
66
```
77

88
Open [http://localhost:3001](http://localhost:3001).

comprehensive-demo-react18/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
```sh
44
yarn install
5-
yarn start
5+
pnpm run start
66
```
77

88
Open [http://localhost:3001](http://localhost:3001).

comprehensive-demo-react18/app-01/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
},
2323
"scripts": {
2424
"build": "cross-env NODE_ENV=production rspack build --mode production",
25-
"legacy:build": "cross-env NODE_ENV=production webpack",
26-
"start": "rspack cross-env NODE_ENV=production --watch",
25+
"legacy:build": "cross-env NODE_ENV=production webpack --mode production",
26+
"start": "rspack --watch",
2727
"legacy:start": "webpack --watch",
2828
"dev": "rspack serve",
2929
"legacy:dev": "webpack-dev-server --content-base public",

comprehensive-demo-react18/app-02/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"build": "cross-env NODE_ENV=production rspack build --mode production",
24-
"legacy:build": "cross-env NODE_ENV=production webpack",
24+
"legacy:build": "cross-env NODE_ENV=production webpack --mode production",
2525
"start": "rspack cross-env NODE_ENV=production --watch",
2626
"legacy:start": "webpack --watch",
2727
"dev": "rspack serve",

comprehensive-demo-react18/app-03/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"build": "cross-env NODE_ENV=production rspack build --mode production",
24-
"legacy:build": "cross-env NODE_ENV=production webpack",
24+
"legacy:build": "cross-env NODE_ENV=production webpack --mode production",
2525
"start": "rspack serve",
2626
"legacy:start": "webpack --watch",
2727
"dev": "rspack serve",

comprehensive-demo-react18/app-04/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"build": "cross-env NODE_ENV=production rspack build --mode production",
24-
"legacy:build": "cross-env NODE_ENV=production webpack",
24+
"legacy:build": "cross-env NODE_ENV=production webpack --mode production",
2525
"start": "rspack serve",
2626
"legacy:start": "webpack --watch",
2727
"dev": "rspack serve",

comprehensive-demo-react18/app-05/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"ignored": true,
66
"scripts": {
77
"build": "cross-env NODE_ENV=production rspack build --mode production",
8-
"legacy:build": "cross-env NODE_ENV=production webpack",
8+
"legacy:build": "cross-env NODE_ENV=production webpack --mode production",
99
"start": "rspack serve",
1010
"legacy:start": "webpack --watch",
1111
"dev": "rspack serve",

cra-react-app-rewired/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This example demos a basic host application loading remote component.
88

99
# Running Demo
1010
Run `yarn install`.
11-
Run `yarn start`. This will build and serve both `host` and `remote` on ports 3000 and 3001 respectively.
11+
Run `pnpm run start`. This will build and serve both `host` and `remote` on ports 3000 and 3001 respectively.
1212

1313
- [localhost:3000](http://localhost:3000/) (HOST)
1414
- [localhost:3001](http://localhost:3001) (STANDALONE REMOTE)

cra-react-app-rewired/host/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
You can add webfonts, meta tags, or analytics to this file.
3434
The build step will place the bundled scripts into the <body> tag.
3535
36-
To begin the development, run `npm start` or `yarn start`.
36+
To begin the development, run `npm start` or `pnpm run start`.
3737
To create a production bundle, use `npm run build` or `yarn build`.
3838
-->
3939
</body>

cra-react-app-rewired/remote/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
You can add webfonts, meta tags, or analytics to this file.
3434
The build step will place the bundled scripts into the <body> tag.
3535
36-
To begin the development, run `npm start` or `yarn start`.
36+
To begin the development, run `npm start` or `pnpm run start`.
3737
To create a production bundle, use `npm run build` or `yarn build`.
3838
-->
3939
</body>

cra/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This example demos a basic host application loading remote component.
77

88
# Running Demo
99

10-
Run `yarn start`. This will build and serve both `host` and `remote` on ports 3001 and 3002 respectively.
10+
Run `pnpm run start`. This will build and serve both `host` and `remote` on ports 3001 and 3002 respectively.
1111

1212
- [localhost:3001](http://localhost:3000/) (HOST)
1313
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

css-isolation/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ By default the Webpack style-loader will inject CSS in `<style>` tags into the `
3333

3434
# Running Demo
3535

36-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
36+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
3737

3838
- [localhost:3001](http://localhost:3001/) (HOST)
3939
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

different-react-versions-16-17-typescript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The adapter consumes both versions of react to "translate" the props into a fres
1111

1212
# Running Demo
1313

14-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
14+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1515

1616
- [localhost:3001](http://localhost:3001/) (HOST)
1717
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

different-react-versions-16-17/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The adapter consumes both versions of react to "translate" the props into a fres
1111

1212
# Running Demo
1313

14-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
14+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1515

1616
- [localhost:3001](http://localhost:3001/) (HOST)
1717
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

different-react-versions-16-18/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The adapter consumes both versions of react to "translate" the props into a fres
1111

1212
# Running Demo
1313

14-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
14+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1515

1616
- [localhost:3001](http://localhost:3001/) (HOST)
1717
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

different-react-versions-isolated/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This example demos host and remote applications running in isolation with two di
77

88
# Running Demo
99

10-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
10+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1111

1212
- [localhost:3001](http://localhost:3001/) (HOST)
1313
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

different-react-versions-typescript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Module Federation allows us to create an adapter which attaches a hooks-friendly
1111

1212
## Running Demo
1313

14-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
14+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1515

1616
- [localhost:3001](http://localhost:3001/) (HOST)
1717
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

different-react-versions/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Module Federation allows us to create an adapter which attaches a hooks-friendly
1111

1212
## Running Demo
1313

14-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
14+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1515

1616
- [localhost:3001](http://localhost:3001/) (HOST)
1717
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

dynamic-remotes-node/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Similar to browser side dynamic remotes.
44

55
This allows you to dynamically load remote containers on the server.
66

7-
`yarn start` will initiate a build and http server, then node will execute a simple test.
7+
`pnpm run start` will initiate a build and http server, then node will execute a simple test.
88

99
## runtime-container
10-
This example shows the same thing but how to do it outside of the webpack runtime (outside a webpack bundle). See the script `import-remote.js`, which is not compiled by webpack. Run the command `yarn import-remote` or simply, `node import-remote.js`
10+
This example shows the same thing but how to do it outside of the webpack runtime (outside a webpack bundle). See the script `import-remote.js`, which is not compiled by webpack. Run the command `yarn import-remote` or simply, `node import-remote.js`

dynamic-system-host/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This example demos a basic host application loading remote component.
99

1010
# Running Demo
1111

12-
Run `yarn start`. This will build and serve both `app1`, `app2`, and `app3` on
12+
Run `pnpm run start`. This will build and serve both `app1`, `app2`, and `app3` on
1313
ports `3001`, `3002`, and `3003` respectively.
1414

1515
- [localhost:3001](http://localhost:3001/) (HOST)

federated-css/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Commands will run host react App on `http://localhost:3001-3008/`
4141

4242
Since there are 9! variants of remotes combinations you are able to create and run your own `start:react:any-combination --scopes=@federated-css/{REQUIRED_COMBINATION_OF_REMOTES}`
4343

44-
ex. `yarn start:react:any-combination @federated-css/{expose-css,expose-scss,expose-less,expose-tailwind-css-global}`
44+
ex. `pnpm run start:react:any-combination @federated-css/{expose-css,expose-scss,expose-less,expose-tailwind-css-global}`
4545
it will run all required expose remotes and creates host app with provided depth.
4646
Note. you don't need to start required remotes separately for this command.
4747

@@ -64,7 +64,7 @@ Commands will run host NextJs App on `http://localhost:8081-8084/`.
6464

6565
Since there are 9! variants of remotes combinations you are able to create and run your own `start:nextjs:any-combination --scopes=@federated-css/{REQUIRED_COMBINATION_OF_REMOTES}`
6666

67-
ex. `yarn start:nextjs:any-combination @federated-css/{expose-css,expose-scss,expose-less,expose-tailwind-css-global}`
67+
ex. `pnpm run start:nextjs:any-combination @federated-css/{expose-css,expose-scss,expose-less,expose-tailwind-css-global}`
6868
it will run all required expose remotes and creates host app with provided depth.
6969
Note. you don't need to start required remotes separately for this command.
7070

federated-npm/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This example demos a basic host application loading remote component.
77

88
# Running Demo
99

10-
Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
10+
Run `pnpm run start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.
1111

1212
- [localhost:3001](http://localhost:3001/) (HOST)
1313
- [localhost:3002](http://localhost:3002/) (STANDALONE REMOTE)

genesis/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Running Demo
99

10-
Run `yarn && yarn dev` or `yarn && yarn build && yarn start`
10+
Run `yarn && yarn dev` or `yarn && yarn build && pnpm run start`
1111

1212
- [localhost:3001](http://localhost:3001) (ssr-mf-home)
1313
- [localhost:3002](http://localhost:3002/about) (ssr-mf-about)

loadable-react-16/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `app2` is used to expose a component called `Content` and a route called `us
1313

1414
Run `yarn` to install the dependencies.
1515

16-
Run `yarn start` this will build and start all applications.
16+
Run `pnpm run start` this will build and start all applications.
1717

1818
Bellow you can see the port mapping:
1919

loadable-react-18/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `app2` is used to expose a component called `Content` and a route called `us
1313

1414
Run `yarn` to install the dependencies.
1515

16-
Run `yarn start` this will build and start all applications.
16+
Run `pnpm run start` this will build and start all applications.
1717

1818
Bellow you can see the port mapping:
1919

medusa-delegate-example/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
2. Login to medusa https://medusa.codes/
77
3. Generate Read/Write Tokens and save https://app.medusa.codes/settings
88
4. Copy Read/Write Tokens and add them to `.env` in the root of this directory.
9-
5. Run a build with yarn start, then go check medusa.
9+
5. Run a build with pnpm run start, then go check medusa.
1010
6. If you want to test out version management, change something in `dsl` and run `yarn build && yarn serve` again - you will now be able to control what remote/app uses what version at runtime
1111

1212
# Running Demo

medusa-example/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
2. Login to medusa https://medusa.codes/
77
3. Generate Read/Write Tokens and save https://app.medusa.codes/settings
88
4. Copy Read/Write Tokens and add them to `.env` in the root of this directory.
9-
5. Run a build with yarn start, then go check medusa.
9+
5. Run a build with pnpm run start, then go check medusa.
1010
6. If you want to test out version management, change something in `dsl` and run `yarn build && yarn serve` again - you will now be able to control what remote/app uses what version at runtime
1111

1212
# Running Demo

modernjs-medusa/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
2. Login to medusa https://medusa.codes/
77
3. Generate Read/Write Tokens and save https://app.medusa.codes/settings
88
4. Copy Read/Write Tokens and add them to `.env` in the root of this directory.
9-
5. Run a build with yarn start, then go check medusa.
9+
5. Run a build with pnpm run start, then go check medusa.
1010

1111
# Running Demo
1212

@@ -15,4 +15,4 @@ Run `yarn build && yarn serve`
1515
- [Host is on localhost:3001](http://localhost:3001/)
1616
- [Provider is on localhost:3002](http://localhost:3002/)
1717

18-
<img src="https://sf16-sg.tiktokcdn.com/obj/eden-sg/shloeh7nuhonuhog/medusa.jpeg" width="800"/>
18+
<img src="https://sf16-sg.tiktokcdn.com/obj/eden-sg/shloeh7nuhonuhog/medusa.jpeg" width="800"/>

0 commit comments

Comments
 (0)