Adding precommit hook

This commit is contained in:
Jeff Avallone 2018-02-10 18:11:30 -05:00
parent cf0c175d0a
commit 738902d0ce
2 changed files with 29 additions and 1 deletions

View File

@ -14,7 +14,8 @@
"start:prod": "run-s build start:http-server", "start:prod": "run-s build start:http-server",
"start:http-server": "http-server ./build", "start:http-server": "http-server ./build",
"build": "webpack --config webpack.prod.js", "build": "webpack --config webpack.prod.js",
"test:lint": "eslint ." "test:lint": "eslint .",
"precommit": "run-s test:lint"
}, },
"dependencies": { "dependencies": {
"autoprefixer": "^7.2.5", "autoprefixer": "^7.2.5",
@ -45,6 +46,7 @@
"eslint": "^4.17.0", "eslint": "^4.17.0",
"eslint-plugin-react": "^7.6.1", "eslint-plugin-react": "^7.6.1",
"http-server": "^0.11.1", "http-server": "^0.11.1",
"husky": "^0.14.3",
"npm-run-all": "^4.1.2" "npm-run-all": "^4.1.2"
} }
} }

View File

@ -1298,6 +1298,10 @@ chownr@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181"
ci-info@^1.0.0:
version "1.1.2"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/ci-info/-/ci-info-1.1.2.tgz#03561259db48d0474c8bdc90f5b47b068b6bbfb4"
cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:
version "1.0.4" version "1.0.4"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de"
@ -3230,6 +3234,14 @@ https-browserify@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"
husky@^0.14.3:
version "0.14.3"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3"
dependencies:
is-ci "^1.0.10"
normalize-path "^1.0.0"
strip-indent "^2.0.0"
iconv-lite@0.4.19, iconv-lite@^0.4.17, iconv-lite@~0.4.13: iconv-lite@0.4.19, iconv-lite@^0.4.17, iconv-lite@~0.4.13:
version "0.4.19" version "0.4.19"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
@ -3407,6 +3419,12 @@ is-callable@^1.1.1, is-callable@^1.1.3:
version "1.1.3" version "1.1.3"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
is-ci@^1.0.10:
version "1.1.0"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5"
dependencies:
ci-info "^1.0.0"
is-data-descriptor@^0.1.4: is-data-descriptor@^0.1.4:
version "0.1.4" version "0.1.4"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
@ -4387,6 +4405,10 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
semver "2 || 3 || 4 || 5" semver "2 || 3 || 4 || 5"
validate-npm-package-license "^3.0.1" validate-npm-package-license "^3.0.1"
normalize-path@^1.0.0:
version "1.0.0"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1:
version "2.1.1" version "2.1.1"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
@ -6488,6 +6510,10 @@ strip-indent@^1.0.1:
dependencies: dependencies:
get-stdin "^4.0.1" get-stdin "^4.0.1"
strip-indent@^2.0.0:
version "2.0.0"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68"
strip-json-comments@~2.0.1: strip-json-comments@~2.0.1:
version "2.0.1" version "2.0.1"
resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" resolved "http://nexus.home.bromidic.net:8081/repository/npm-all/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"