Merge pull request #32 from tschaub/updates

Remove dependency on Lodash.
This commit is contained in:
Tim Schaub 2015-12-02 07:56:05 -08:00
commit a87c9e42b2
3 changed files with 13 additions and 6 deletions

View file

@ -1,5 +1,7 @@
before_install: npm install -g npm
language: node_js
node_js:
- "0.10"
- "0.8"
- "4"
branches:
only:
- master

View file

@ -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');
@ -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()) {

View file

@ -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"