Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added file watcher to
now dev
(#2153)
* [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
- Loading branch information
1 parent
de560ea
commit defb2f1
Showing
10 changed files
with
460 additions
and
176 deletions.
There are no files selected for viewing
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,8 @@ | ||
declare module 'promisepipe' { | ||
import { ReadableStream, WritableStream } from 'stream' | ||
|
||
export default function ( | ||
stream: ReadableStream, | ||
anotherStream: WritableStream, | ||
): Promise<void> | ||
} |
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
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
Oops, something went wrong.