Skip to content

Commit

Permalink
added pre-commit module and pre-commit configs into package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaylopivanov committed Feb 22, 2016
1 parent e710c71 commit 2f83a1a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
16 changes: 11 additions & 5 deletions apps/server/esrol-package.json
Expand Up @@ -22,18 +22,23 @@
"installed": false
}
},
"pre-commit": [
"lint",
"test"
],
"scripts": {
"test": "node_modules/.bin/mocha ./tests/test",
"app": "node_modules/grunt-cli/bin/grunt",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha ./tests/test",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"app": "node_modules/grunt-cli/bin/grunt",
"delete": "node_modules/pm2/bin/pm2 delete app.js",
"lint": "eslint app/*",
"list": "node_modules/pm2/bin/pm2 list",
"start": "node_modules/pm2/bin/pm2 startup && node_modules/pm2/bin/pm2 start app.js",
"start-custom": "node_modules/pm2/bin/pm2 start ",
"list": "node_modules/pm2/bin/pm2 list",
"stop": "node_modules/pm2/bin/pm2 stop app.js",
"stop-custom": "node_modules/pm2/bin/pm2 stop ",
"delete": "node_modules/pm2/bin/pm2 delete app.js",
"stop-all": "node_modules/pm2/bin/pm2 stop all"
"stop-all": "node_modules/pm2/bin/pm2 stop all",
"test": "node_modules/.bin/mocha ./tests/test"
},
"devDependencies": {
"coveralls": "^2.11.4",
Expand All @@ -49,6 +54,7 @@
"istanbul": "^0.4.1",
"mocha": "^2.3.3",
"mocha-sinon": "^1.1.4",
"pre-commit": "^1.1.2",
"sinon": "^1.17.2",
"touch": "^1.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions lib/esrol.js
Expand Up @@ -15,7 +15,7 @@ const fs = require('fs');
const path = require('path');
const PackageToJson = require('./packageToJson');
const Transporter = require('./transporter');
const colors = require('colors');
const colors = require('colors'); //eslint-disable-line

module.exports = class Esrol {

Expand Down Expand Up @@ -149,7 +149,7 @@ module.exports = class Esrol {
* @description Dummy message when everything is done
*/
_done() {
console.log('Happy Coding ^_^'.green.bold);
console.log('Happy Coding ^_^'.green.bold); //eslint-disable-line
}

/**
Expand Down
8 changes: 8 additions & 0 deletions package.json
Expand Up @@ -28,7 +28,12 @@
"node": ">= 4.0.0",
"npm": ">= 3.3.6"
},
"pre-commit": [
"lint",
"test"
],
"scripts": {
"lint": "eslint lib/*",
"postinstall": "node ./index.js",
"test": "node_modules/.bin/mocha ./tests/test",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha ./tests/test",
Expand All @@ -55,5 +60,8 @@
"pm2": "^0.15.10",
"sinon": "^1.17.2",
"touch": "^1.0.0"
},
"devDependencies": {
"pre-commit": "^1.1.2"
}
}

0 comments on commit 2f83a1a

Please sign in to comment.