Add jshint and jscs

This commit is contained in:
isqua 2014-11-27 00:38:14 +03:00
parent 81ad370af1
commit eb32411fa7
3 changed files with 9 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
chrome_point_plus/vendor/
/nbproject/private/
node_modules/
npm-debug.log
publish
vendor/

View File

@ -22,8 +22,8 @@ vendorCopy.push({
dest: 'chrome_point_plus/'
});
/* global module */
module.exports = function(grunt) {
// Настройки
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
@ -46,7 +46,7 @@ module.exports = function(grunt) {
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
globalReplace: true
}
},
}
});
// Загрузить плагины

View File

@ -4,7 +4,9 @@
"description": "Chrome extension for point.im",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"postinstall": "./node_modules/.bin/bower install && grunt",
"lint": "./node_modules/.bin/jshint . && ./node_modules/.bin/jscs .",
"test": "npm run lint"
},
"repository": {
"type": "git",
@ -16,6 +18,8 @@
"bower": "^1.3.12",
"grunt": "^0.4.5",
"grunt-bump": "git://github.com/nkirkes/grunt-bump.git#nkirkes/restrict-version-key-name",
"grunt-contrib-copy": "^0.7.0"
"grunt-contrib-copy": "^0.7.0",
"jscs": "^1.10.0",
"jshint": "^2.6.0"
}
}