Skip to content

Commit

Permalink
fix: add lint stage & test
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Apr 15, 2019
1 parent 656b927 commit ebd384b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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.