Skip to content

Latest commit

 

History

History
77 lines (55 loc) · 1.26 KB

19-quality-tools.md

File metadata and controls

77 lines (55 loc) · 1.26 KB

Quality Tools

Nodemon

For use during development of a Node.js based application

npm install nodemon --save-dev

package.json

"scripts": {
	"dev": "nodemon --watch ./ --ignore ./node_modules ./bin/www",
}

ES Lint

ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code

npm install eslint --save-dev
./node_modules/.bin/eslint --init

package.json

"scripts": {
    "lint": "eslint ./"
}

Process Manager and Supervisor

CLI tool for ensuring that a given script runs continuously

npm install forever --save
forever start app.js

Node-Inspector as Debugger

Node Inspector is a debugger interface for Node.js applications

npm install -g node-inspector
node-debug app.js

Debug as logging tool

npm install debug --save

Code Style with Prettier

.prettierrc

{
  "bracketSpacing": false,
  "eslintIntegration": true,
  "singleQuote": true
}