Skip to content

Commit

Permalink
Enable pre push script that runs tests (#220)
Browse files Browse the repository at this point in the history
* Add prepush hook
  • Loading branch information
dariadomagala-sap authored Nov 20, 2018
1 parent 10e6e92 commit 2d10512
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 31 deletions.
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"docu": "npm run docu:validate && npm run docu:generate:section",
"docu:generate:new-file": "documentation build luigi-client.js -f md --markdown-toc=false -o ../docs/luigi-client-api.md",
"docu:generate:section": "documentation readme luigi-client.js -f md --readme-file=../docs/luigi-client-api.md --section='Luigi Client API' --markdown-toc=false --quiet --github false",
"docu:validate": "documentation lint luigi-client.js "
"docu:validate": "documentation lint luigi-client.js",
"prepush": "npm run docu:validate"
},
"repository": {
"type": "git",
Expand Down
37 changes: 11 additions & 26 deletions core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"mock-browser": "^0.92.14",
"node-sass": "^4.9.0",
"oidc-client": "^1.5.2",
"pre-push": "^0.1.1",
"rewire": "^4.0.1",
"sinon": "^5.1.0",
"source-map-loader": "^0.2.3",
Expand All @@ -39,12 +38,12 @@
"bundle-develop": "webpack -d --watch",
"test": "./node_modules/mocha/bin/mocha --require babel-register --require babel-polyfill --require jsdom-global/register",
"bundlesize": "bundlesize",
"prepush": "npm run bundle && npm run bundlesize"
"prepush": "npm test && npm run bundle && npm run bundlesize"
},
"bundlesize": [
{
"path": "./public/luigi.js",
"maxSize": "50 kB",
"maxSize": "100 kB",
"compression": "none"
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"husky": {
"hooks": {
"pre-commit": "./scripts/apply-prettier.sh && ./scripts/remove-test-prefixes.sh",
"pre-push": "lerna run docu:validate"
"pre-push": "lerna run prepush"
}
}
}

0 comments on commit 2d10512

Please sign in to comment.