We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 096ca84 commit daeae14Copy full SHA for daeae14
1 file changed
Werkfile
@@ -0,0 +1,29 @@
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 cli-install {
19
+ run "cargo install --path werk-cli"
20
21
22
+task mdbook-serve {
23
+ run "mdbook serve book"
24
25
26
+task test {
27
+ run "cargo test"
28
+ run "mdbook test book --dest-dir book/book"
29
0 commit comments