add test task as npm script

This commit is contained in:
Alexander Zobnin
2017-10-30 13:29:34 +03:00
parent d56f306e7e
commit 8266f61d27
2 changed files with 11 additions and 2 deletions

View File

@@ -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',

View File

@@ -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",