WIP Port MinErr logic to self contained package, utilize new package in gulp task