Skip to content

Commit 36b972d

Browse files
committed
add bower.json, release scripts
1 parent d8ff3c9 commit 36b972d

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

bower.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "bacon-jquery-bindings",
3+
"version": "0.0.1",
4+
"main": "dist/Bacon.JQuery.Bindings.js"
5+
}

release

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash -e
2+
3+
if [ -z $1 ]; then
4+
echo "usage: release <version>"
5+
exit 1
6+
fi
7+
version=$1
8+
files="component.json package.json bower.json"
9+
echo "Releasing with version $version"
10+
11+
echo "Pulling from origin"
12+
git pull --rebase origin master
13+
14+
echo "Building"
15+
npm install
16+
npm test
17+
./grunt
18+
19+
echo "Updating files"
20+
sed -i "" 's/\("version".*:.*\)".*"/\1"'$version'"/' $files
21+
22+
echo "Commit and tag"
23+
git add .
24+
git commit -m "release $version"
25+
git tag $version
26+
27+
echo "Push to origin/master"
28+
git push origin master
29+
git push --tags origin master
30+
31+
echo "Publish to npm -- SKIPPING FOR NOW"
32+
#npm publish
33+
34+
echo "DONE!"

version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cat package.json|grep version|sed 's/.*:.*"\(.*\)".*/\1/'

0 commit comments

Comments
 (0)