tiddlywiki-plugin-dev
Version:
[](https://github.com/tiddly-gittly)
41 lines (40 loc) • 1.39 kB
JavaScript
import { init } from "./init.js";
import { runDev } from "./dev.js";
import { runTest } from "./test.js";
import { createPlugin } from "./new.js";
import { build, buildLibrary } from "./build.js";
import { publishOnlineHTML, publishOfflineHTML } from "./publish.js";
import { createProgram } from "./program.js";
const program = createProgram({
init: async (project, repo, npm) => init(project, repo, npm),
runDev: async (wiki, src, configs) => runDev(wiki, src, configs),
runTest: async (wiki, src, exclude) => runTest(wiki, src, exclude),
createPlugin: async (src) => createPlugin(src),
build: async (output, excludeFilter, srcPath) => build(output, excludeFilter, srcPath),
buildLibrary: async (output, excludeFilter, srcPath, wikiPath) => buildLibrary(output, excludeFilter, srcPath, wikiPath),
publishOnlineHTML: async (wikiPath, dist, htmlName, excludeFilter, library, srcPath, excludePlugin) => publishOnlineHTML(
wikiPath,
dist,
htmlName,
excludeFilter,
library,
srcPath,
excludePlugin
),
publishOfflineHTML: async (wikiPath, dist, htmlName, excludeFilter, library, srcPath, excludePlugin) => publishOfflineHTML(
wikiPath,
dist,
htmlName,
excludeFilter,
library,
srcPath,
excludePlugin
)
});
program.parse();
var main_default = program;
export {
main_default as default,
program
};