Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96671278
release.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 29, 16:55
Size
657 B
Mime Type
text/x-shellscript
Expires
Tue, Dec 31, 16:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23209009
Attached To
R2664 SHRINE MedCo Fork
release.sh
View Options
#!/bin/bash
# script for creating a zip and tarball for inclusion in node
unset
CDPATH
set
-e
rm -rf release *.tgz
||
true
mkdir release
node ./cli.js pack --loglevel error >/dev/null
mv *.tgz release
cd
release
tar xzf *.tgz
mkdir node_modules
mv package node_modules/npm
# make the zip for windows users
cp node_modules/npm/bin/*.cmd .
zipname
=
npm-
$(
node ../cli.js -v
)
.zip
zip -q -9 -r -X
"$zipname"
*.cmd node_modules
# make the tar for node's deps
cd
node_modules
tarname
=
npm-
$(
node ../../cli.js -v
)
.tgz
tar czf
"$tarname"
npm
cd
..
mv
"node_modules/$tarname"
.
rm -rf *.cmd
rm -rf node_modules
echo
"release/$tarname"
echo
"release/$zipname"
Event Timeline
Log In to Comment