From d521e8e162846d00d08b08f080ea8d87c04a63f4 Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Thu, 23 Feb 2017 18:02:53 -0300 Subject: [PATCH] Use `yarn` for everything --- .travis.yml | 5 +---- appveyor.yml | 9 ++++----- readme.md | 12 ++++++------ 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 81486600..1ca5f3d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,11 +31,8 @@ before_install: install: - yarn -before_script: - - npm prune - after_success: - - npm run dist + - yarn run dist branches: except: diff --git a/appveyor.yml b/appveyor.yml index 75f03d11..2cf9aa11 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,12 +9,11 @@ environment: image: Visual Studio 2015 init: - - npm config set msvs_version 2015 # we need this to build `pty.js` + - yarn config set msvs_version 2015 # we need this to build `pty.js` install: - ps: Install-Product node 6 x64 - set CI=true - - npm -g install npm@latest - yarn build: off @@ -23,9 +22,9 @@ shallow_clone: true test_script: - node --version - - npm --version - - npm run test + - yarn --version + - yarn run test on_success: - - npm run dist + - yarn run dist - ps: ls .\dist\win\*.exe | % { Push-AppveyorArtifact $_.FullName } diff --git a/readme.md b/readme.md index 0f5bede0..e011a947 100644 --- a/readme.md +++ b/readme.md @@ -28,16 +28,16 @@ choco install hyper 1. Install the dependencies * If you are running Linux, install `icnsutils`, `graphicsmagick`, `xz-utils` and `rpm` - * If you are running Windows, install `windows-build-tools` with `npm i -g windows-build-tools`. + * If you are running Windows, install `windows-build-tools` with `yarn global add windows-build-tools`. 2. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device -3. Install the dependencies: `npm install` -4. Build the code and watch for changes: `npm run dev` -5. In another terminal tab/window/pane, run the app: `npm run app` +3. Install the dependencies: `yarn` +4. Build the code and watch for changes: `yarn run dev` +5. In another terminal tab/window/pane, run the app: `yarn run app` To make sure that your code works in the finished application, you can generate the binaries like this: ```bash -npm run dist +yarn run dist ``` After that, you'll see the binary in the `./dist` folder! @@ -45,7 +45,7 @@ After that, you'll see the binary in the `./dist` folder! ### node-pty issues If after building during development you get an alert dialog related to `node-pty` issues, -make sure its build process is working correctly by running `npm run rebuild-node-pty`. +make sure its build process is working correctly by running `yarn run rebuild-node-pty`. If you're on macOS, this typically is related to Xcode issues (like not having agreed to the Terms of Service by running `sudo xcodebuild` after a fresh Xcode installation).