Skip to content

Commit 186d33f

Browse files
committed
build(pnpm): yarn to pnpm
1 parent 620ca75 commit 186d33f

11 files changed

Lines changed: 22878 additions & 22898 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://github.com/Bedroc
115115

116116
### Your First Code Contribution
117117

118-
- Make sure you have yarn and node (>= 12) installed
118+
- Make sure you have pnpm and node (>= 12) installed
119119
- Your Pull Request must include both unit tests and functional (cypress) tests when possible.
120120

121121
### Improving The Documentation

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
# Install and build Docusaurus website
2626
- name: Build Docusaurus website
2727
run: |
28-
yarn install --no-progress --frozen-lockfile
29-
yarn lint docsite
30-
yarn build docsite
31-
yarn e2e docsite-e2e
28+
pnpm install --no-progress --frozen-lockfile
29+
pnpm lint docsite
30+
pnpm build docsite
31+
pnpm e2e docsite-e2e
3232
- name: Deploy to GitHub Pages
3333
if: success()
3434
uses: crazy-max/ghaction-github-pages@v2

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
- uses: actions/setup-node@v2
2222
with:
2323
node-version: '14'
24-
cache: yarn
25-
- run: yarn install --frozen-lockfile --non-interactive --no-progress --prefer-offline
24+
cache: pnpm
25+
- run: pnpm install --frozen-lockfile --non-interactive --no-progress --prefer-offline
2626
- run: npx nx affected --target=lint --parallel --max-parallel=3
2727
- run: npx nx affected --target=build --parallel --max-parallel=3
2828
- run: npx nx affected --target=test --parallel --max-parallel=2 --code-coverage
@@ -50,15 +50,15 @@ jobs:
5050
- uses: actions/setup-node@v2
5151
with:
5252
node-version: '14'
53-
cache: yarn
54-
- run: yarn install --frozen-lockfile --non-interactive --no-progress --prefer-offline
53+
cache: pnpm
54+
- run: pnpm install --frozen-lockfile --non-interactive --no-progress --prefer-offline
5555
- run: npx nx affected --base=origin/master --target=lint --parallel --max-parallel=3
5656
- run: npx nx affected --base=origin/master --target=build --parallel --max-parallel=3
5757
- run: npx nx affected --base=origin/master --target=test --parallel --max-parallel=2 --code-coverage
5858
- run: npx nx affected --base=origin/master --target=e2e --parallel --max-parallel=2
5959

6060
- name: Clean before merge
61-
run: yarn cleanBeforeMerge
61+
run: pnpm cleanBeforeMerge
6262

6363
- name: Codecov upload
6464
uses: codecov/codecov-action@v2

.github/workflows/prerelease.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
ref: ${{ github.event.inputs.branch }}
1919
- uses: actions/setup-node@v2
2020
with:
21-
cache: yarn
21+
cache: pnpm
2222
node-version: "14"
2323
registry-url: https://registry.npmjs.org
24-
- run: yarn install --frozen-lockfile --non-interactive --no-progress --prefer-offline
24+
- run: pnpm install --frozen-lockfile --non-interactive --no-progress --prefer-offline
2525
- name: Setup git user to "🤖 Release Bot"
2626
run: git config user.email "-" && git config user.name "🤖 Release Bot"
2727
- name: Version
2828
id: version
2929
env:
3030
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
# Use npx instead of yarn because yarn auto-magically sets NPM_* environment variables
32+
# Use npx instead of pnpm because pnpm auto-magically sets NPM_* environment variables
3333
# like NPM_CONFIG_REGISTRY so npm publish ends up ignoring the .npmrc file
3434
# which is set up by `setup-node` action.
3535
# run: npx nx affected --base=master --releaseAs=minor --target=version

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
- uses: actions/setup-node@v2
2121
with:
2222
node-version: "14"
23-
cache: yarn
23+
cache: pnpm
2424
- name: Install
2525
shell: bash
26-
run: yarn install --frozen-lockfile --non-interactive --no-progress --prefer-offline
26+
run: pnpm install --frozen-lockfile --non-interactive --no-progress --prefer-offline
2727
- name: Commit lint
2828
shell: bash
29-
run: yarn commitlint --from=last-release
29+
run: pnpm commitlint --from=last-release
3030
- name: Lint
31-
run: yarn nx affected:lint --base=last-release
31+
run: pnpm nx affected:lint --base=last-release
3232
- name: Build
33-
run: yarn nx affected:build --base=last-release
33+
run: pnpm nx affected:build --base=last-release
3434
- name: Unit tests
35-
run: yarn nx affected:test --base=last-release --code-coverage
35+
run: pnpm nx affected:test --base=last-release --code-coverage
3636
- name: Codecov upload
3737
uses: codecov/codecov-action@v2
3838
with:
@@ -50,17 +50,17 @@ jobs:
5050
fetch-depth: 0
5151
- uses: actions/setup-node@v2
5252
with:
53-
cache: yarn
53+
cache: pnpm
5454
node-version: "14"
5555
registry-url: https://registry.npmjs.org
56-
- run: yarn install --frozen-lockfile --non-interactive --no-progress --prefer-offline
56+
- run: pnpm install --frozen-lockfile --non-interactive --no-progress --prefer-offline
5757
- name: Setup git user to "🤖 Release Bot"
5858
run: git config user.email "-" && git config user.name "🤖 Release Bot"
5959
- name: Version
6060
env:
6161
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
# Use npx instead of yarn because yarn auto-magically sets NPM_* environment variables
63+
# Use npx instead of pnpm because pnpm auto-magically sets NPM_* environment variables
6464
# like NPM_CONFIG_REGISTRY so npm publish ends up ignoring the .npmrc file
6565
# which is set up by `setup-node` action.
6666
# run: npx nx affected --base=master --releaseAs=minor --target=version

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/out-tsc
77

