Skip to content

Commit 7d7c8eb

Browse files
committed
Add yarn as npm client package manager replacement
1 parent f13bf5e commit 7d7c8eb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ RUN \
4343
rm -rf /tmp/node-v* && \
4444
echo -e '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc
4545

46+
RUN npm install yarn@0.16.1 -g
47+
4648
# Download phantomjs build (see README)
4749
RUN \
4850
cd /tmp && \

spec/dockerfile_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ def remove(*); end
5353
its(:stdout) { should match /3\.10\.3/ }
5454
end
5555

56+
describe command("yarn --version") do
57+
its(:stdout) { should match /0\.16\.1/ }
58+
end
59+
5660
describe command("phantomjs -v") do
5761
its(:stdout) { should match /2\.0\.0/ }
5862
end

0 commit comments

Comments
 (0)