-
Notifications
You must be signed in to change notification settings - Fork 9
Add a Werkfile for werk itself :)
#44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
62a4040
b984138
b7a03f2
9527e5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| let werk-vscode-version = shell "jq --raw-output .version werk-vscode/package.json" | ||
|
|
||
| build "werk-vscode/node_modules" { | ||
| from ["werk-vscode/package.json", "werk-vscode/package-lock.json"] | ||
| run ["npm --prefix werk-vscode install", "touch <out>"] | ||
| } | ||
| build "/werk-vscode/werk-{werk-vscode-version}.vsix" { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's missing here is running but that will be rebuilt every time because
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The question is, is this a "not implemented" limitation or "this fundamentally opposes the values of werk" limitation? I think it would be very useful to have but I can understand if you regard this as out of scope.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So a build recipe (currently) can't produce a directory, although that would be an amazing feature. I think the Still, I wouldn't be too worried about integrating NPM with werk's outdatedness tracking, as long as
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think build "werk-vscode/node_modules" {
from "werk-vscode/package-lock.json"
cwd "werk-vscode"
run "npm install --prefix {OUT_DIR}"
}would probably not be too hard to add, and also useful because not every tool has a (I also tried
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want I'll much around with |
||
| from ["werk-vscode/node_modules", glob "werk-vscode/**/*"] | ||
| run "npm --prefix werk-vscode run package -- --out ../target/werk-vscode" | ||
| } | ||
| build "/book/book" { | ||
| run "mdbook build book --dest-dir book/book" | ||
| } | ||
|
|
||
| task vscode-install-extension { | ||
| let vsix = "/werk-vscode/werk-{werk-vscode-version}.vsix" | ||
| build vsix | ||
| run "code --install-extension <vsix>" | ||
| } | ||
|
|
||
| task cli-install { | ||
| run "cargo install --path werk-cli" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Funnily, this will usually clobber the process doing it, which will always fail on Windows. Might be nice for completeness, still. |
||
| } | ||
|
|
||
| task mdbook-serve { | ||
| run "mdbook serve book" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /node_modules | ||
| /*.vsix |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,5 @@ | ||
| # Change Log | ||
|
|
||
| All notable changes to the "werk" extension will be documented in this file. | ||
|
|
||
| Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| - Initial release |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| werk-vscode is dual-licensed under either | ||
jakobhellermann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| * MIT License ([LICENSE-MIT](../../LICENSE-MIT)) | ||
| * Apache License, Version 2.0 ([LICENSE-APACHE](../../LICENSE-APACHE)) | ||
|
|
||
| at your option. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../LICENSE-APACHE |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../LICENSE-MIT |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,65 +1,3 @@ | ||
| # werk README | ||
| # werk | ||
|
|
||
| This is the README for your extension "werk". After writing up a brief description, we recommend including the following sections. | ||
|
|
||
| ## Features | ||
|
|
||
| Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file. | ||
|
|
||
| For example if there is an image subfolder under your extension project workspace: | ||
|
|
||
| \!\[feature X\]\(images/feature-x.png\) | ||
|
|
||
| > Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow. | ||
|
|
||
| ## Requirements | ||
|
|
||
| If you have any requirements or dependencies, add a section describing those and how to install and configure them. | ||
|
|
||
| ## Extension Settings | ||
|
|
||
| Include if your extension adds any VS Code settings through the `contributes.configuration` extension point. | ||
|
|
||
| For example: | ||
|
|
||
| This extension contributes the following settings: | ||
|
|
||
| * `myExtension.enable`: Enable/disable this extension. | ||
| * `myExtension.thing`: Set to `blah` to do something. | ||
|
|
||
| ## Known Issues | ||
|
|
||
| Calling out known issues can help limit users opening duplicate issues against your extension. | ||
|
|
||
| ## Release Notes | ||
|
|
||
| Users appreciate release notes as you update your extension. | ||
|
|
||
| ### 1.0.0 | ||
|
|
||
| Initial release of ... | ||
|
|
||
| ### 1.0.1 | ||
|
|
||
| Fixed issue #. | ||
|
|
||
| ### 1.1.0 | ||
|
|
||
| Added features X, Y, and Z. | ||
|
|
||
| --- | ||
|
|
||
| ## Working with Markdown | ||
|
|
||
| You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts: | ||
|
|
||
| * Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux). | ||
| * Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux). | ||
| * Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets. | ||
|
|
||
| ## For more information | ||
|
|
||
| * [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown) | ||
| * [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/) | ||
|
|
||
| **Enjoy!** | ||
| Basic language support for [werk](https://github.com/simonask/werk), a simplistic command runner and build system. |
Uh oh!
There was an error while loading. Please reload this page.