mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
31 lines
882 B
JavaScript
Executable File
31 lines
882 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
'use strict'
|
|
|
|
const cleanDependencies = require('./lib/clean-dependencies')
|
|
const deleteMsbuildFromPath = require('./lib/delete-msbuild-from-path')
|
|
const dependenciesFingerprint = require('./lib/dependencies-fingerprint')
|
|
const installApm = require('./lib/install-apm')
|
|
const installAtomDependencies = require('./lib/install-atom-dependencies')
|
|
const installScriptDependencies = require('./lib/install-script-dependencies')
|
|
const verifyMachineRequirements = require('./lib/verify-machine-requirements')
|
|
|
|
process.on('unhandledRejection', function (e) {
|
|
console.error(e.stack || e)
|
|
process.exit(1)
|
|
})
|
|
|
|
verifyMachineRequirements()
|
|
|
|
if (dependenciesFingerprint.isOutdated()) {
|
|
cleanDependencies()
|
|
}
|
|
|
|
if (process.platform === 'win32') deleteMsbuildFromPath()
|
|
|
|
installScriptDependencies()
|
|
installApm()
|
|
installAtomDependencies()
|
|
|
|
dependenciesFingerprint.write()
|