Commit 64c697cf authored by Ed Reel's avatar Ed Reel Committed by Kazushi (Jam) Marukawa

Update yarn from 0.27.0-20170629.1443 to 1.0.0-20170808.1058

parent 7599899f
require 'package'
NODE_VERSION = `node -v 2> /dev/null`
class Yarn < Package
description 'Yarn is a new package manager for JavaScript and an alternative to npm.'
homepage 'https://yarnpkg.com/en/'
version '0.27.0-20170629.1443'
source_url 'https://nightly.yarnpkg.com/yarn-v0.27.0-20170629.1443.tar.gz'
source_sha256 'e1086d267151cd05896b15023e8c4e253a64e675a80bb38dc294b5b1c86c6656'
version '1.0.0-20170808.1058'
source_url 'https://nightly.yarnpkg.com/yarn-v1.0.0-20170808.1058.tar.gz'
source_sha256 '7056c5ee12aa8d014d59b377be2e494ce49a6059e2678d8f79f1fc9904eb008b'
depends_on 'node' unless File.exists? '/usr/local/bin/node'
depends_on 'nodebrew' unless "#{NODE_VERSION}" != ""
def self.install
system "nodebrew install-binary latest && nodebrew use latest" unless "#{NODE_VERSION}" != ""
system "mkdir -p #{CREW_DEST_DIR}/usr/local"
system "cp -r lib/ #{CREW_DEST_DIR}/usr/local"
system "cp -r bin/ #{CREW_DEST_DIR}/usr/local"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment