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