mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-09 17:51:46 +00:00
Migrate to yarn to install packages without package.json (but keep npm rebuild)
This commit is contained in:
@ -31,9 +31,9 @@ script:
|
||||
-v ~/.cache/electron:/root/.cache/electron \
|
||||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
||||
electronuserland/builder \
|
||||
/bin/bash -c "npm install && npm run release:linux"
|
||||
/bin/bash -c "yarn && yarn run release:linux"
|
||||
else
|
||||
npm run release:mac
|
||||
yarn run release:mac
|
||||
fi
|
||||
before_cache:
|
||||
- rm -rf $HOME/.cache/electron-builder
|
||||
|
||||
@ -12,9 +12,9 @@ init:
|
||||
|
||||
install:
|
||||
- ps: Install-Product node 8 x64
|
||||
- npm install
|
||||
- yarn
|
||||
|
||||
build_script:
|
||||
- npm run release:win
|
||||
- yarn run release:win
|
||||
|
||||
test: off
|
||||
|
||||
7301
package-lock.json
generated
7301
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -29,14 +29,17 @@
|
||||
"test": "xo",
|
||||
"start": "electron .",
|
||||
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
|
||||
"postinstall": "npm run icon && npm rebuild && node plugins/adblocker/generator.js && electron-rebuild",
|
||||
"postinstall": "yarn run icon && npm rebuild && node plugins/adblocker/generator.js && electron-rebuild",
|
||||
"clean": "rimraf dist",
|
||||
"build": "npm run clean && build --win --mac --linux",
|
||||
"build:mac": "npm run clean && build --mac",
|
||||
"build:win": "npm run clean && build --win",
|
||||
"release:linux": "npm run clean && build --linux -p always",
|
||||
"release:mac": "npm run clean && build --mac -p always",
|
||||
"release:win": "npm run clean && build --win -p always"
|
||||
"build": "yarn run clean && build --win --mac --linux",
|
||||
"build:mac": "yarn run clean && build --mac",
|
||||
"build:win": "yarn run clean && build --win",
|
||||
"release:linux": "yarn run clean && build --linux -p always",
|
||||
"release:mac": "yarn run clean && build --mac -p always",
|
||||
"release:win": "yarn run clean && build --win -p always"
|
||||
},
|
||||
"engines": {
|
||||
"npm": "Please use yarn and not npm"
|
||||
},
|
||||
"dependencies": {
|
||||
"ad-block": "^4.1.3",
|
||||
|
||||
@ -29,8 +29,8 @@ You can check out the [latest release](https://github.com/th-ch/youtube-music/re
|
||||
```sh
|
||||
git clone https://github.com/th-ch/youtube-music
|
||||
cd youtube-music
|
||||
npm install
|
||||
npm start
|
||||
yarn
|
||||
yarn start
|
||||
```
|
||||
|
||||
## Build your own plugins
|
||||
@ -90,7 +90,7 @@ module.exports = () => {
|
||||
## Build
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
yarn build
|
||||
```
|
||||
|
||||
Builds the app for macOS, Linux, and Windows, using [electron-builder](https://github.com/electron-userland/electron-builder).
|
||||
|
||||
Reference in New Issue
Block a user