mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 06:58:26 +03:00
Install apm from npmjs.org
This commit is contained in:
parent
fa4b3c8dea
commit
8f2cdae0eb
@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"license": "All Rights Reserved",
|
"license": "All Rights Reserved",
|
||||||
"atomShellVersion": "0.11.10",
|
"atomShellVersion": "0.11.10",
|
||||||
|
"apmVersion": "0.41.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "0.2.6",
|
"async": "0.2.6",
|
||||||
"atom-keymap": "^0.18.0",
|
"atom-keymap": "^0.18.0",
|
||||||
|
@ -25,8 +25,8 @@ function executeCommands(commands, done, index) {
|
|||||||
done(null);
|
done(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
var apmVendorPath = path.resolve(__dirname, '..', 'vendor', 'apm');
|
|
||||||
var apmInstallPath = path.resolve(__dirname, '..', 'apm');
|
var apmInstallPath = path.resolve(__dirname, '..', 'apm');
|
||||||
|
var apmVersion = JSON.parse(fs.readFileSync(path.resolve(__dirname, '..', 'package.json'))).apmVersion;
|
||||||
if (!fs.existsSync(apmInstallPath))
|
if (!fs.existsSync(apmInstallPath))
|
||||||
fs.mkdirSync(apmInstallPath);
|
fs.mkdirSync(apmInstallPath);
|
||||||
if (!fs.existsSync(path.join(apmInstallPath, 'node_modules')))
|
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 echoNewLine = process.platform == 'win32' ? 'echo.' : 'echo';
|
||||||
|
|
||||||
var commands = [
|
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: '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 atom-package-manager@' + apmVersion, options: {cwd: apmInstallPath, ignoreStdout: true}},
|
||||||
{command: npmPath + npmFlags + 'install --quiet ' + apmVendorPath, options: {cwd: apmInstallPath, ignoreStdout: true}},
|
|
||||||
echoNewLine,
|
echoNewLine,
|
||||||
apmPath + ' clean ' + apmFlags,
|
apmPath + ' clean ' + apmFlags,
|
||||||
apmPath + ' install --quiet ' + apmFlags,
|
apmPath + ' install --quiet ' + apmFlags,
|
||||||
|
1
vendor/apm
vendored
1
vendor/apm
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit d349e4526388f8b5afc218beaa02ffeaf3a4f2e1
|
|
Loading…
Reference in New Issue
Block a user