Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
explorviz-downloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ExplorViz
explorviz-github-archive
explorviz-downloader
Commits
89139fac
Commit
89139fac
authored
Jul 18, 2017
by
Josefine Wegert
Browse files
Options
Downloads
Patches
Plain Diff
removed console.logs
parent
c8cf6be2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
backendFunctions.js
+5
-6
5 additions, 6 deletions
backendFunctions.js
frontendFunctions.js
+16
-19
16 additions, 19 deletions
frontendFunctions.js
with
21 additions
and
25 deletions
backendFunctions.js
+
5
−
6
View file @
89139fac
...
@@ -2,7 +2,6 @@ var express = require('express');
...
@@ -2,7 +2,6 @@ var express = require('express');
var
exec
=
require
(
'
child_process
'
).
exec
;
var
exec
=
require
(
'
child_process
'
).
exec
;
function
backendClean
(
fileName
){
function
backendClean
(
fileName
){
console
.
log
(
'
in backendClean
'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
exec
(
'
cd explorviz-ui-backend/plugins/net/explorviz/ && rm -rf plugins/*
'
,
(
error
,
stdout
,
stderr
)
=>
{
exec
(
'
cd explorviz-ui-backend/plugins/net/explorviz/ && rm -rf plugins/*
'
,
(
error
,
stdout
,
stderr
)
=>
{
...
@@ -22,7 +21,7 @@ function backendClean(fileName){
...
@@ -22,7 +21,7 @@ function backendClean(fileName){
}
}
function
backendPull
(
fileName
){
function
backendPull
(
fileName
){
console
.
log
(
'
in backendPull
'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
exec
(
'
cd
'
+
fileName
+
'
git pull
'
,
(
error
,
stdout
,
stderr
)
=>
{
exec
(
'
cd
'
+
fileName
+
'
git pull
'
,
(
error
,
stdout
,
stderr
)
=>
{
...
@@ -43,7 +42,7 @@ function backendPull(fileName){
...
@@ -43,7 +42,7 @@ function backendPull(fileName){
}
}
function
backendInstallAddons
(
checkedFiles
,
downloadFiles
){
function
backendInstallAddons
(
checkedFiles
,
downloadFiles
){
console
.
log
(
'
in backendInstallAddons
'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
checkedPlugins
=
checkedFiles
.
filter
(
function
(
file
){
checkedPlugins
=
checkedFiles
.
filter
(
function
(
file
){
return
/
\b
explorviz-backend-plugin-
\w
*/
.
exec
(
file
);
return
/
\b
explorviz-backend-plugin-
\w
*/
.
exec
(
file
);
...
@@ -52,7 +51,7 @@ function backendInstallAddons(checkedFiles,downloadFiles){
...
@@ -52,7 +51,7 @@ function backendInstallAddons(checkedFiles,downloadFiles){
if
(
checkedPlugins
.
length
!==
0
){
if
(
checkedPlugins
.
length
!==
0
){
checkedPlugins
.
forEach
((
pluginName
)
=>
{
checkedPlugins
.
forEach
((
pluginName
)
=>
{
//TODO want to copy everything in backend-plugin except .git, workaround: ./demo/
//TODO want to copy everything in backend-plugin except .git, workaround
for now
: ./demo/
exec
(
'
cd
'
+
pluginName
+
'
git pull
'
+
'
&& cp -R
'
+
'
./demo/
'
+
'
../explorviz-ui-backend/plugins/net/explorviz/plugins/
'
,
(
error
,
stdout
,
stderr
)
=>
{
//'cd explorviz-ui-backend/plugins/net/explorviz/plugins/ ' +
exec
(
'
cd
'
+
pluginName
+
'
git pull
'
+
'
&& cp -R
'
+
'
./demo/
'
+
'
../explorviz-ui-backend/plugins/net/explorviz/plugins/
'
,
(
error
,
stdout
,
stderr
)
=>
{
//'cd explorviz-ui-backend/plugins/net/explorviz/plugins/ ' +
if
(
error
)
{
if
(
error
)
{
...
@@ -77,7 +76,7 @@ function backendInstallAddons(checkedFiles,downloadFiles){
...
@@ -77,7 +76,7 @@ function backendInstallAddons(checkedFiles,downloadFiles){
}
}
function
backendBuild
(
fileName
){
function
backendBuild
(
fileName
){
console
.
log
(
'
in backendBuild
'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
exec
(
'
cd
'
+
fileName
+
'
&& mvn compile war:war
'
,
(
error
,
stdout
,
stderr
)
=>
{
exec
(
'
cd
'
+
fileName
+
'
&& mvn compile war:war
'
,
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
if
(
error
)
{
...
...
This diff is collapsed.
Click to expand it.
frontendFunctions.js
+
16
−
19
View file @
89139fac
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
function
frontendClean
(
fileName
){
function
frontendClean
(
fileName
){
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
'
in frontendClean()
'
);
//' git fetch origin && git reset --hard origin/master '
//' git fetch origin && git reset --hard origin/master '
exec
(
'
cd
'
+
fileName
+
'
git checkout package.json && npm prune
'
,
(
error
,
stdout
,
stderr
)
=>
{
exec
(
'
cd
'
+
fileName
+
'
git checkout package.json && npm prune
'
,
(
error
,
stdout
,
stderr
)
=>
{
...
@@ -24,9 +24,8 @@
...
@@ -24,9 +24,8 @@
function
frontendPull
(
fileName
){
function
frontendPull
(
fileName
){
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
'
in frontendPull()
'
);
//' git fetch origin && git reset --hard origin/master '
exec
(
'
cd
'
+
fileName
+
'
&& git pull
'
,
(
error
,
stdout
,
stderr
)
=>
{
exec
(
'
cd
'
+
fileName
+
'
git checkout package.json && npm prune
'
+
'
&& git pull
'
,
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
if
(
error
)
{
reject
(
error
)
reject
(
error
)
...
@@ -41,7 +40,7 @@
...
@@ -41,7 +40,7 @@
}
}
function
frontendInstallAddons
(
checkedFiles
,
downloadFiles
){
function
frontendInstallAddons
(
checkedFiles
,
downloadFiles
){
console
.
log
(
'
in frontendInstallAddons()
'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
checkedPlugins
=
checkedFiles
.
filter
(
function
(
file
){
checkedPlugins
=
checkedFiles
.
filter
(
function
(
file
){
...
@@ -76,8 +75,6 @@
...
@@ -76,8 +75,6 @@
function
frontendBuild
(
fileName
){
function
frontendBuild
(
fileName
){
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
'
in frontendBuild()
'
);
exec
(
'
cd
'
+
fileName
+
'
&& ember build --environment=production
'
,
(
error
,
stdout
,
stderr
)
=>
{
exec
(
'
cd
'
+
fileName
+
'
&& ember build --environment=production
'
,
(
error
,
stdout
,
stderr
)
=>
{
...
@@ -95,7 +92,7 @@
...
@@ -95,7 +92,7 @@
})
})
console
.
log
(
'
resolve build:
'
,
resolve
);
}
}
module
.
exports
=
{
module
.
exports
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment