Sha256: 41bfd1f3ca86314b8f66155f195c17918ca6e2042d69440d0d0c1e3f691b63ea
Contents?: true
Size: 478 Bytes
Versions: 34
Compression:
Stored size: 478 Bytes
Contents
#!/bin/bash mkdir -p tmp/dist/ # dist_test browserifies index.js to tmp/dist yarn run dist_test # comm -3 only returns lines that differ between the two files. If none are different, diff will be empty diff=`diff dist/index.js tmp/dist/index.js` # Exit with a non-zero code if the diff isn't empty if [ "$diff" != "" ]; then echo "dist/index.js is out of date. Please run 'yarn run dist' locally and commit/push the result" exit 1 fi echo "dist/index.js is up to date"
Version data entries
34 entries across 34 versions & 1 rubygems