mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 17:13:45 +03:00
Back to using npmrc.
This commit is contained in:
parent
f23d9330fa
commit
be9d74adbf
3
.npmrc
3
.npmrc
@ -1 +1,4 @@
|
|||||||
cache = ~/.atom/.npm
|
cache = ~/.atom/.npm
|
||||||
|
target = 0.34.5
|
||||||
|
runtime = electron
|
||||||
|
disturl = https://atom.io/download/atom-shell
|
||||||
|
@ -68,11 +68,9 @@ function bootstrap() {
|
|||||||
var buildInstallOptions = {cwd: path.resolve(__dirname, '..', 'build')};
|
var buildInstallOptions = {cwd: path.resolve(__dirname, '..', 'build')};
|
||||||
var apmInstallCommand = npmPath + npmFlags + '--target=0.10.35 ' + 'install';
|
var apmInstallCommand = npmPath + npmFlags + '--target=0.10.35 ' + 'install';
|
||||||
var apmInstallOptions = {cwd: apmInstallPath};
|
var apmInstallOptions = {cwd: apmInstallPath};
|
||||||
|
var moduleInstallCommand = apmPath + ' install' + apmFlags;
|
||||||
var dedupeApmCommand = apmPath + ' dedupe' + apmFlags;
|
var dedupeApmCommand = apmPath + ' dedupe' + apmFlags;
|
||||||
|
|
||||||
var electronVersion = require('../package.json').electronVersion;
|
|
||||||
var moduleInstallCommand = apmPath + ' install ' + '--target=' + electronVersion + ' --runtime=electron --disturl=https://atom.io/download/atom-shell ' + apmFlags;
|
|
||||||
|
|
||||||
if (process.argv.indexOf('--no-quiet') === -1) {
|
if (process.argv.indexOf('--no-quiet') === -1) {
|
||||||
buildInstallCommand += ' --loglevel error';
|
buildInstallCommand += ' --loglevel error';
|
||||||
apmInstallCommand += ' --loglevel error';
|
apmInstallCommand += ' --loglevel error';
|
||||||
@ -98,14 +96,9 @@ function bootstrap() {
|
|||||||
message: 'Installing apm...',
|
message: 'Installing apm...',
|
||||||
options: apmInstallOptions
|
options: apmInstallOptions
|
||||||
},
|
},
|
||||||
{
|
apmPath + ' clean' + apmFlags,
|
||||||
command: apmPath + ' clean' + apmFlags,
|
moduleInstallCommand,
|
||||||
message: 'Deleting old packages...'
|
dedupeApmCommand + ' ' + packagesToDedupe.join(' '),
|
||||||
},
|
|
||||||
{
|
|
||||||
command: moduleInstallCommand,
|
|
||||||
},
|
|
||||||
dedupeApmCommand + ' ' + packagesToDedupe.join(' ')
|
|
||||||
];
|
];
|
||||||
|
|
||||||
process.chdir(path.dirname(__dirname));
|
process.chdir(path.dirname(__dirname));
|
||||||
|
Loading…
Reference in New Issue
Block a user