Skip to content

Commit

Permalink
moved away from grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Jun 3, 2014
1 parent 4284c4f commit 948e68d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .dntrc
Expand Up @@ -10,7 +10,7 @@
cd /dnt/ && \
npm install && \
node_modules/.bin/node-gyp --nodedir /usr/src/node/ rebuild && \
node_modules/.bin/grunt && \
node_modules/.bin/coffee -o lib/ -c src/ && \
node_modules/.bin/tape test/runner.js; \
"
COPY_CMD="rsync -aAXx /dnt-src/ /dnt/"
Expand Down
66 changes: 0 additions & 66 deletions Gruntfile.coffee

This file was deleted.

12 changes: 7 additions & 5 deletions install.js
@@ -1,7 +1,9 @@
var async = require("async"),
path = require('path'),
fs = require('fs'),
download = require('download');
var async = require("async")
, path = require('path')
, fs = require('fs')
, request = require('request')
, zlib = require('zlib')
, tar = require('tar');

require('shelljs/global');

Expand Down Expand Up @@ -34,7 +36,7 @@ async.series([
console.log("[gitteh] ...via tarball");
var libgit2Version = "v0.19.0";
var url = "https://github.com/libgit2/libgit2/tarball/" + libgit2Version;
download({ url: url}, 'libgit2Dir', { extract: true }).on('end', cb);
request.get(url).pipe(zlib.createUnzip()).pipe(tar.Extract({path: libgit2Dir})).on('end', cb);
}
},
function(cb) {
Expand Down
18 changes: 7 additions & 11 deletions package.json
Expand Up @@ -14,30 +14,26 @@
"dependencies": {
"async": "~0.2.10",
"shelljs": "~0.2.6",
"download": "~0.1.7",
"bindings": "~1.1.1",
"nan": "~1.0.0"
"nan": "~1.0.0",
"tar": "~0.1.19",
"request": "~2.36.0"
},
"devDependencies": {
"coffee-script": "~1.3.3",
"grunt": "~0.4.4",
"grunt-cli": "~0.1.13",
"grunt-coffeelint": "0.0.10",
"grunt-contrib-coffee": "~0.10.1",
"grunt-contrib-jshint": "~0.10.0",
"grunt-jscs-checker": "~0.4.1",
"load-grunt-tasks": "~0.4.0",
"tape": "~2.13.1",
"temp": "~0.7.0",
"wrench": "~1.3.9"
"wrench": "~1.3.9",
"node-gyp": "~0.13.1"
},
"repository": {
"type": "git",
"url": "https://github.com/libgit2/node-gitteh.git"
},
"scripts": {
"lint": "jshint lib/",
"install": "node install.js",
"postinstall": "node-gyp rebuild && ./node_modules/.bin/grunt build",
"postinstall": "node-gyp rebuild && ./node_modules/.bin/coffee -o lib/ -c src/",
"test": "./node_modules/.bin/tape test/runner.js"
},
"main": "./lib/gitteh",
Expand Down

0 comments on commit 948e68d

Please sign in to comment.