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

Version Path
cqm-models-4.2.0 bin/validate_dist.sh
cqm-models-3.1.2 bin/validate_dist.sh
cqm-models-4.1.1 bin/validate_dist.sh
cqm-models-4.1.0 bin/validate_dist.sh
cqm-models-4.0.2 bin/validate_dist.sh
cqm-models-4.0.1 bin/validate_dist.sh
cqm-models-4.0.0 bin/validate_dist.sh
cqm-models-3.1.1 bin/validate_dist.sh
cqm-models-3.1.0 bin/validate_dist.sh
cqm-models-3.0.6 bin/validate_dist.sh
cqm-models-3.0.5 bin/validate_dist.sh
cqm-models-3.0.4 bin/validate_dist.sh
cqm-models-3.0.3 bin/validate_dist.sh
cqm-models-3.0.2 bin/validate_dist.sh
cqm-models-3.0.1 bin/validate_dist.sh
cqm-models-2.0.1 bin/validate_dist.sh
cqm-models-3.0.0 bin/validate_dist.sh
cqm-models-2.0.0 bin/validate_dist.sh
cqm-models-1.1.1.0 bin/validate_dist.sh
cqm-models-1.0.3 bin/validate_dist.sh