From d6436de3bda3e253b7968a7e098a80f21d16debb Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Wed, 11 Apr 2018 14:57:15 -0400 Subject: [PATCH] Organize npm scripts Combine `yarn grunt jshint` and `yarn grunt jscs` into `yarn grunt lint`. --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5ae98a286..3c2520e41 100644 --- a/package.json +++ b/package.json @@ -34,15 +34,15 @@ "release-win": "npm run build-release -- -w --prepackaged release/windows --publish=always", "release-lin": "npm run build-release -- -l --prepackaged release/linux && NAME=$npm_package_name VERSION=$npm_package_version ./aptly.sh", "release": "npm run release-mac && npm run release-win && npm run release-lin", - "test-node": "mocha --recursive test/app test/modules ts/test-unit", - "test-electron": "yarn grunt test", - "test-electron-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test-unit", "test": "yarn test-node && yarn test-electron", + "test-electron": "yarn grunt test", + "test-node": "mocha --recursive test/app test/modules ts/test-unit", + "test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test-unit", + "eslint": "eslint .", "jscs": "yarn grunt jscs", "jshint": "yarn grunt jshint", - "eslint": "eslint .", + "lint": "yarn eslint && yarn grunt lint && yarn tslint", "tslint": "tslint --config tslint.json --project . --format stylish", - "lint": "yarn eslint && yarn tslint && yarn jshint && yarn jscs", "transpile": "tsc", "clean-transpile": "rimraf ts/**/*.js ts/*.js", "open-coverage": "open coverage/lcov-report/index.html",