-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
48 lines (46 loc) · 1.19 KB
/
Taskfile.yml
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
# https://taskfile.dev
env:
TOOLS_DIRECTORY: 'tools'
GOBIN: '{{ .TOOLS_DIRECTORY }}'
version: '3'
vars:
PUBLISHER_NAME: sheldon-hull
tasks:
default:
cmds:
- task --list
silent: true
init:
desc: setup tooling
env:
npm_config_loglevel: info
cmds:
- |
{{if eq OS "windows"}}
powershell.exe -nologo -noexit -c "(New-Item '{{ .TOOLS_DIRECTORY }}' -ItemType Directory -Force).FullName"
{{else}}
mkdir '{{ .TOOLS_DIRECTORY }}'
{{end}}
npm install -g yo generator-code
npm install -g vsce
go install github.com/evilmartians/lefthook@latest
go install github.com/owenrumney/squealer/cmd/squealer@latest
GO111MODULE=on go get github.com/zricethezav/gitleaks/v7
go install github.com/hekike/unchain@master
lefthook install
new:
desc: new extension pack (which will generate a new git repo)
cmds:
- yo code
package:
desc: package the extension
cmds:
- vsce package
auth:
desc: authenticate with cli for publishing
cmds:
- vsce login {{ .PUBLISHER_NAME }}
publish:
desc: publish the packaged extension
cmds:
- vsce publish