From fb230d4e0d3fa7220914b5afd0f4c36b768caf56 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Sun, 10 May 2015 23:33:21 -0700 Subject: [PATCH] fix(setup): update atom shell download task --- build/package.json | 10 +++++----- script/bootstrap | 8 ++++++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/build/package.json b/build/package.json index 553813f71..f55504bc3 100644 --- a/build/package.json +++ b/build/package.json @@ -1,9 +1,9 @@ { - "name": "atom-build", - "description": "Atom build", + "name": "edgehill-build", + "description": "Edgehill build", "repository": { "type": "git", - "url": "https://github.com/atom/atom.git" + "url": "https://github.com/nylas/edgehill.git" }, "dependencies": { "archiver": "^0.13", @@ -15,7 +15,7 @@ "fs-plus": "2.x", "github-releases": "~0.2.0", "grunt": "~0.4.1", - "grunt-atom-shell-installer": "^0.20.0", + "grunt-atom-shell-installer": "^0.29.0", "grunt-cli": "~0.1.9", "grunt-coffeelint": "git+https://github.com/atom/grunt-coffeelint.git#cfb99aa99811d52687969532bd5a98011ed95bfe", "grunt-coffeelint-cjsx": "^0.1", @@ -23,7 +23,7 @@ "grunt-contrib-csslint": "~0.1.2", "grunt-contrib-less": "~0.8.0", "grunt-cson": "0.14.0", - "grunt-download-atom-shell": "~0.11.0", + "grunt-download-atom-shell": "~0.14.0", "grunt-lesslint": "0.13.0", "grunt-markdown": "^0.7.0", "grunt-peg": "~1.1.0", diff --git a/script/bootstrap b/script/bootstrap index 72ebbc69d..482924214 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -45,6 +45,8 @@ function bootstrap() { var initialNpmCommand = fs.existsSync(npmPath) ? npmPath : 'npm'; var npmFlags = ' --userconfig=' + path.resolve('.npmrc') + ' '; + var gruntPath = path.resolve(__dirname, '..', 'build', 'node_modules', '.bin', 'grunt'); + var packagesToDedupe = ['fs-plus', 'humanize-plus', 'oniguruma', 'roaster', 'season', 'grim']; var buildInstallCommand = initialNpmCommand + npmFlags + 'install'; @@ -93,7 +95,9 @@ function bootstrap() { m6 += " $ apm request semver "+printArgs(semverOptions)+"\n" m7 = "---> Getting latest Atom Shell\n\n" - m7 += " $ build/node_modules/.bin/grunt download-atom-shell --gruntfile build/Gruntfile.coffee\n" + var gruntCmd = "" + var downloadAtomShellCmd = gruntPath + " download-atom-shell --gruntfile build/Gruntfile.coffee" + m7 += " $ "+downloadAtomShellCmd var commands = [ { @@ -124,7 +128,7 @@ function bootstrap() { options: semverOptions }, { - command: 'grunt download-atom-shell --gruntfile ./build/Gruntfile.coffee', + command: downloadAtomShellCmd, message: m7 } ];