add test task as npm script
This commit is contained in:
@@ -193,6 +193,14 @@ module.exports = function(grunt) {
|
|||||||
'jscs'
|
'jscs'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
grunt.registerTask('test', [
|
||||||
|
'clean:test',
|
||||||
|
'clean:tmp',
|
||||||
|
'babel:distTestNoSystemJs',
|
||||||
|
'babel:distTestsSpecsNoSystemJs',
|
||||||
|
'mochaTest'
|
||||||
|
]);
|
||||||
|
|
||||||
grunt.registerTask('bench', [
|
grunt.registerTask('bench', [
|
||||||
'clean:test',
|
'clean:test',
|
||||||
'clean:tmp',
|
'clean:tmp',
|
||||||
|
|||||||
@@ -4,8 +4,9 @@
|
|||||||
"version": "3.6.0",
|
"version": "3.6.0",
|
||||||
"description": "Zabbix plugin for Grafana",
|
"description": "Zabbix plugin for Grafana",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "./node_modules/.bin/grunt test",
|
||||||
"build": "./node_modules/.bin/grunt"
|
"build": "./node_modules/.bin/grunt",
|
||||||
|
"watch": "./node_modules/.bin/grunt watch"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user