FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
atom/script/bootstrap at master · rayhayes/atom · GitHub
rayhayes
atom
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
atom
/
script
/
bootstrap
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
46 lines (36 loc) · 1.36 KB
Breadcrumbs
atom
/
script
/
bootstrap
Copy path
File metadata and controls
executable file
·
46 lines (36 loc) · 1.36 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env node
'use strict'
const
path
=
require
(
'path'
)
const
CONFIG
=
require
(
'./config'
)
const
childProcess
=
require
(
'child_process'
)
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
runApmInstall
=
require
(
'./lib/run-apm-install'
)
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
)
}
)
// We can't use yargs until installScriptDependencies() is executed, so...
let
ci
=
process
.
argv
.
indexOf
(
'--ci'
)
!==
-
1
if
(
!
ci
&&
process
.
env
.
CI
===
'true'
&&
process
.
argv
.
indexOf
(
'--no-ci'
)
===
-
1
)
{
console
.
log
(
'Automatically enabling --ci because CI is set in the environment'
)
ci
=
true
}
verifyMachineRequirements
(
ci
)
if
(
dependenciesFingerprint
.
isOutdated
(
)
)
{
cleanDependencies
(
)
}
if
(
process
.
platform
===
'win32'
)
deleteMsbuildFromPath
(
)
installScriptDependencies
(
ci
)
installApm
(
ci
)
childProcess
.
execFileSync
(
CONFIG
.
getApmBinPath
(
)
,
[
'--version'
]
,
{
stdio
:
'inherit'
}
)
runApmInstall
(
CONFIG
.
repositoryRootPath
,
ci
)
dependenciesFingerprint
.
write
(
)
Back
|
FazBrowse Home
|
New Git URL