Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 5, 2019
1 parent 68f6bdd commit 68bd635
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 35 deletions.
12 changes: 5 additions & 7 deletions bin/cli/help.js
Expand Up @@ -11,19 +11,17 @@ module.exports = `
-p, --port Port to listen on ${chalk.gray('[default=3000]')}
-H, --host The host on which svr will run ${chalk.gray(
"[default='localhost']"
)}
-H, --host The host on which svr will run ${chalk.gray("[default='localhost']")}
-d, --pwd A directory to start ${chalk.gray('[default=cwd]')}
-L, --poll Poll for code changes rather than using events ${chalk.gray(
'[default=false]'
)}
'[default=false]'
)}
-i, --ignore Ignore watching a file, directory, or glob ${chalk.gray(
'[default=.gitignore, pkg.ignore]'
)}
'[default=.gitignore, pkg.ignore]'
)}
-w, --watch Add more files than the project path to watch
Expand Down
4 changes: 1 addition & 3 deletions bin/cli/log.js
Expand Up @@ -67,9 +67,7 @@ module.exports = {
let done = false

const timer = setInterval(() => {
done
? logUpdate(`${logMessage}`)
: logUpdate(`${logMessage} ${spinner.frame()}`)
done ? logUpdate(`${logMessage}`) : logUpdate(`${logMessage} ${spinner.frame()}`)
}, 50)

return {
Expand Down
4 changes: 1 addition & 3 deletions bin/serve/listen-message.js
Expand Up @@ -16,9 +16,7 @@ module.exports = ({ appName, port, inUse, userPort }) => {
let message = chalk.green(`${appName} is running!`)

if (inUse) {
message += chalk.red(
`\n(on port ${port}, because ${userPort} is already in use)`
)
message += chalk.red(`\n(on port ${port}, because ${userPort} is already in use)`)
}

message += '\n\n'
Expand Down
10 changes: 1 addition & 9 deletions bin/serve/listen.js
Expand Up @@ -5,15 +5,7 @@ const importCwd = require('import-cwd')
const { error: logError } = require('../cli/log')
const listenMessage = require('./listen-message')

module.exports = async ({
userPort,
inUse,
pkg,
port,
host,
restarting,
filepath
}) => {
module.exports = async ({ userPort, inUse, pkg, port, host, restarting, filepath }) => {
let server

try {
Expand Down
13 changes: 2 additions & 11 deletions bin/watch/index.js
Expand Up @@ -51,15 +51,7 @@ const doRestart = ({
)
}

module.exports = ({
filepath,
watchFiles,
pwd,
pkg,
server,
sockets,
...opts
}) => {
module.exports = ({ filepath, watchFiles, pwd, pkg, server, sockets, ...opts }) => {
const watchConfig = getWatchConfig({
pwd,
pkg,
Expand Down Expand Up @@ -87,8 +79,7 @@ module.exports = ({
watcher.once(
'all',
debounce(
(event, filename) =>
restart({ forcing: false, filename: path.relative(pwd, filename) }),
(event, filename) => restart({ forcing: false, filename: path.relative(pwd, filename) }),
10
)
)
Expand Down
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -12,7 +12,10 @@
"url": "https://github.com/Kikobeats"
},
"contributors": [
"Kiko Beats <josefrancisco.verdu@gmail.com>"
{
"name": "Kiko Beats",
"email": "josefrancisco.verdu@gmail.com"
}
],
"repository": {
"type": "git",
Expand Down Expand Up @@ -104,7 +107,6 @@
"precommit": "lint-staged",
"prelint": "npm run pretty",
"prerelease": "npm run update:check && git-authors-cli",
"pretest": "npm run lint",
"pretty": "prettier-standard {core,test,bin}/**/*.js",
"release": "git add package.json && standard-version -a",
"release:github": "conventional-github-releaser -p angular",
Expand Down

0 comments on commit 68bd635

Please sign in to comment.