-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.bat
161 lines (134 loc) · 4.01 KB
/
build.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
rem Builds the repository and its demos
call node --version
call npm --version
rem install the demos first because the overall install will perform symlinking of the solution.js libraries into the demos
pushd demos\compareJSON
call npm install
popd
pushd demos\compareSolutions
call npm install
popd
pushd demos\copyItemInfo
call npm install
popd
pushd demos\copySolutions
call npm install
popd
pushd demos\createSolution
call npm install
popd
pushd demos\deleteSolution
call npm install
popd
pushd demos\deploySolution
call npm install
popd
pushd demos\getItemInfo
call npm install
popd
pushd demos\implementedTypes
call npm install
popd
pushd demos\verifySolution
call npm install
popd
pushd demos\reuseDeployedItems
call npm install
popd
rem clear out older builds
rmdir/s/q packages\common\dist 2>nul
rmdir/s/q packages\creator\dist 2>nul
rmdir/s/q packages\deployer\dist 2>nul
rmdir/s/q packages\feature-layer\dist 2>nul
rmdir/s/q packages\file\dist 2>nul
rmdir/s/q packages\form\dist 2>nul
rmdir/s/q packages\group\dist 2>nul
rmdir/s/q packages\hub-types\dist 2>nul
rmdir/s/q packages\simple-types\dist 2>nul
rmdir/s/q packages\storymap\dist 2>nul
rmdir/s/q packages\velocity\dist 2>nul
rmdir/s/q packages\viewer\dist 2>nul
rmdir/s/q packages\web-experience\dist 2>nul
rmdir/s/q packages\web-tool\dist 2>nul
rmdir/s/q demos\copyItemInfo\dist 2>nul
rmdir/s/q demos\copySolutions\dist 2>nul
rmdir/s/q demos\createSolution\dist 2>nul
rmdir/s/q demos\deleteSolution\dist 2>nul
rmdir/s/q demos\deploySolution\dist 2>nul
rmdir/s/q demos\getItemInfo\dist 2>nul
rmdir/s/q demos\implementedTypes\dist 2>nul
rmdir/s/q demos\verifySolution\dist 2>nul
rmdir/s/q demos\reuseDeployedItems\dist 2>nul
rem install and build the packages
call npm install
call npm run prettify
call npm run lint:fix
call npm run build
call commit-stamp.bat
rem remove package.json files in distributions to keep lerna happy
del/q packages\common\dist\cjs\package.json 2>nul
del/q packages\common\dist\esm\package.json 2>nul
del/q packages\creator\dist\cjs\package.json 2>nul
del/q packages\creator\dist\esm\package.json 2>nul
del/q packages\deployer\dist\cjs\package.json 2>nul
del/q packages\deployer\dist\esm\package.json 2>nul
del/q packages\feature-layer\dist\cjs\package.json 2>nul
del/q packages\feature-layer\dist\esm\package.json 2>nul
del/q packages\file\dist\cjs\package.json 2>nul
del/q packages\file\dist\esm\package.json 2>nul
del/q packages\form\dist\cjs\package.json 2>nul
del/q packages\form\dist\esm\package.json 2>nul
del/q packages\group\dist\cjs\package.json 2>nul
del/q packages\group\dist\esm\package.json 2>nul
del/q packages\hub-types\dist\cjs\package.json 2>nul
del/q packages\hub-types\dist\esm\package.json 2>nul
del/q packages\simple-types\dist\cjs\package.json 2>nul
del/q packages\simple-types\dist\esm\package.json 2>nul
del/q packages\storymap\dist\cjs\package.json 2>nul
del/q packages\storymap\dist\esm\package.json 2>nul
del/q packages\velocity\dist\cjs\package.json 2>nul
del/q packages\velocity\dist\esm\package.json 2>nul
del/q packages\viewer\dist\cjs\package.json 2>nul
del/q packages\viewer\dist\esm\package.json 2>nul
del/q packages\web-experience\dist\cjs\package.json 2>nul
del/q packages\web-experience\dist\esm\package.json 2>nul
del/q packages\web-tool\dist\cjs\package.json 2>nul
del/q packages\web-tool\dist\esm\package.json 2>nul
del/q packages\workflow\dist\cjs\package.json 2>nul
del/q packages\workflow\dist\esm\package.json 2>nul
rem build the demos
pushd demos\compareJSON
call npm run build
popd
pushd demos\compareSolutions
call npm run build
popd
pushd demos\copyItemInfo
call npm run build
popd
pushd demos\copySolutions
call npm run build
popd
pushd demos\createSolution
call npm run build
popd
pushd demos\deleteSolution
call npm run build
popd
pushd demos\deploySolution
call npm run build
popd
pushd demos\getItemInfo
call npm run build
popd
pushd demos\implementedTypes
call npm run build
popd
pushd demos\reuseDeployedItems
call npm run build
popd
pushd demos\verifySolution
call npm run build
popd
call rmdir/q/s coverage
call npm run test