mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-19 06:33:56 +09:00
All about that wizard
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
const package = require('./package.json');
|
||||
|
||||
const wizard = require('./src/wizard');
|
||||
const parser = require('./src/parser');
|
||||
const writer = require('./src/writer');
|
||||
|
||||
(async () => {
|
||||
console.log('Starting ' + package.name + ' v' + package.version + '...');
|
||||
config = wizard.getConfig();
|
||||
let config = await wizard.getConfig();
|
||||
let posts = await parser.parseFilePromise(config)
|
||||
await writer.writeFilesPromise(posts, config);
|
||||
})().catch(ex => {
|
||||
|
||||
Reference in New Issue
Block a user