forked from IdeaBlade/Breeze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildApi.ps1
30 lines (27 loc) · 1.7 KB
/
BuildApi.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
27
28
29
30
function pause() {
Write-Host "Press any key to continue ..."
cmd /c pause | out-null
}
function buildApiDocs($srcDir) {
Write-Host "Building YuiDoc..."
$targetDir = "$srcDir\Breeze.Client\Scripts\IBlade"
cd $targetDir
$yuiDocExpr = 'yuidoc -t "$srcDir\apidoc-theme\breeze" .'
$output = Invoke-Expression $yuiDocExpr
$output | out-string
Write-Host "Building YuiDoc complete"
}
function buildIntellisense($srcDir) {
Write-Host "Building Intellisense..."
$targetDir = "$srcDir\Breeze.Intellisense"
cd $targetDir
$nodeExpr = 'node server.js'
$output = Invoke-Expression $nodeExpr
$output | out-string
Write-Host "Building Intellisense done"
}
$srcDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
buildApiDocs $srcDir
buildIntellisense $srcDir
pause