Skip to content

Commit b7a03f2

Browse files
add Werkfile for werk itself
1 parent b984138 commit b7a03f2

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Werkfile

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

0 commit comments

Comments
 (0)