From 5dd005708d9d5a23a53ed0c9d7e6055a89a9b7dd Mon Sep 17 00:00:00 2001 From: Charlie Kassel Date: Wed, 20 Jun 2018 07:32:29 +0100 Subject: [PATCH] add pre commit package. --- package.json | 5 +++++ yarn.lock | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e47dcbf5..3c71d4f3 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,10 @@ "lint": "eslint --ext .js,.vue src test/unit/specs", "prepublishOnly": "yarn build" }, + "pre-commit": [ + "lint", + "test" + ], "dependencies": {}, "peerDependencies": { "vue": "^2.3.0" @@ -66,6 +70,7 @@ "opn": "^4.0.2", "ora": "^1.2.0", "parse5": "^2.1.0", + "pre-commit": "^1.2.2", "rimraf": "^2.6.0", "rollup": "^0.57.1", "rollup-plugin-buble": "^0.19.2", diff --git a/yarn.lock b/yarn.lock index 521cdb93..927878a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1243,6 +1243,10 @@ buble@^0.19.2: os-homedir "^1.0.1" vlq "^1.0.0" +buffer-from@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.0.tgz#87fcaa3a298358e0ade6e442cfce840740d1ad04" + builtin-modules@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" @@ -1580,6 +1584,15 @@ concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" +concat-stream@^1.4.7: + version "1.6.2" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + concat-stream@^1.5.2: version "1.6.0" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" @@ -4480,6 +4493,10 @@ os-locale@^2.0.0: lcid "^1.0.0" mem "^1.1.0" +os-shim@^0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" + os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -4992,6 +5009,14 @@ posthtml@^0.10.1: posthtml-parser "^0.3.0" posthtml-render "^1.0.5" +pre-commit@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/pre-commit/-/pre-commit-1.2.2.tgz#dbcee0ee9de7235e57f79c56d7ce94641a69eec6" + dependencies: + cross-spawn "^5.0.1" + spawn-sync "^1.0.15" + which "1.2.x" + prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" @@ -5941,6 +5966,13 @@ sourcemap-codec@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz#c8fd92d91889e902a07aee392bdd2c5863958ba2" +spawn-sync@^1.0.15: + version "1.0.15" + resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476" + dependencies: + concat-stream "^1.4.7" + os-shim "^0.1.2" + spdx-correct@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" @@ -6552,7 +6584,7 @@ which@1, which@^1.2.12, which@^1.3.0: dependencies: isexe "^2.0.0" -which@^1.2.9: +which@1.2.x, which@^1.2.9: version "1.2.14" resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" dependencies: