Skip to content

Commit

Permalink
Merge pull request #451 from chentsulin/yarn-support
Browse files Browse the repository at this point in the history
yarn-support
  • Loading branch information
amilajack authored Oct 22, 2016
2 parents 85c9f06 + 5f9310f commit a097b96
Show file tree
Hide file tree
Showing 4 changed files with 7,627 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ node_js:

cache:
directories:
- node_modules
- $HOME/.yarn-cache

addons:
apt:
Expand All @@ -23,8 +23,8 @@ addons:

install:
- export CXX="g++-4.8"
- npm install -g npm@latest
- npm install
- npm install -g yarnpkg
- yarn
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"

before_script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ git clone https://github.com/chentsulin/electron-react-boilerplate.git your-proj
```

And then install dependencies.
**ProTip**: Install with [yarn](https://github.com/yarnpkg/yarn) for faster and safer installation

```bash
$ cd your-project-name && npm install
```


## Run

Run these two commands __simultaneously__ in different console tabs.
Expand Down
26 changes: 17 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
os: unstable
cache:
- node_modules

environment:
matrix:
- nodejs_version: 6
- nodejs_version: 4
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install

cache:
- "%LOCALAPPDATA%/Yarn"

matrix:
fast_finish: true

build: off

version: '{build}'

shallow_clone: true

clone_depth: 1

install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- choco install yarn
- refreshenv
- yarn

test_script:
- node --version
- npm --version
- npm run lint
- npm run test
- npm run build
Expand Down
Loading

0 comments on commit a097b96

Please sign in to comment.