aboutsummaryrefslogtreecommitdiff
path: root/extension/Taskfile.yaml
blob: 40bf2b40da5314b54a82dc84b627977cc2eb4972 (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

#taskfile for building the nvault-extension

version: '3'

tasks:

  build:
    cmds:
    #install deps and run build
    - npm install
    - npm run build
    
  #copy artifacts to temp directory
  postbuild_success:
    cmds:
    - powershell -Command "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:
    - cmd: powershell -Command "Remove-Item -Recurse -Force node_modules"
    - cmd: powershell -Command "Remove-Item -Recurse -Force dist"
    - cmd: powershell -Command "Remove-Item -Recurse -Force bin"
    - cmd: powershell -Command "Remove-Item release.tgz"