-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
72 lines (63 loc) · 1.35 KB
/
Taskfile.yaml
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
version: 3
tasks:
install-languages:
run: once
status:
- asdf current nodejs
cmds:
- asdf install
install-dependencies:
internal: true
sources:
- package.json
- package-lock.json
generates:
- node_modules/**/*
deps:
- task: install-languages
cmds:
- asdf exec npm i
update-dependencies:
desc: Update all dependencies for the widgets
deps:
- task: install-languages
cmds:
- asdf exec npm update
dev:
desc: Build & watch the widgets
deps:
- task: install-dependencies
cmds:
- task: dev:run
dev:run:
internal: true
deps:
- task: dev:run-js
- task: dev:run-css
dev:run-js:
internal: true
cmd: asdf exec npm run watch
dev:run-css:
internal: true
cmd: asdf exec npm run watch:styles
build:
desc: Build the widgets for production
deps:
- task: install-dependencies
cmds:
- asdf exec npm run build
- asdf exec npm run build:styles
lint:
aliases:
- test
desc: Perform linting and code style checks on the widgets
deps:
- task: install-dependencies
cmds:
- asdf exec npm run lint
release:
desc: Create a new release and publish it to GitHub & NPM
deps:
- task: install-dependencies
cmds:
- asdf exec npm run release