Skip to content

Commit

Permalink
chore: add clean and check before dist packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed May 31, 2018
1 parent 010a138 commit f3bb573
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions bin/check-if-clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
echo "Working directory is dirty!"
exit 1
fi
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@
"add-licenses": "./bin/add-licenses",
"build": "gulp build",
"check-licenses": "./bin/check-licenses",
"clean": "rm -rf build && git clean -X -f",
"clean": "rm -rf build && rm -rf dist && git clean -X -f",
"dev": "gulp build && cd build && npm link && cd .. && gulp watch",
"dist": "gulp dist",
"dist": "npm run clean && ./bin/check-if-clean && gulp dist",
"fix-format": "node_modules/.bin/tslint -p . --fix && node_modules/.bin/tsfmt -r",
"integ": "./test/integ/run",
"lint": "gulp lint",
Expand Down

0 comments on commit f3bb573

Please sign in to comment.