Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 1ae3d8d

Browse files
committed
chore: switch to yarn
1 parent f85f600 commit 1ae3d8d

File tree

6 files changed

+3581
-9
lines changed

6 files changed

+3581
-9
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/node_modules/
44
/dist/
55
/.idea/
6+
/yarn-error.log

Diff for: .travis.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
sudo: false
12
language: node_js
23
node_js:
3-
- 0.10
4+
- 6
5+
6+
cache: yarn
7+
48
env:
59
matrix:
610
- VERSION=1.2
@@ -15,9 +19,8 @@ env:
1519
install:
1620
- mkdir -p $LOGS_DIR
1721
- ./scripts/sauce_connect_setup.sh
18-
- npm install -g npm
19-
- npm install
20-
- ./npm-install.sh
22+
- yarn install --ignore-engines
23+
- ./scripts/npm-install.sh
2124
- ./scripts/wait_for_browser_provider.sh
2225

2326
script:

Diff for: npm-install.sh

-2
This file was deleted.

Diff for: scripts/npm-install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
cd "`dirname $0`/.."
4+
yarn add angular@$VERSION angular-mocks@$VERSION angular-route@$VERSION --ignore-engines
5+
cd -

Diff for: scripts/test_on_sauce.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ SCRIPT_DIR=$(dirname $0)
33
cd $SCRIPT_DIR/..
44

55
# Build
6-
yarn build
6+
yarn build --ignore-engines
77

88
# Run unit tests
99
SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
10-
yarn test-unit -- --sauce
10+
yarn test-unit --ignore-engines -- --sauce
1111

1212
# Run e2e tests
13-
yarn test-e2e
13+
yarn test-e2e --ignore-engines
1414

1515
wait %2

0 commit comments

Comments
 (0)