mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2025-03-14 06:29:51 -04:00
Merge pull request #32 from tschaub/updates
Remove dependency on Lodash.
This commit is contained in:
commit
a87c9e42b2
3 changed files with 13 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
|||
before_install: npm install -g npm
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.8"
|
||||
- "4"
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
|
10
lib/index.js
10
lib/index.js
|
@ -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()) {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue