Skip to content

Commit

Permalink
Use pnpm instead of yarn (oliverschwendener#983)
Browse files Browse the repository at this point in the history
Use pnpm instead of yarn
  • Loading branch information
oliverschwendener authored Jan 24, 2023
1 parent 9413bec commit 2023316
Show file tree
Hide file tree
Showing 5 changed files with 5,838 additions and 5,572 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,34 @@ jobs:
- name: Checkout current commit/branch/tag
uses: actions/checkout@v3

- name: Setup Node 16
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Lint TypeScript files
run: yarn lint
run: pnpm lint

- name: Run tests
run: yarn test
run: pnpm test

- name: Bundle files
run: yarn bundle
run: pnpm bundle
env:
NODE_ENV: production

- name: Publish new release
if: startsWith(github.ref, 'refs/tags')
run: yarn package:publish
run: pnpm package:publish
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ This is a keystroke launcher for Windows and macOS.
- Run the application

### Installing on MacOS via `brew`
- `brew install --cask ueli`

- `brew install --cask ueli`

## Features

Expand Down Expand Up @@ -250,21 +251,21 @@ For more check [here](https://github.com/oliverschwendener/ueli/issues).

- Git
- Node 16.x.x
- Yarn
- pnpm

### Setup

```
$ git clone https://github.com/oliverschwendener/ueli
$ cd ueli
$ yarn
$ pnpm
```

### Run

```
$ yarn bundle
$ yarn start
$ pnpm bundle
$ pnpm start
```

### Debug
Expand All @@ -278,21 +279,21 @@ For debugging Visual Studio Code is recommended.
### Run tests

```
$ yarn test
$ pnpm test
```

### Package

#### Create portable version

```
$ yarn package:dir
$ pnpm package:dir
```

#### Create installer

```
$ yarn package
$ pnpm package
```

## Alternatives
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
],
"main": "./bundle/main.js",
"scripts": {
"lint": "./node_modules/.bin/eslint \"src/**/*{ts,vue}\"",
"bundle": "./node_modules/.bin/webpack --config webpack.config.js",
"start": "./node_modules/.bin/electron . --remote-debugging-port=9223",
"test": "./node_modules/.bin/jest --config jest.json --silent .",
"package:dir": "./node_modules/.bin/electron-builder --dir --config electron-builder-config.yml --publish never",
"package": "./node_modules/.bin/electron-builder --config electron-builder-config.yml --publish never",
"package:publish": "./node_modules/.bin/electron-builder --config electron-builder-config.yml --publish always"
"lint": "eslint \"src/**/*{ts,vue}\"",
"bundle": "webpack --config webpack.config.js",
"start": "electron . --remote-debugging-port=9223",
"test": "jest --config jest.json --silent .",
"package:dir": "electron-builder --dir --config electron-builder-config.yml --publish never",
"package": "electron-builder --config electron-builder-config.yml --publish never",
"package:publish": "electron-builder --config electron-builder-config.yml --publish always"
},
"devDependencies": {
"@types/color": "^3.0.3",
Expand Down
Loading

0 comments on commit 2023316

Please sign in to comment.