From bee378f734088f7f2bfdfbae33749891f85ddf95 Mon Sep 17 00:00:00 2001 From: Icebob Date: Sun, 8 May 2016 12:04:58 +0200 Subject: [PATCH] config: add coverall script to npm --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 699d316e..c464b8b2 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,16 @@ "homepage": "https://github.com/icebob/vue-form-generator", "main": "dist/vue-form-generator.js", "scripts": { + "prebuild": "npm run test", "build": "webpack --config webpack.build.config.js", "dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/", "lint": "eslint --ext=.js,.vue src", - "coverall": "karma start test/unit/karma.conf.js --single-run --reporters coverage,coveralls", + "coverall": "npm run test && cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "changelog": "conventional-changelog -i CHANGELOG.md -s", "docs": "cd docs && gitbook serve", "unit": "karma start test/unit/karma.conf.js", "e2e": "node test/e2e/runner.js", + "pretest": "npm run lint", "test": "npm run unit", "ci": "karma start test/unit/karma.conf.js --auto-watch --no-single-run --reporters=dots" },