/
buildCI.bat
60 lines (56 loc) · 2.27 KB
/
buildCI.bat
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
rem Builds the repository the way that it's done during PRs
call node --version
call npm --version
rem clear out older builds
rmdir/s/q node_modules 2>nul
rmdir/s/q packages\common\dist 2>nul
rmdir/s/q packages\common\node_modules 2>nul
rmdir/s/q packages\creator\dist 2>nul
rmdir/s/q packages\creator\node_modules 2>nul
rmdir/s/q packages\deployer\dist 2>nul
rmdir/s/q packages\deployer\node_modules 2>nul
rmdir/s/q packages\feature-layer\dist 2>nul
rmdir/s/q packages\feature-layer\node_modules 2>nul
rmdir/s/q packages\file\dist 2>nul
rmdir/s/q packages\file\node_modules 2>nul
rmdir/s/q packages\form\dist 2>nul
rmdir/s/q packages\form\node_modules 2>nul
rmdir/s/q packages\group\dist 2>nul
rmdir/s/q packages\group\node_modules 2>nul
rmdir/s/q packages\hub-types\dist 2>nul
rmdir/s/q packages\hub-types\node_modules 2>nul
rmdir/s/q packages\simple-types\dist 2>nul
rmdir/s/q packages\simple-types\node_modules 2>nul
rmdir/s/q packages\storymap\dist 2>nul
rmdir/s/q packages\storymap\node_modules 2>nul
rmdir/s/q packages\velocity\dist 2>nul
rmdir/s/q packages\velocity\node_modules 2>nul
rmdir/s/q packages\viewer\dist 2>nul
rmdir/s/q packages\viewer\node_modules 2>nul
rmdir/s/q packages\web-experience\dist 2>nul
rmdir/s/q packages\web-experience\node_modules 2>nul
rmdir/s/q packages\web-tool\dist 2>nul
rmdir/s/q packages\web-tool\node_modules 2>nul
rmdir/s/q packages\workflow\dist 2>nul
rmdir/s/q packages\workflow\node_modules 2>nul
del/q package-lock.json 2>nul
del/q packages\common\package-lock.json 2>nul
del/q packages\creator\package-lock.json 2>nul
del/q packages\deployer\package-lock.json 2>nul
del/q packages\feature-layer\package-lock.json 2>nul
del/q packages\file\package-lock.json 2>nul
del/q packages\form\package-lock.json 2>nul
del/q packages\group\package-lock.json 2>nul
del/q packages\hub-types\package-lock.json 2>nul
del/q packages\simple-types\package-lock.json 2>nul
del/q packages\storymap\package-lock.json 2>nul
del/q packages\velocity\package-lock.json 2>nul
del/q packages\viewer\package-lock.json 2>nul
del/q packages\web-experience\package-lock.json 2>nul
del/q packages\web-tool\package-lock.json 2>nul
del/q packages\workflow\package-lock.json 2>nul
rmdir/q/s coverage 2>nul
rem install and build the packages
call npm install
call npm run build
call npm run test:chrome:ci