#!/bin/bash

gulp pkg-sync

pushd src
npm version $npm_package_version-latest
mkdir -p ../dist/cnc/
cp -af package.json ../dist/cnc/
babel -d ../dist/cnc/ *.js
popd

#!/bin/bash

abbrev_commit=`git log -1 --format=%h`

gulp pkg-sync

pushd src
npm version $npm_package_version-$abbrev_commit
mkdir -p ../dist/cnc/
cp -af package.json ../dist/cnc/
babel -d ../dist/cnc/ *.js
popd

Use the abbreviated commit hash instead of the 'latest' string
Use the abbreviated commit hash instead of the 'latest' string
