Skip to content

Commit 673e15a

Browse files
committed
migrate to npm
1 parent c1ca50f commit 673e15a

File tree

10 files changed

+17545
-12209
lines changed

10 files changed

+17545
-12209
lines changed

Diff for: .github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: '18.x'
18-
cache: 'yarn'
18+
cache: 'npm'
1919

20-
- run: yarn
20+
- run: npm i
2121

22-
- run: yarn build && yarn export
22+
- run: npm run build && npm run export
2323
env:
2424
NEXT_PUBLIC_GA_TRACKING_ID: ${{ secrets.ANALYTICS_ID }}
2525

Diff for: .npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fund=false
2+
audit=false
3+
4+
legacy-peer-deps=true

Diff for: README.md

+4-9
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@ This repo contains the source code and documentation powering [react.dev](https:
88
### Prerequisites
99

1010
1. Git
11-
1. Node: any 12.x version starting with v12.0.0 or greater
12-
1. Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
11+
1. Node and NPM
1312
1. A fork of the repo (for any contributions)
1413
1. A clone of the [reactjs.org repo](https://github.com/reactjs/reactjs.org) on your local machine
1514

1615
### Installation
1716

18-
`yarn` to install the website's npm dependencies
17+
`npm i` to install the website's npm dependencies
1918

2019
### Running locally
2120

22-
1. `yarn dev` to start the development server (powered by [Next.js](https://nextjs.org/))
21+
1. `npm run dev` to start the development server (powered by [Next.js](https://nextjs.org/))
2322
2. `open http://localhost:3000` to open the site in your favorite browser
2423

2524
## Contributing
@@ -45,7 +44,7 @@ The documentation is divided into several sections with a different tone and pur
4544
### Test the change
4645

4746
1. If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile.
48-
2. Run `yarn check-all`. (This will run Prettier, ESLint and validate types.)
47+
2. Run `npm run check-all`. (This will run Prettier, ESLint and validate types.)
4948

5049
### Push it
5150

@@ -62,10 +61,6 @@ If you are interested in translating `reactjs.org`, please see the current trans
6261

6362
If your language does not have a translation and you would like to create one, please follow the instructions at [reactjs.org Translations](https://github.com/reactjs/reactjs.org-translation#translating-reactjsorg).
6463

65-
## Troubleshooting
66-
67-
- `yarn reset` to clear the local cache
68-
6964
## Acknowledgements
7065

7166
This website was built by forking the source code of the React documentation website at [react.dev](https://react.dev) at the [source repository](https://github.com/reactjs/react.dev).

0 commit comments

Comments
 (0)