-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost_release.ps1
26 lines (22 loc) · 953 Bytes
/
post_release.ps1
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
Write-Host "===> dderl post_release" -foregroundcolor "magenta"
$DDerlScript = "/_build/prod/lib/dderl/post_release.ps1"
& ((Split-Path $MyInvocation.InvocationName) + $DDerlScript) -app egambo
Write-Host "===> egambo post_release" -foregroundcolor "magenta"
$egamboPriv = "/_build/prod/rel/egambo/lib/egambo-*/priv/dev"
cd ((Split-Path $MyInvocation.InvocationName) + $egamboPriv)
If (Test-Path node_modules) {
Remove-Item node_modules -Force -Recurse
Write-Host "===> directory 'node_modules' deleted" -foregroundcolor "magenta"
}
Write-Host "===> npm install" -foregroundcolor "magenta"
npm install
Write-Host "===> npm run build" -foregroundcolor "magenta"
npm run build
Write-Host "===> clean up"
ForEach ($Dir in @("node_modules")) {
If (Test-Path $Dir) {
Remove-Item $Dir -Force -Recurse
Write-Host "===> directory '$Dir' deleted" -foregroundcolor "magenta"
}
}
Write-Host "===> egambo priv clean up finished"