Skip to content

Commit

Permalink
Merge pull request #32 from tschaub/updates
Browse files Browse the repository at this point in the history
Remove dependency on Lodash.
  • Loading branch information
tschaub committed Dec 2, 2015
2 parents dfb7bc1 + 33849ac commit a87c9e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
before_install: npm install -g npm
language: node_js
node_js:
- "0.10"
- "0.8"
- "4"

branches:
only:
- master
10 changes: 8 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var fs = require('fs');

var Q = require('q');
var wrench = require('wrench');
var _ = require('lodash');
var glob = require('glob');

var git = require('./git');
Expand Down Expand Up @@ -73,7 +72,14 @@ exports.publish = function publish(basePath, config, done) {
};

// override defaults with any task options
var options = _.extend({}, defaults, config);
// TODO: Require Node >= 4 and use Object.assign
var options = {};
for (var d in defaults) {
options[d] = defaults[d];
}
for (var c in config) {
options[c] = config[c];
}

try {
if (!fs.statSync(basePath).isDirectory()) {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"commander": "2.9.0",
"glob": "~4.0.2",
"graceful-fs": "4.1.2",
"lodash": "~2.4.1",
"q": "1.4.1",
"q-io": "1.13.2",
"wrench": "1.5.8"
Expand Down

0 comments on commit a87c9e4

Please sign in to comment.