FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/utils/buildFlags.js at master · ZECTBynmo/nodegit · GitHub
ZECTBynmo
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
utils
/
buildFlags.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (14 loc) · 346 Bytes
Breadcrumbs
nodegit
/
utils
/
buildFlags.js
Copy path
File metadata and controls
17 lines (14 loc) · 346 Bytes
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
var
fs
=
require
(
"fs"
)
;
var
path
=
require
(
"path"
)
;
var
isGitRepo
;
try
{
fs
.
statSync
(
path
.
join
(
__dirname
,
".."
,
".git"
)
)
;
isGitRepo
=
true
;
}
catch
(
e
)
{
isGitRepo
=
false
;
}
module
.
exports
=
{
debugBuild
:
process
.
env
.
BUILD_DEBUG
,
isGitRepo
:
isGitRepo
,
mustBuild
:
isGitRepo
||
process
.
env
.
BUILD_DEBUG
||
process
.
env
.
BUILD_ONLY
,
}
;
Back
|
FazBrowse Home
|
New Git URL