Commit graph

22 commits

Author SHA1 Message Date
Hippo
751a647a73 Gracefully fail if Ghost admin not set
This is still ungraceful, in the sense it'll fail spectacularly
later, but at least it gives us the opportunity to run the new
`setup` command first.

Where's that command, you say? Just wait for the next commit! ;-)
2020-04-26 21:11:19 +05:30
Hippo
53b0832a8c Use convict to load config settings 2020-04-24 22:20:18 +05:30
Hippo
e41358118a Move config loading to a new file
This is so that we can extend it further (by loading from more
locations, etc.)
2020-04-24 21:28:39 +05:30
Hippo
629549910d Bugfix: double-negative in directory-creation check 2020-01-03 16:04:25 +05:30
Hippo
f402fe6195 Tweak upload functions for more sensible error logging 2020-01-02 14:29:07 +05:30
Hippo
b6a8fe4e63 Upload and set featured image while pushing to Ghost
NOTE: mediumexporter also needs to be updated to download the
feature image in the first place!
2020-01-01 21:37:36 +05:30
Hippo
38b5a8ec5d Medium-to-Ghost processing: Check for title-skipping only once
If we've already skipped the title, no need to go on searching
for it again. We'll probably end up missing some subheadings or
something
2020-01-01 21:36:29 +05:30
Hippo
2131d76fd5 Load metadata in beginning of pushToGhost rather than end
So that we can refer to it in the meantime
2020-01-01 21:35:23 +05:30
Hippo
821111df5e Change upload path month to be 1-indexed instead of 0-indexed
Jan=1 and Dec=12, not Jan=0 and Dec=11. Because that's just too
confusing ;P
2020-01-01 21:33:57 +05:30
Hippo
dd79830afd Replace scissors with section-break and don't upload the image
Some publications, including Snipette, use an image in place of
section breaks. These images should be filtered out for Ghost and
replaced with a linebreak ('---') because the image will be added
later via CSS or something. Also, this means we don't have to
unnecessarily re-upload the pics multiple times and for mulitple
posts
2020-01-01 21:33:31 +05:30
Hippo
69cd1c0c7a Re-enable image uploading for push-ghost
It was disabled while debugging and we left it like that by
mistake :P
2019-12-24 22:52:50 +05:30
Hippo
8d6380069f Actually upload the post to Ghost on ghost-push! 2019-12-24 22:38:38 +05:30
Hippo
e01e510ed3 Write authors to metadata
This requires an updated version of mediumexporter, which has
been added in package.json
2019-12-24 22:37:00 +05:30
Hippo
f8da665b5b Set up Ghost Admin interface 2019-12-24 22:22:58 +05:30
Hippo
219a1aa751 Upload profile pic during user creation 2019-12-24 20:30:01 +05:30
Hippo
95f48b24ba Implement "image upload" part of push-ghost command 2019-12-24 14:50:48 +05:30
Hippo
772c9000f8 Convert test WebDAV function into an actual reusable one
Now, if we want to upload something, we know whom to call ;-)
2019-12-24 14:50:13 +05:30
Hippo
2e9db3245f Implement test WebDAV function 2019-12-19 17:50:24 +05:30
Hippo
770dbb0850 Implement "fetch-medium" function
No processing yet, but at least we get the post and metadata in
a standard format
2019-12-10 18:15:09 +05:30
Hippo
ccce3dc172 Implement basic fetchFromMedium command 2019-10-11 16:25:52 +05:30
Hippo
bafc64fb5b Implement basic "create-user" functions (outputs JSON) 2019-10-09 16:17:37 +05:30
Hippo
1a6d7a8df3 Initial commit with skeleton CLI tool 2019-10-06 19:27:08 +05:30