Skip to content

Commit

Permalink
8.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tycrek committed Dec 4, 2024
1 parent d1d38fc commit d2e32c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tycrek/pagery",
"license": "ISC",
"version": "8.1.0",
"version": "8.1.1",
"exports": "./src/Pagery.ts",
"tasks": {
"test:blank": "deno run -A src/Pagery.ts",
Expand Down
18 changes: 14 additions & 4 deletions src/Pagery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,25 @@ if (import.meta.main) {
/**
* Default generator: produces both Pug and CSS.
*/
export default (options: Options) => generate(processArgs(options));
export default (options: Options): Promise<{
pug: { [key: string]: string };
css: { [key: string]: string };
}> => generate(processArgs(options));

/**
* CSS generator
*/
export const generateCss = (options: Options) => genCss(processArgs(options));
export const generateCss = (options: Options): Promise<
{ [key: string]: string }
> => genCss(processArgs(options));

/**
* Pug generator
*/
export const generatePug = (options: Options, userData: { [key: string]: JSON }, cssData: { [key: string]: string }) =>
genPug(processArgs(options), userData, cssData);
export const generatePug = (
options: Options,
userData: { [key: string]: JSON },
cssData: { [key: string]: string },
): Promise<
{ [key: string]: string }
> => genPug(processArgs(options), userData, cssData);

0 comments on commit d2e32c8

Please sign in to comment.