forked from microsoft/botframework-solutions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ts.ps1
64 lines (42 loc) · 1.17 KB
/
build.ts.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Param(
[string] $pkgversion,
[string] $cliversion
)
if (-not $pkgversion) {
Write-Host "Version for botbuilder-* required!. Please use the param -pkgversion" -ForegroundColor DarkRed
Break
}
if (-not $cliversion) {
Write-Host "Version for botskills CLI required!. Please use the param -cliversion" -ForegroundColor DarkRed
Break
}
pushd .\lib\typescript
rush update
pushd .\botskills
npm version $($cliversion) --allow-same-version
npm run build
popd
pushd .\botbuilder-solutions
npm version $($pkgversion) --allow-same-version
npm run build
popd
pushd .\botbuilder-skills
npm version $($pkgversion) --allow-same-version
npm run build
popd
popd
pushd .\templates\Virtual-Assistant-Template\typescript\generator-botbuilder-assistant
npm version $($cliversion) --allow-same-version
npm install
popd
if (-not(test-path ".\outputpackages"))
{
New-Item -ItemType directory -Path ".\outputpackages"
}
pushd .\outputpackages
npm pack ..\lib\typescript\botskills
npm pack ..\lib\typescript\botbuilder-solutions
npm pack ..\lib\typescript\botbuilder-skills
npm pack ..\templates\Virtual-Assistant-Template\typescript\generator-botbuilder-assistant
dir
popd