88
# dependencies
9-
/node_modules
9+
node_modules
1010

1111
# IDEs and editors
1212
/.idea
@@ -31,7 +31,7 @@
3131
coverage-final.json
3232
/libpeerconnection.log
3333
npm-debug.log
34-
yarn-error.log
34+
pnpm-error.log
3535
testem.log
3636
/typings
3737

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,21 @@ The `demo` project is there to smoothe the dev experience
5050
The `docsite` project is the one used on https://bedrockstreaming.github.io/forms/
5151

5252
In order to start on the project, you can start with the demo project:
53-
`yarn start demo`
53+
`pnpm start demo`
5454

5555
### Generate an application
5656

57-
Run `yarn nx g @nrwl/react:app my-app` to generate an application.
57+
Run `pnpm nx g @nrwl/react:app my-app` to generate an application.
5858

5959
> You can use any of the plugins above to generate applications as well.
6060
6161
When using Nx, you can create multiple applications and libraries in the same workspace.
6262

6363
### Generate a library
6464

65-
Run `yarn nx g @nrwl/react:lib my-lib` to generate a react library.
66-
Run `yarn nx g @nrwl/react:web my-lib` to generate a web library.
67-
Run `yarn nx g @nrwl/react:node my-lib` to generate a node library.
65+
Run `pnpm nx g @nrwl/react:lib my-lib` to generate a react library.
66+
Run `pnpm nx g @nrwl/react:web my-lib` to generate a web library.
67+
Run `pnpm nx g @nrwl/react:node my-lib` to generate a node library.
6868

6969
> You can also use any of the plugins above to generate libraries as well.
7070
@@ -73,36 +73,36 @@ Libraries are shareable across libraries and applications. They can be imported
7373
If you want the library to be publishable use:
7474

7575
```bash
76-
yarn nx g @nrwl/react:lib my-lib --publishable --importPath="@bedrockstreaming/form-foo"
76+
pnpm nx g @nrwl/react:lib my-lib --publishable --importPath="@bedrockstreaming/form-foo"
7777
```
7878

7979
### Development server
8080

81-
Run `yarn nx serve my-app` for a dev server. Navigate to [http://localhost:4200/](http://localhost:4200/). The app will automatically reload if you change any of the source files.
81+
Run `pnpm nx serve my-app` for a dev server. Navigate to [http://localhost:4200/](http://localhost:4200/). The app will automatically reload if you change any of the source files.
8282

8383
### Code scaffolding
8484

85-
Run `yarn nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
85+
Run `pnpm nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
8686

8787
### Build
8888

89-
Run `yarn nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
89+
Run `pnpm nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
9090

9191
### Running unit tests
9292

93-
Run `yarn nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).
93+
Run `pnpm nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).
9494

95-
Run `yarn nx affected:test` to execute the unit tests affected by a change.
95+
Run `pnpm nx affected:test` to execute the unit tests affected by a change.
9696

9797
### Running end-to-end tests
9898

99-
Run `yarn nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
99+
Run `pnpm nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
100100

101-
Run `yarn nx affected:e2e` to execute the end-to-end tests affected by a change.
101+
Run `pnpm nx affected:e2e` to execute the end-to-end tests affected by a change.
102102

103103
### Understand your workspace
104104

105-
Run `yarn nx dep-graph` to see a diagram of the dependencies of your projects.
105+
Run `pnpm nx dep-graph` to see a diagram of the dependencies of your projects.
106106

107107
### Further help
108108

apps/docsite/docs/development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are two applications in this NX workspace `demo` and `docsite`. We are usi
1414
Start the server
1515

1616
```bash
17-
yarn start demo
17+
pnpm start demo
1818
```
1919

2020
Then start editing the libraries and demo app.
@@ -27,15 +27,15 @@ Then start editing the libraries and demo app.
2727

2828
### Generate an application
2929

30-
Run `yarn nx g @nrwl/react:app my-app` to generate an application.
30+
Run `pnpm nx g @nrwl/react:app my-app` to generate an application.
3131

3232
> You can use any of the plugins above to generate applications as well.
3333
3434
When using Nx, you can create multiple applications and libraries in the same workspace.
3535

3636
### Generate a library
3737

38-
Run `yarn nx g @nrwl/react:lib my-lib` to generate a react library.
38+
Run `pnpm nx g @nrwl/react:lib my-lib` to generate a react library.
3939
Run `yarn nx g @nrwl/react:web my-lib` to generate a web library.
4040
Run `yarn nx g @nrwl/react:node my-lib` to generate a node library.
4141

0 commit comments

Comments
 (0)