Skip to content

Commit 3f092a7

Browse files
authored
Merge pull request #283 from isc-pbarton/automate-grunt
ZPM load in dev mode will build the javascript application
2 parents 66eabd3 + d883747 commit 3f092a7

File tree

4 files changed

+1772
-9
lines changed

4 files changed

+1772
-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 ci"
12+
write !, $zf(-100, "/SHELL", "npm", "ci", "--prefix", webUIDirectory)
13+
write !, "npm run build"
14+
write !, $zf(-100, "/SHELL", "npm", "run", "build", "--prefix", webUIDirectory)
15+
}
16+
17+
}
18+

0 commit comments

Comments
 (0)