Skip to content

Commit fa9be6f

Browse files
committed
Feature/pnpm
1 parent 4b1e4af commit fa9be6f

File tree

6 files changed

+8545
-7741
lines changed

6 files changed

+8545
-7741
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
2121
.idea
22+
23+
# Ignore other package managers' lockfiles
24+
yarn.lock
25+
package-lock.json

.gitlab-ci.yml

-82
This file was deleted.

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Website
22

3-
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
3+
Answer.dev is built using [Docusaurus 2](https://docusaurus.io/), and we use [pnpm](https://pnpm.io/) to manage dependencies.
44

55
### Installation
66

77
```
8-
yarn
8+
pnpm i
99
```
1010

1111
### Local Development
1212

1313
```
14-
yarn start
14+
pnpm start
1515
```
1616

1717
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
1818

1919
### Build
2020

2121
```
22-
yarn build
22+
pnpm build
2323
```
2424

2525
This command generates static content into the `build` directory and can be served using any static contents hosting service.
@@ -29,13 +29,13 @@ This command generates static content into the `build` directory and can be serv
2929
Using SSH:
3030

3131
```
32-
USE_SSH=true yarn deploy
32+
USE_SSH=true pnpm deploy
3333
```
3434

3535
Not using SSH:
3636

3737
```
38-
GIT_USER=<Your GitHub username> yarn deploy
38+
GIT_USER=<Your GitHub username> pnpm deploy
3939
```
4040

4141
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "2.1.0",
19-
"@docusaurus/preset-classic": "2.1.0",
18+
"@docusaurus/core": "2.2.0",
19+
"@docusaurus/preset-classic": "2.2.0",
2020
"@mdx-js/react": "^1.6.22",
2121
"clsx": "^1.2.1",
2222
"prism-react-renderer": "^1.3.5",
2323
"react": "^17.0.2",
2424
"react-dom": "^17.0.2"
2525
},
2626
"devDependencies": {
27-
"@docusaurus/eslint-plugin": "^2.1.0",
28-
"@docusaurus/module-type-aliases": "2.1.0",
27+
"@docusaurus/eslint-plugin": "^2.2.0",
28+
"@docusaurus/module-type-aliases": "2.2.0",
2929
"@tsconfig/docusaurus": "^1.0.5",
3030
"typescript": "^4.7.4"
3131
},
@@ -42,6 +42,7 @@
4242
]
4343
},
4444
"engines": {
45-
"node": ">=16.14"
45+
"node": ">=16.14",
46+
"pnpm": ">=6"
4647
}
4748
}

0 commit comments

Comments
 (0)