Skip to content

Commit

Permalink
Actions @misterpeddy's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkmann18 committed Apr 5, 2020
1 parent 485c46f commit c3348d5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Clone the repo and run:

1. `npm install`

2. `npm start` or `npm run dev` (like `npm start` but the server automatically restarts after files are changed)
2. `npm start` or `npm run dev` (like `npm start` but the server automatically restarts after any HTML/CSS/JS files are changed)

Then app should be serving at localhost:8080.

Expand Down
7 changes: 3 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const express = require('express');
const path = require('path');
const reload = require('reload');
const { info, error } = require('nclr/symbols');

const app = express();

Expand All @@ -17,8 +18,6 @@ app.get('/', (req, res) => res.sendFile(INDEX_PATH));

reload(app)
.then(() => {
// eslint-disable-next-line no-console
app.listen(PORT, () => console.log(`Listening on port ${PORT}`));
app.listen(PORT, () => info(`Listening on port ${PORT}`));
})
// eslint-disable-next-line no-console
.catch((err) => console.error('Reload error:', err));
.catch((err) => error('Reload error:', err));
35 changes: 31 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"homepage": "https://github.com/misterpeddy/hands-down#readme",
"dependencies": {
"express": "^4.17.1",
"nclr": "^2.2.4",
"reload": "^3.0.4"
},
"devDependencies": {
Expand Down

0 comments on commit c3348d5

Please sign in to comment.