Sha256: 8a43deb60f31738d8598fadd8a52634f4cc22214462a9787df902059d7dd9374

Contents?: true

Size: 792 Bytes

Versions: 19

Compression:

Stored size: 792 Bytes

Contents

#!/bin/bash

set -e

if [ "$#" != 1 ]; then
    echo "Please provide tag to checkout" >&2
    exit 1
fi
tag="$1"

while [ "$PWD" != '/' -a ! -f moment.js ]; do
    cd ..
done

if [ ! -f moment.js ]; then
    echo "Run me from the moment repo" >&2
    exit 1
fi

basename=$(basename $PWD)
src=moment-npm-git
dest=moment-npm

cd ..

rm -rf $src $dest

git clone $basename $src
mkdir $dest


cp $src/moment.js $dest
cp $src/moment.d.ts $dest
cp $src/package.json $dest
cp $src/README.md $dest
cp $src/CHANGELOG.md $dest
cp $src/LICENSE $dest
cp -r $src/locale $dest
cp -r $src/min $dest
cp -r $src/src $dest && rm -r $dest/src/test
cp $src/ender.js $dest
cp $src/package.js $dest
cp $src/.npmignore $dest
cp -r $src/ts3.1-typings $dest
cp -r $src/dist $dest

rm -rf $src

echo "Check out $dest"

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.15.0 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.14.2 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.14.1 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.14.0 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.13.4 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.13.3 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.13.2 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.13.1 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.13.0 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.7 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.12.0 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.6 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.5 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.4 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.3 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.2 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.1 vendor/moment/scripts/npm_prepublish.sh
card-mod-date-0.11.0 vendor/moment/scripts/npm_prepublish.sh