blob: 8c7327abb6a2ea7db7e5949862f24bd8083e6100 (
plain)
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
|
#taskfile for building the libraries for admin and clients and creating their packages
version: '3'
tasks:
build:
cmds:
- cmd: npm version {{ .BUILD_VERSION }}
ignore_error: true #error if run when version is not updated
- task: ci-build
ci-build:
cmds:
- cmd: powershell rm dist/ -Recurse -Force
ignore_error: true
#build admin first
- cd ../lib/admin && npm install && npm run build
#install deps and run main build
- npm install
- npm run build
#copy artifacts to temp directory
postbuild_success:
cmds:
- powershell mkdir bin -Force
#tar the dist output and put it in the output dir
- cd dist/ && tar -czf '../bin/release.tgz' .
#clean hook
clean:
ignore_error: true
cmds:
- for: [ node_modules/, dist/, bin/ ]
cmd: powershell -Command "Remove-Item -Recurse -Force {{.ITEM}}"
|