Install apm from npmjs.org

This commit is contained in:
Kevin Sawicki 2014-04-24 14:47:55 -07:00
parent fa4b3c8dea
commit 8f2cdae0eb
3 changed files with 3 additions and 6 deletions

View File

@ -13,6 +13,7 @@
},
"license": "All Rights Reserved",
"atomShellVersion": "0.11.10",
"apmVersion": "0.41.0",
"dependencies": {
"async": "0.2.6",
"atom-keymap": "^0.18.0",

View File

@ -25,8 +25,8 @@ function executeCommands(commands, done, index) {
done(null);
}
var apmVendorPath = path.resolve(__dirname, '..', 'vendor', 'apm');
var apmInstallPath = path.resolve(__dirname, '..', 'apm');
var apmVersion = JSON.parse(fs.readFileSync(path.resolve(__dirname, '..', 'package.json'))).apmVersion;
if (!fs.existsSync(apmInstallPath))
fs.mkdirSync(apmInstallPath);
if (!fs.existsSync(path.join(apmInstallPath, 'node_modules')))
@ -42,11 +42,8 @@ var packagesToDedupe = ['fs-plus', 'humanize-plus', 'oniguruma', 'roaster', 'sea
var echoNewLine = process.platform == 'win32' ? 'echo.' : 'echo';
var commands = [
'git submodule --quiet sync',
'git submodule --quiet update --recursive --init',
{command: 'npm' + npmFlags + 'install --quiet', options: {cwd: path.resolve(__dirname, '..', 'build'), ignoreStdout: true}},
{command: npmPath + npmFlags + 'install --quiet', options: {cwd: apmVendorPath, ignoreStdout: true}},
{command: npmPath + npmFlags + 'install --quiet ' + apmVendorPath, options: {cwd: apmInstallPath, ignoreStdout: true}},
{command: npmPath + npmFlags + 'install --quiet atom-package-manager@' + apmVersion, options: {cwd: apmInstallPath, ignoreStdout: true}},
echoNewLine,
apmPath + ' clean ' + apmFlags,
apmPath + ' install --quiet ' + apmFlags,

1
vendor/apm vendored

@ -1 +0,0 @@
Subproject commit d349e4526388f8b5afc218beaa02ffeaf3a4f2e1