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

View File

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

View File

@ -150,7 +150,6 @@
</footer> </footer>
<!-- Deps --> <!-- Deps -->
<script src="./bower_components/bluebird/js/browser/bluebird.js"></script>
<script src="./bower_components/mustache/mustache.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/markdown-it/dist/markdown-it.js"></script>
<script src="./bower_components/jade/jade.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", "homepage": "https://git.coolaj86.com/coolaj86/deardesi.js",
"dependencies": { "dependencies": {
"bluebird": "^2.6.4",
"body-parser": "^1.10.1", "body-parser": "^1.10.1",
"cli": "^0.6.5", "cli": "^0.6.5",
"compression": "^1.3.0", "compression": "^1.3.0",
"connect": "^3.3.4", "connect": "^3.3.4",
"connect-query": "^0.2.0", "connect-query": "^0.2.0",
"connect-send-json": "^1.0.0", "connect-send-json": "^1.0.0",
"desirae": "^0.11.4", "desirae": "^0.12.0",
"desirae-datamap-ruhoh": "v1.0.6", "desirae-datamap-ruhoh": "v1.0.6",
"foreachasync": "^5.0.5", "foreachasync": "^5.0.5",
"fs.extra": "^1.3.0",
"jade": "^1.9.1", "jade": "^1.9.1",
"node-uuid": "^1.4.2", "node-uuid": "^1.4.2",
"request": "^2.51.0", "request": "^2.88.2",
"require-yaml": "0.0.1", "require-yaml": "0.0.1",
"serve-static": "^1.8.0", "serve-static": "^1.8.0",
"tar": "^1.0.3" "tar": "^1.0.3"