[Pkg-javascript-commits] [leaflet] 21/40: build script fixes

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:33:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit c64f31a3d8c55d2f3d4421b08bc459e66edc35f5
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Fri May 23 11:33:12 2014 +0300

    build script fixes
---
 build/bower.json     |  2 +-
 build/component.json |  2 +-
 build/publish.sh     | 18 ++++++------------
 3 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/build/bower.json b/build/bower.json
index 7dde378..615371c 100644
--- a/build/bower.json
+++ b/build/bower.json
@@ -20,4 +20,4 @@
     "src",
     "build"
   ]
-}
\ No newline at end of file
+}
diff --git a/build/component.json b/build/component.json
index 7b9d53b..a90e339 100644
--- a/build/component.json
+++ b/build/component.json
@@ -16,4 +16,4 @@
     "dist/leaflet.css"
   ],
   "main": "dist/leaflet-src.js"
-}
\ No newline at end of file
+}
diff --git a/build/publish.sh b/build/publish.sh
index bbac38a..8325f52 100755
--- a/build/publish.sh
+++ b/build/publish.sh
@@ -1,11 +1,8 @@
 #!/bin/bash
 
-#make sure deps are up to date
-rm -r node_modules
-npm install
-
 # get current version
- VERSION=$(node --eval "console.log(require('./package.json').version);")
+VERSION=$(node --eval "console.log(require('./package.json').version);")
+
 # Build
 git checkout -b build
 npm test || exit 1
@@ -17,15 +14,12 @@ copyfiles -u 1 build/*.json ./
 tin -v $VERSION
 git add component.json bower.json -f
 
-git commit -m "build $VERSION"
+git commit -m "build v$VERSION"
 
 # Tag and push
-echo git tag $VERSION
-# git push --tags git at github.com:leaflet/leaflet.git $VERSION
-
-# # # Publish JS modules
-# npm publish
+echo git tag v$VERSION
+git push --tags
 
 # # # Cleanup
 # git checkout master
-# git branch -D build
\ No newline at end of file
+# git branch -D build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list