Update update_deps.js for xmldom
This commit is contained in:
parent
3b703dad56
commit
fb41c6ce4e
4 changed files with 60 additions and 127 deletions
|
|
@ -204,7 +204,24 @@ var deps = {
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
xmldom: {
|
||||
fetch: function() {
|
||||
var rootHref = "https://raw.githubusercontent.com/iDeBugger/xmldom/master/"
|
||||
var fileMap = {
|
||||
"sax.js": "mode/xml/sax.js",
|
||||
"dom-parser.js": "mode/xml/dom-parser.js",
|
||||
"dom.js": "mode/xml/dom.js"
|
||||
};
|
||||
async.forEach(Object.keys(fileMap), function(x, next) {
|
||||
download(rootHref + x, function(e, d) {
|
||||
fs.writeFile(rootDir + fileMap[x], d, next)
|
||||
})
|
||||
}, function() {
|
||||
console.log("XmlDOM updating done")
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
var download = function(href, callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue