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
Added file watcher to now dev
#2153
Conversation
WIP for triggering background rebuilds. So far the `files` mapping is now kept in sync via the events produced by `nsfw`.
nsfw
file watchernsfw
file watcher
Codecov Report
@@ Coverage Diff @@
## canary #2153 +/- ##
=========================================
- Coverage 4.43% 4.36% -0.08%
=========================================
Files 243 244 +1
Lines 8652 8793 +141
Branches 902 923 +21
=========================================
Hits 384 384
- Misses 8251 8392 +141
Partials 17 17
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need a live ignore filter, filter out our default IGNORES
, and gets updated with .nowignore
file change. But we can do this in another PR.
@leo This PR is more or less ready, except that we still need to figure out how to handle the I suggest we fork |
@TooTallNate Looks like we just put
|
@amio The problem is not the bundling, it's the fact that I'm working on it today. |
nsfw
file watchernow dev
This reverts commit 0b4991b.
// `BuilderOutputs` map was returned | ||
result = { output: result as BuilderOutputs }; | ||
if (r.output) { | ||
result = r as BuildResult; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this why returning a version
would be good because then you wouldn't need to cast. Oh well 🤷♂️
Co-Authored-By: leo <mindrun@icloud.com>
* [now dev] Add `nsfw` file watcher WIP for triggering background rebuilds. So far the `files` mapping is now kept in sync via the events produced by `nsfw`. * Add `now.json` caching and invalidation from nsfw events * Add initial rebuilding logic from filesystem watching * Remove previously built assets when a rebuild occurs * Make `@now/static` not require a hard refresh * Shut down the `nsfw` instance when stopping the DevServer * Prettier and some minor tweaks * Ship module * Support private deps * Fixed tests * Fixed integration tests * Revert "Support private deps" This reverts commit 0b4991b. * Support multiple platforms * Typed * Consider Alpine * Bumped @zeit/nsfw to latest version * Update src/commands/dev/lib/nsfw-module.ts Co-Authored-By: leo <mindrun@icloud.com> * Pass module path differently * Bumped package * Make binary executable * Wait until piping is complete * Added debug statements
This PR is for triggering background rebuilds. So far the
files
mapping is now kept in sync via the events produced bynsfw
.