Skip to content
Permalink
Browse files

fix: add lint stage & test

  • Loading branch information...
antonreshetov committed Apr 15, 2019
1 parent 656b927 commit ebd384b863c2abbffb4ff65621e124c9386640da
Showing with 15 additions and 2 deletions.
  1. +1 −1 build/bin/release.sh
  2. +14 −1 package.json
@@ -7,7 +7,7 @@ read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
npm run lint && npm run build
npm run test:unit && npm run lint && npm run build
git add -A
git commit -m "release $VERSION"
npm version $VERSION -m "release $VERSION"
@@ -1,7 +1,7 @@
{
"name": "vfc",
"description": "Vue form components with validation",
"version": "2.0.0",
"version": "1.1.2",
"private": false,
"repository": {
"type": "git",
@@ -58,5 +58,18 @@
"sass-loader": "^7.1.0",
"vue-svg-loader": "^0.10.0",
"vue-template-compiler": "^2.5.17"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.js": [
"vue-cli-service lint",
"git add"
],
"*.vue": [
"vue-cli-service lint",
"git add"
]
}
}

0 comments on commit ebd384b

Please sign in to comment.
You can’t perform that action at this time.