-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces
live-server
with five-server
This replaces `live-server` with `five-server`, which is a fork/rewrite of `live-server` which is maintained. One issue that I found was that `five-server` adds a toast message upon every page reload which is ugly, so I took the liberty of hiding that info message. Other than that, it appears to work correctly. Before this commit, `aiur` passed the `liveserver` parameter into faucet and faucet took care of activating the liveserver (prompting the user to install `live-server` if they hadn't already). I've modified the `aiur` script so that it no longer passes that parameter into faucet, but instead activates our own server implementation using `five-server`
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
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
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 @@ | ||
let { _parseHost } = require("faucet-pipeline-core/lib/server"); | ||
|
||
exports.live = (config, root) => { | ||
let LiveServer = require("five-server").default; | ||
let [host, port] = _parseHost(config); | ||
|
||
new LiveServer().start({ port, host, root, open: false }); | ||
}; |
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