Move package script out and make it tar into a versioned top level directory. It may as well be a shell script since it's unix specific anyway, and maintaining it inside package.json is now impractical.
This commit is contained in:
parent
b088651211
commit
874123bbfa
2 changed files with 15 additions and 1 deletions
14
scripts/package.sh
Executable file
14
scripts/package.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
version=`git describe --dirty --tags || echo unknown`
|
||||
|
||||
npm run build
|
||||
mkdir -p packages
|
||||
ln -s vector vector-$version
|
||||
tar chvzf packages/vector-$version.tar.gz vector-$version
|
||||
rm vector-$version
|
||||
|
||||
echo
|
||||
echo "Packaged packages/vector-$version.tar.gz"
|
Loading…
Add table
Add a link
Reference in a new issue