Skip to content
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

Add silent flag #19

Merged
merged 1 commit into from
Aug 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/micro-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const flags = mri(process.argv.slice(2), {
c: 'cold',
w: 'watch',
L: 'poll',
s: 'silent',
h: 'help',
v: 'version'
},
Expand Down
1 change: 1 addition & 0 deletions lib/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = () => {
${g('-c, --cold')} Disable hot reloading
${g('-w, --watch <dir>')} A directory to watch in addition to [path]
${g('-L, --poll')} Poll for code changes rather than using events
${g('-s, --silent')} Disable requests log
${g('-v, --version')} Output the version number
${g('-h, --help')} Show this usage information
`
Expand Down
2 changes: 1 addition & 1 deletion lib/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = async (file, flags, restarting) => {
process.env.NODE_ENV = process.env.NODE_ENV || 'development'

// And then load the files
const module = log(getModule(file))
const module = flags.silent ? getModule(file) : log(getModule(file))
const server = serve(module)

// `3000` is the default port
Expand Down