Skip to content

Commit 7b2521b

Browse files
add Werkfile for werk itself
1 parent c6e3ec5 commit 7b2521b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Werkfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
let mdbook = which "mdbook"
2+
let werk-vscode-version = shell "jq --raw-output .version werk-vscode/package.json"
3+
4+
build "/werk-vscode/werk-{werk-vscode-version}.vsix" {
5+
from glob "werk-vscode/**/*"
6+
run "npm --prefix werk-vscode run package -- --out ../target/werk-vscode"
7+
}
8+
build "/book/book" {
9+
run "{mdbook} build book --dest-dir book/book"
10+
}
11+
12+
task vscode-install-extension {
13+
let vsix = "/werk-vscode/werk-{werk-vscode-version}.vsix"
14+
build vsix
15+
run "code --install-extension <vsix>"
16+
}
17+
18+
task mdbook-serve {
19+
run "mdbook serve book"
20+
}
21+
22+
task test {
23+
run "cargo test"
24+
run "mdbook test book --dest-dir book/book"
25+
}

0 commit comments

Comments
 (0)