-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have cli watch template file for changes (#91)
There was a bug previously where if this was run from a subdirectory, it would always use the default remote template, since it wouldn't find the local one where it expected. That's fixed in this PR. Also, while it would detect a change in specified template file in the Stoat config file, it wouldn't update automatically on changes within the template itself, which would require restarting `stoat local`. This wouldn't be that big of a deal except the one of the biggest reasons to use local mode is to fine tune the template. I created #90 to track an issue that would make it trivial to locally iterate on templates including non-`static_hosting` plugins. Maybe we could even have a copy button on debug pages next to the merged configs that just gives you the command to run locally to preview that exact config.
- Loading branch information
Showing
5 changed files
with
78 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd action | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd cli | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters