mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 00:22:08 +00:00
feat: switch to PNPM for faster build times
This commit is contained in:
parent
1b8680b863
commit
a57491a1f5
4 changed files with 3398 additions and 9 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
|
@ -14,15 +14,21 @@ jobs:
|
|||
- name: Check out Git repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v3
|
||||
- name: Install PNPM
|
||||
uses: pnpm/action-setup@v2.2.2
|
||||
with:
|
||||
version: 7
|
||||
|
||||
- name: Use Node.js 16
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
run: pnpm install
|
||||
|
||||
- name: publish
|
||||
- name: Publish
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: npm run publish
|
||||
run: pnpm run publish
|
||||
|
|
|
|||
|
|
@ -112,18 +112,19 @@ apt install linux-Miru-*.deb
|
|||
|
||||
Dependencies:
|
||||
- Node 16 or above
|
||||
- PNPM
|
||||
|
||||
To build/develop, in the root folder of the repo you need to first run:
|
||||
```bash
|
||||
npm install
|
||||
pnpm install
|
||||
```
|
||||
|
||||
To build for your OS just run:
|
||||
```bash
|
||||
npm run build
|
||||
pnpm run build
|
||||
```
|
||||
|
||||
To run the development server run:
|
||||
```bash
|
||||
npm start
|
||||
pnpm start
|
||||
```
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"main": "src/index.js",
|
||||
"homepage": "https://github.com/ThaUnknown/miru#readme",
|
||||
"scripts": {
|
||||
"start": "SET NODE_ENV=development & concurrently \"npm run web:watch\" \"npm run electron:start\"",
|
||||
"start": "SET NODE_ENV=development & concurrently \"pnpm run web:watch\" \"pnpm run electron:start\"",
|
||||
"web:watch": "vite",
|
||||
"electron:start": "electron src",
|
||||
"build": "vite build && electron-builder",
|
||||
|
|
|
|||
3382
pnpm-lock.yaml
Normal file
3382
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue