Update node using nvm
nvm install 6.3
nvm alias default 6.3
nvm use 6.3
Install and Update pm2
npm install pm2@latest -g ; pm2 update
{ | |
"env": { | |
"es6": true, | |
"node": true, | |
"builtin": true | |
}, | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"ecmaFeatures": { | |
"arrowFunctions": true, |
The test script and pre-commit-eslint.sh
are triggered before commit.
If there are any eslint validation errors or if any unit test fails, commit will fail:
suhas:~/workspace/node-dogstatsd$ git commit
Validating Javascript with eslint:
/home/suhas/workspace/node-dogstatsd/lib/statsd.js
30:9 error 'x' is defined but never used no-unused-vars
Setting up a system takes time and effort. It would be ideal if we could port our settings to the new system.
tar
has the capability to preserve permissions for folders and files.
We can use the following commands to package the contents of the home folder
and unpack it in the new ubuntu system be using the following commands:
tar cpf ~/home.tar ~