diff --git a/README.md b/README.md index 97236f5..20a4345 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,10 @@ Zeppelin is a collaborative data analytic and visualization tool for distributed 1. NodeJS with npm 2. Bower -You can used - * bower install - * npm install +Run + * `npm install` first + * `bower install` then + This will Download all the dependencies including node js and npm ### Build the application diff --git a/bower b/bower old mode 100644 new mode 100755 index ed00320..2bea1c3 --- a/bower +++ b/bower @@ -14,4 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. # -"node/node" "./node_modules/bower/bin/bower" "$@" +node="node/node" + +if hash "node" 2>/dev/null ; then + node="node" +fi +"${node}" "./node_modules/bower/bin/bower" "$@" diff --git a/grunt b/grunt old mode 100644 new mode 100755 index 759cae7..af198ed --- a/grunt +++ b/grunt @@ -14,5 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # -"node/node" "./node_modules/.bin/grunt" "$@" +node="node/node" + +if hash "node" 2>/dev/null ; then + node="node" +fi +"${node}" "./node_modules/.bin/grunt" "$@" diff --git a/package.json b/package.json old mode 100755 new mode 100644 index 0df9d2a..0eeeb1a --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "devDependencies": { "grunt": "^0.4.5", "grunt-autoprefixer": "^3.0.0", + "grunt-cli": "^0.1.13", "grunt-concurrent": "^1.0.0", "grunt-contrib-clean": "^0.6.0", "grunt-contrib-concat": "^0.5.0", @@ -29,7 +30,8 @@ "karma-jasmine": "*", "karma-phantomjs-launcher": "*", "load-grunt-tasks": "^3.1.0", - "time-grunt": "^1.0.0" + "time-grunt": "^1.0.0", + "bower": "1.4.1" }, "engines": { "node": ">=0.10.0" @@ -37,4 +39,4 @@ "scripts": { "test": "grunt test" } -} \ No newline at end of file +}