2
0

build: add pnpm

This commit is contained in:
Baptiste Arnaud
2022-08-08 08:21:36 +02:00
parent 8c3b5058f1
commit ee338f62dc
183 changed files with 19442 additions and 18364 deletions

View File

@@ -13,13 +13,13 @@ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern sta
## Installation
```console
yarn install
pnpm install
```
## Local Development
```console
yarn start
pnpm start
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
@@ -27,7 +27,7 @@ This command starts a local development server and opens up a browser window. Mo
## Build
```console
yarn build
pnpm build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.

View File

@@ -27,7 +27,7 @@ Fork the repository
5. Change the build command to:
```sh
cd ../.. && yarn prisma generate && yarn build:builder && DATABASE_URL=$MIGRATION_DATABASE_URL yarn db:migrate
cd ../.. && pnpm prisma generate && pnpm build:builder && pnpm db:migrate
```
6. Add the required environment variables ([Check out the configuration guide](/self-hosting/configuration))
@@ -42,7 +42,7 @@ Fork the repository
5. Change the build command to:
```sh
cd ../.. && yarn prisma generate && yarn build:viewer && DATABASE_URL=$MIGRATION_DATABASE_URL yarn db:migrate
cd ../.. && pnpm prisma generate && pnpm build:viewer && pnpm db:migrate
```
6. Add the required environment variables ([Check out the configuration guide](/self-hosting/configuration))

View File

@@ -15,16 +15,17 @@
"update-search": "docker run -it --rm --env-file=.env -e \"CONFIG=$(cat docsearch-scrapper-config.json | jq -r tostring)\" algolia/docsearch-scraper"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.21",
"@docusaurus/preset-classic": "2.0.0-beta.21",
"@docusaurus/theme-search-algolia": "^2.0.0-beta.21",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"@docusaurus/core": "2.0.1",
"@docusaurus/preset-classic": "2.0.1",
"@docusaurus/theme-search-algolia": "^2.0.1",
"@docusaurus/theme-common": "2.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"@mdx-js/react": "^1.6.22",
"@svgr/webpack": "^6.3.1",
"clsx": "^1.2.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.3.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"prism-react-renderer": "^1.3.5",
"url-loader": "^4.1.1"
},
"browserslist": {
@@ -38,5 +39,11 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@algolia/client-search": "^4.14.2",
"@types/react": "^18.0.17",
"typescript": "^4.7.4",
"webpack": "^5.74.0"
}
}