-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.bat
35 lines (30 loc) · 1.02 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
@ECHO OFF
REM Delete Javascript files as we will generate them now
DEL LInQer.extra.js
DEL LInQer.extra.min.js
DEL LInQer.js
DEL LInQer.min.js
DEL LInQer.slim.js
DEL LInQer.slim.min.js
DEL LInQer.all.js
DEL LInQer.extra.js.map
DEL LInQer.js.map
DEL LInQer.slim.js.map
DEL LInQer.all.js.map
REM Requires npm install typescript -g
call tsc --p tsconfig.json --sourceMap
call tsc --p tsconfig.slim.json --sourceMap --noResolve
call tsc --p tsconfig.extra.json --sourceMap --noResolve
call tsc --p tsconfig.all.json --sourceMap
ECHO export = Linqer; >> linqer.all.d.ts
REM Delete intermediary Javascript files
DEL LInQer.Enumerable.js
DEL LInQer.GroupEnumerable.js
DEL LInQer.OrderedEnumerable.js
DEL LInQer.Enumerable.js.map
DEL LInQer.GroupEnumerable.js.map
DEL LInQer.OrderedEnumerable.js.map
REM Requires npm install terser -g
call terser --compress --mangle -o LInQer.min.js -- LInQer.js
call terser --compress --mangle -o LInQer.slim.min.js -- LInQer.slim.js
call terser --compress --mangle -o LInQer.extra.min.js -- LInQer.extra.js