Move remaining things to pnpm
This commit is contained in:
parent
088ae6f10e
commit
ff8280e2b5
14
README.md
14
README.md
|
@ -40,7 +40,7 @@ For normal users, installing via the installers makes the most sense. However wh
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
- [Git](https://git-scm.com)
|
- [Git](https://git-scm.com)
|
||||||
- [Node.js](https://nodejs.org/en/) with `npm`.
|
- [Node.js](https://nodejs.org/en/) with [pnpm](https://pnpm.io/).
|
||||||
- Command line of your choice.
|
- Command line of your choice.
|
||||||
|
|
||||||
### 1: Clone the repository
|
### 1: Clone the repository
|
||||||
|
@ -49,25 +49,25 @@ git clone https://github.com/BetterDiscord/BetterDiscord.git
|
||||||
```
|
```
|
||||||
### 2: Install dependencies
|
### 2: Install dependencies
|
||||||
```ps
|
```ps
|
||||||
npm install
|
pnpm recursive install
|
||||||
```
|
```
|
||||||
### 3: Run Build Script
|
### 3: Run Build Script
|
||||||
This will create a `injector.js`, `preload.js`, and `renderer.js` in the `dist` folder.
|
This will create a `injector.js`, `preload.js`, and `renderer.js` in the `dist` folder.
|
||||||
```ps
|
```ps
|
||||||
npm run build
|
pnpm run build
|
||||||
```
|
```
|
||||||
### 4: Inject into your Discord client
|
### 4: Inject into your Discord client
|
||||||
#### Install to Stable
|
#### Install to Stable
|
||||||
```ps
|
```ps
|
||||||
npm run inject
|
pnpm run inject
|
||||||
```
|
```
|
||||||
#### Install to PTB
|
#### Install to PTB
|
||||||
```ps
|
```ps
|
||||||
npm run inject ptb
|
pnpm run inject ptb
|
||||||
```
|
```
|
||||||
#### Install to Canary
|
#### Install to Canary
|
||||||
```ps
|
```ps
|
||||||
npm run inject canary
|
pnpm run inject canary
|
||||||
```
|
```
|
||||||
|
|
||||||
## Additional Scripts
|
## Additional Scripts
|
||||||
|
@ -75,7 +75,7 @@ npm run inject canary
|
||||||
### Compiling & Distribution
|
### Compiling & Distribution
|
||||||
This will create a `betterdiscord.asar` file in the `dist` folder.
|
This will create a `betterdiscord.asar` file in the `dist` folder.
|
||||||
```ps
|
```ps
|
||||||
npm run dist
|
pnpm run dist
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"build-prod": "webpack --stats minimal --mode production",
|
"build-prod": "webpack --stats minimal --mode production",
|
||||||
"lint": "eslint --ext .js src/"
|
"lint": "eslint --ext .js src/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"devDependencies": {
|
||||||
"webpack": "^5.73.0"
|
"webpack": "^5.73.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
13
package.json
13
package.json
|
@ -4,15 +4,16 @@
|
||||||
"description": "Enhances Discord by adding functionality and themes.",
|
"description": "Enhances Discord by adding functionality and themes.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build-injector && npm run build-renderer",
|
"build": "pnpm run build-injector && pnpm run build-preload && pnpm run build-renderer",
|
||||||
"build-prod": "npm run build-prod --prefix injector && npm run build-prod --prefix renderer",
|
"build-prod": "pnpm --filter injector build-prod && pnpm --filter preload build-prod && pnpm --filter renderer build-prod",
|
||||||
"build-injector": "npm run build --prefix injector",
|
"build-injector": "pnpm --filter injector build",
|
||||||
"build-renderer": "npm run build --prefix renderer",
|
"build-renderer": "pnpm --filter renderer build",
|
||||||
|
"build-preload": "pnpm --filter preload build",
|
||||||
"pack-emotes": "node scripts/emotes.js",
|
"pack-emotes": "node scripts/emotes.js",
|
||||||
"inject": "node scripts/inject.js",
|
"inject": "node scripts/inject.js",
|
||||||
"lint": "eslint --ext .js common/ && npm run lint --prefix injector && npm run lint --prefix renderer",
|
"lint": "eslint --ext .js common/ && pnpm --filter injector lint && pnpm --filter preload lint && pnpm --filter renderer lint",
|
||||||
"test": "mocha --require @babel/register --recursive \"./tests/renderer/*.js\"",
|
"test": "mocha --require @babel/register --recursive \"./tests/renderer/*.js\"",
|
||||||
"dist": "npm run build-prod && node scripts/pack.js",
|
"dist": "pnpm run build-prod && node scripts/pack.js",
|
||||||
"api": "jsdoc -X renderer/src/modules/pluginapi.js > jsdoc-ast.json"
|
"api": "jsdoc -X renderer/src/modules/pluginapi.js > jsdoc-ast.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
1307
pnpm-lock.yaml
1307
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -10,7 +10,7 @@
|
||||||
"build-prod": "webpack --stats minimal --mode production",
|
"build-prod": "webpack --stats minimal --mode production",
|
||||||
"lint": "eslint --ext .js src/"
|
"lint": "eslint --ext .js src/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"devDependencies": {
|
||||||
"webpack": "^5.73.0"
|
"webpack": "^5.73.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,9 +30,7 @@
|
||||||
"postcss-easy-import": "^4.0.0",
|
"postcss-easy-import": "^4.0.0",
|
||||||
"postcss-loader": "^6.2.1",
|
"postcss-loader": "^6.2.1",
|
||||||
"stylelint": "^14.3.0",
|
"stylelint": "^14.3.0",
|
||||||
|
"webpack": "^5.73.0",
|
||||||
"stylelint-config-standard": "^24.0.0"
|
"stylelint-config-standard": "^24.0.0"
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"webpack": "^5.73.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue