update deps

This commit is contained in:
AJ ONeal 2020-11-08 20:40:18 -07:00
parent b1bb785739
commit b5c402f3b0
5 changed files with 1301 additions and 23 deletions

View File

@ -1,19 +1,18 @@
#!/usr/bin/env node
"use strict";
var PromiseA = require("bluebird"),
fs = PromiseA.promisifyAll(require("fs")),
fsx = PromiseA.promisifyAll(require("fs.extra")),
tar = require("tar"),
//, requestAsync = PromiseA.promisify(require('request'))
request = PromiseA.promisifyAll(require("request")),
forEachAsync = require("foreachasync").forEachAsync,
//, spawn = require('child_process').spawn
path = require("path"),
cli = require("cli"),
UUID = require("node-uuid"),
Desi,
zlib = require("zlib");
var existsSync = require("fs").existsSync;
var fs = require("fs").promises;
var tar = require("tar");
var request = require("request");
var forEachAsync = require("foreachasync").forEachAsync;
//; spawn = require('child_process').spawn
var path = require("path");
var cli = require("cli");
var UUID = require("node-uuid");
var Desi;
var zlib = require("zlib");
cli.parse({
blogdir: ["d", "Where your blog is, i.e. ~/path/to/blog", "string", "./"],
//, output: ['o', 'name of output directory within ~/path/to/blog', 'string', './compiled']
@ -346,10 +345,10 @@ function initialize(displayPath, blogdir) {
return;
})
.then(function () {
return fsx.mkdirp(blogdir);
return fs.mkdir(blogdir, { recursive: true });
})
.then(function () {
return new PromiseA(function (resolve, reject) {
return new Promise(function (resolve, reject) {
var t = tar.Extract({ path: blogdir, strip: 1 }),
gunzip = zlib.createGunzip();
console.info("Downloading blog template...", displayPath);
@ -380,7 +379,7 @@ function initialize(displayPath, blogdir) {
];
return forEachAsync(themes, function (theme) {
return new PromiseA(function (resolve, reject) {
return new Promise(function (resolve, reject) {
var t = tar.Extract({
path: path.join(blogdir, "themes", theme.name),
strip: 1,
@ -428,7 +427,7 @@ cli.main(function (args, options) {
return;
}
if (!fs.existsSync(path.join(blogdir, "site.yml"))) {
if (!existsSync(path.join(blogdir, "site.yml"))) {
console.error("Usage: desi [serve|init|post] -d ~/path/to/blog");
console.error(
"(if ~/path/to/blog doesn't yet exist or doesn't have config.yml, site.yml, etc, " +

View File

@ -14,7 +14,7 @@
"platform",
"browser"
],
"license": "Apache2",
"license": "MPL-2.0",
"homepage": "http://github.com/DearDesi/deardesi",
"ignore": ["**/.*", "node_modules", "bower_components", "test", "tests"],
"dependencies": {

View File

@ -150,7 +150,6 @@
</footer>
<!-- Deps -->
<script src="./bower_components/bluebird/js/browser/bluebird.js"></script>
<script src="./bower_components/mustache/mustache.js"></script>
<script src="./bower_components/markdown-it/dist/markdown-it.js"></script>
<script src="./bower_components/jade/jade.js"></script>

1282
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -38,20 +38,18 @@
},
"homepage": "https://git.coolaj86.com/coolaj86/deardesi.js",
"dependencies": {
"bluebird": "^2.6.4",
"body-parser": "^1.10.1",
"cli": "^0.6.5",
"compression": "^1.3.0",
"connect": "^3.3.4",
"connect-query": "^0.2.0",
"connect-send-json": "^1.0.0",
"desirae": "^0.11.4",
"desirae": "^0.12.0",
"desirae-datamap-ruhoh": "v1.0.6",
"foreachasync": "^5.0.5",
"fs.extra": "^1.3.0",
"jade": "^1.9.1",
"node-uuid": "^1.4.2",
"request": "^2.51.0",
"request": "^2.88.2",
"require-yaml": "0.0.1",
"serve-static": "^1.8.0",
"tar": "^1.0.3"