Skip to content

Instantly share code, notes, and snippets.

@divmain
divmain / find-version-commits.sh
Created March 9, 2016 23:52
Find commits where `package.json` version was bumped.
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
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);
});