This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| filename="package.json" | |
| pattern=' "version": "([0-9]+\.[0-9]+\.[0-9]+).*' | |
| git log --pretty="format:%H" -- package.json | { | |
| while read current_hash; do | |
| if [ -n "$previous_hash" ]; then | |
| new_version=`git diff $previous_hash $current_hash -- $filename | sed -n -E -e "s/^\-$pattern/\1/p"` | |
| if [ -n "$new_version" ]; then | |
| echo version bumped to $new_version with $previous_hash | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var webpackConfig = { | |
| plugins: [ | |
| // Plugin to show any webpack warnings and prevent tests from running | |
| function () { | |
| this.plugin("done", function (stats) { | |
| if (stats.compilation.warnings.length) { | |
| // Log each of the warnings | |
| stats.compilation.warnings.forEach(function (warning) { | |
| console.log(warning.message || warning); | |
| }); |