FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/generate/index.js at master · elfscript/nodegit · GitHub
elfscript
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
generate
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (34 loc) · 1.13 KB
Breadcrumbs
nodegit
/
generate
/
index.js
Copy path
File metadata and controls
38 lines (34 loc) · 1.13 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
var
generateJson
=
require
(
"./scripts/generateJson"
)
;
var
generateNativeCode
=
require
(
"./scripts/generateNativeCode"
)
;
var
generateMissingTests
=
require
(
"./scripts/generateMissingTests"
)
;
var
submoduleStatus
=
require
(
"../lifecycleScripts/submodules/getStatus"
)
;
module
.
exports
=
function
generate
(
)
{
console
.
log
(
"[nodegit] Generating native code"
)
;
return
submoduleStatus
(
)
.
then
(
function
(
statuses
)
{
var
dirtySubmodules
=
statuses
.
filter
(
function
(
status
)
{
return
status
.
onNewCommit
||
status
.
needsInitialization
||
status
.
workDirDirty
;
}
)
;
if
(
dirtySubmodules
.
length
)
{
console
.
warn
(
"[nodegit] WARNING - Some submodules are out-of-sync"
)
;
dirtySubmodules
.
forEach
(
function
(
submodule
)
{
console
.
warn
(
"[nodegit]\t"
+
submodule
.
name
)
;
}
)
;
}
}
)
.
then
(
function
(
)
{
generateJson
(
)
;
generateNativeCode
(
)
;
generateMissingTests
(
)
;
}
)
.
catch
(
function
(
e
)
{
console
.
error
(
"[nodegit] ERROR - Could not generate native code"
)
;
console
.
error
(
e
)
;
}
)
;
}
if
(
require
.
main
===
module
)
{
module
.
exports
(
)
;
}
Back
|
FazBrowse Home
|
New Git URL