Skip to content

Commit 9fafe91

Browse files
committed
ZPM load in dev mode will build the javascript application
1 parent b9ac45d commit 9fafe91

File tree

4 files changed

+1770
-9
lines changed

4 files changed

+1770
-9
lines changed

cls/SourceControl/Git/Build.cls

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Class SourceControl.Git.Build
2+
{
3+
4+
ClassMethod BuildUIForDevMode(devMode As %Boolean, rootDirectory As %String)
5+
{
6+
if 'devMode {
7+
return
8+
}
9+
write !, "In developer mode, building web UI:"
10+
set webUIDirectory = ##class(%File).SubDirectoryName(rootDirectory, "git-webui")
11+
write !, "npm install"
12+
write !, $zf(-100, "/SHELL", "cd", webUIDirectory, "&&", "npm", "install")
13+
write !, "npm run build"
14+
write !, $zf(-100, "/SHELL", "cd", webUIDirectory, "&&", "npm", "run", "build")
15+
}
16+
17+
}
18+

0 commit comments

Comments
 (0)