Migrate to yarn to install packages without package.json (but keep npm rebuild)

This commit is contained in:
TC
2020-03-13 22:56:50 +01:00
parent 81ce939451
commit 9371a4827e
7 changed files with 5213 additions and 7315 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
engine-strict=true

View File

@ -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

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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).

5195
yarn.lock Normal file

File diff suppressed because it is too large Load Diff