vowel 0.1.46 → 0.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.js +2 -78
- package/books/.votive.db +0 -0
- package/books/A.W. Tozer/The Pursuit of God.md +628 -0
- package/books/Abbe/314/201 Pre/314/201vost/Manon Lescaut.md" +1201 -0
- package/books/Abbie Farwell Brown/The Christmas Angel.md +861 -0
- package/books/Abraham Merritt/The Moon Pool.md +4958 -0
- package/books/Adalbert Stifter/Rock Crystal.md +534 -0
- package/books/Adam Seaborn/Symzonia: A Voyage of Discovery.md +848 -0
- package/books/Adam Smith/The Wealth of Nations.md +4419 -0
- package/docs-source/$features/cards.md +7 -0
- package/docs-source/$features/editing.md +7 -0
- package/docs-source/$features/emoji.md +7 -0
- package/docs-source/$features/frontmatter.md +7 -0
- package/docs-source/$features/lists.md +7 -0
- package/docs-source/$features/navigation.md +7 -0
- package/docs-source/$features/rich-previews.md +7 -0
- package/docs-source/$features/robots.md +7 -0
- package/docs-source/$features/rss.md +7 -0
- package/docs-source/$features/sitemap.md +7 -0
- package/docs-source/$features/speed.md +7 -0
- package/docs-source/$features/static.md +7 -0
- package/docs-source/$features/taxonomies.md +7 -0
- package/docs-source/.cache.json +9 -0
- package/docs-source/.obsidian/app.json +3 -0
- package/docs-source/.obsidian/appearance.json +3 -0
- package/docs-source/.obsidian/core-plugins-migration.json +30 -0
- package/docs-source/.obsidian/core-plugins.json +20 -0
- package/docs-source/.obsidian/workspace.json +168 -0
- package/docs-source/.stackblitzrc +3 -0
- package/docs-source/.votive.db +0 -0
- package/docs-source/about.md +3 -0
- package/docs-source/assets/styles.css +51 -0
- package/docs-source/blog/home.md +5 -0
- package/docs-source/blog/url-ui.md +21 -0
- package/docs-source/docs/.votive.db +0 -0
- package/docs-source/docs/deploy.md +67 -0
- package/docs-source/docs/file-structure.md +31 -0
- package/docs-source/docs/folder-settings.md +23 -0
- package/docs-source/docs/home.md +55 -0
- package/docs-source/docs/images.md +10 -0
- package/docs-source/docs/items.md +13 -0
- package/docs-source/docs/pages.md +141 -0
- package/docs-source/docs/settings.md +4 -0
- package/docs-source/docs/styling.md +34 -0
- package/docs-source/docs/taxonomies.md +37 -0
- package/docs-source/home.md +42 -0
- package/docs-source/roadmap.md +98 -0
- package/docs-source/settings.md +12 -0
- package/extractDate.js +83 -0
- package/index.js +553 -0
- package/jsconfig.json +9 -17
- package/package.json +55 -63
- package/regex.js +44 -0
- package/{src/lib/components → stylesheets}/DefaultStyles.css +5 -5
- package/utils.js +8 -0
- package/.cache.json +0 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -73
- package/.github/ISSUE_TEMPLATE/config.yml +0 -7
- package/.prettierrc +0 -8
- package/.vscode/settings.json +0 -3
- package/CHANGELOG.md +0 -79
- package/README.md +0 -29
- package/server.js +0 -87
- package/src/app.d.ts +0 -12
- package/src/app.html +0 -13
- package/src/lib/components/Breadcrumbs.svelte +0 -19
- package/src/lib/components/ConditionalWrapper.svelte +0 -10
- package/src/lib/components/DefaultStyles.svelte +0 -11
- package/src/lib/components/FrontMatterTaxonomy.svelte +0 -48
- package/src/lib/components/Frontmatter.svelte +0 -56
- package/src/lib/components/FrontmatterProperty.svelte +0 -78
- package/src/lib/components/Markdown/Image.svelte +0 -50
- package/src/lib/components/Markdown/Link.svelte +0 -19
- package/src/lib/components/Markdown/LinkPreview.svelte +0 -45
- package/src/lib/components/Markdown/Text.svelte +0 -6
- package/src/lib/components/Markdown/index.svelte +0 -147
- package/src/lib/components/Markdown/validators.js +0 -29
- package/src/lib/components/Nav.svelte +0 -40
- package/src/lib/components/NoStyles.svelte +0 -5
- package/src/lib/components/Page.svelte +0 -90
- package/src/lib/components/ResetStyles.svelte +0 -7
- package/src/lib/components/Sitemap.svelte +0 -38
- package/src/lib/components/TypographyStyles.svelte +0 -10
- package/src/lib/components/index.js +0 -12
- package/src/lib/index.js +0 -1
- package/src/lib/utilities/buildURL.js +0 -18
- package/src/lib/utilities/checkFileExists.js +0 -16
- package/src/lib/utilities/createFolderClass.js +0 -4
- package/src/lib/utilities/createPageClass.js +0 -6
- package/src/lib/utilities/getFileLabel.js +0 -35
- package/src/lib/utilities/getFolder.js +0 -16
- package/src/lib/utilities/getFolderLabel.js +0 -12
- package/src/lib/utilities/getMetadata.js +0 -46
- package/src/lib/utilities/getPage.js +0 -25
- package/src/lib/utilities/getPagesByFolder.js +0 -95
- package/src/lib/utilities/index.js +0 -22
- package/src/lib/utilities/isActiveLink.js +0 -12
- package/src/lib/utilities/isObject.js +0 -8
- package/src/lib/utilities/loadCache.js +0 -28
- package/src/lib/utilities/mutateMarkdownAST.js +0 -68
- package/src/lib/utilities/mutateMarkdownFrontmatter.js +0 -113
- package/src/lib/utilities/parseDate.js +0 -43
- package/src/lib/utilities/processMarkdownFiles.js +0 -243
- package/src/lib/utilities/readMarkdownFile.js +0 -188
- package/src/lib/utilities/regexPatterns.js +0 -12
- package/src/lib/utilities/resolveHomeDirPath.js +0 -5
- package/src/lib/utilities/sendWebmention.js +0 -34
- package/src/lib/utilities/writeCache.js +0 -14
- package/src/routes/$vowel/published.json/+server.js +0 -54
- package/src/routes/+error.svelte +0 -110
- package/src/routes/[...path]/+layout.server.js +0 -78
- package/src/routes/[...path]/+page.server.js +0 -42
- package/src/routes/[...path]/+page.svelte +0 -186
- package/src/routes/feed.xml/+server.js +0 -120
- package/src/routes/robots.txt/+server.js +0 -54
- package/src/routes/sitemap.xml/+server.js +0 -68
- package/static/favicon.png +0 -0
- package/static/styles.css +0 -0
- package/svelte.config.js +0 -30
- package/vercel.json +0 -5
- package/vite.config.js +0 -84
- /package/{src/lib/components → stylesheets}/ResetStyles.css +0 -0
- /package/{src/lib/components → stylesheets}/TypographyStyles.css +0 -0
package/bin.js
CHANGED
|
@@ -1,81 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import url from 'node:url';
|
|
6
|
-
import pc from 'picocolors';
|
|
7
|
-
import mri from 'mri';
|
|
8
|
-
import filterConsole from 'filter-console';
|
|
9
|
-
import process from 'process';
|
|
10
|
-
import readline from 'readline';
|
|
11
|
-
import logUpdate from 'log-update';
|
|
3
|
+
import init from "./index.js"
|
|
12
4
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// Directory where the module is
|
|
16
|
-
const binURL = import.meta.url;
|
|
17
|
-
const binFilePath = url.fileURLToPath(binURL);
|
|
18
|
-
const binDirName = path.dirname(binFilePath);
|
|
19
|
-
|
|
20
|
-
// Directory where the command was called
|
|
21
|
-
const homeDir = process.cwd();
|
|
22
|
-
|
|
23
|
-
const spawnArgs = ['./server.js', '--directory', homeDir];
|
|
24
|
-
if (args._.includes('build')) spawnArgs.push('--build');
|
|
25
|
-
if (args._.includes('publish')) {
|
|
26
|
-
spawnArgs.push('--build')
|
|
27
|
-
spawnArgs.push('--publish')
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
if (!args.verbose) {
|
|
31
|
-
// filterConsole(['jsconfig', 'vite', 'Vite', 'tsconfig', `--host`]);
|
|
32
|
-
console.log(`\n\n`);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Args: File to run, home directory,
|
|
36
|
-
const child = spawn('node', spawnArgs, {
|
|
37
|
-
cwd: binDirName
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
let processedFiles = 0;
|
|
41
|
-
let foundFiles = 0;
|
|
42
|
-
const std = process.stdout;
|
|
43
|
-
|
|
44
|
-
child.stdout.on('data', (data) => {
|
|
45
|
-
const message = data.toString();
|
|
46
|
-
if (message.match('fileread')) {
|
|
47
|
-
processedFiles++;
|
|
48
|
-
logUpdate(pc.green(` Files read: ${processedFiles}/${foundFiles}`));
|
|
49
|
-
} else if (message.startsWith('filesfound')) {
|
|
50
|
-
const count = Number(message.split(':').at(-1).slice(0, -1));
|
|
51
|
-
foundFiles += count;
|
|
52
|
-
} else if (message.startsWith('loaded')) {
|
|
53
|
-
logUpdate(pc.green(` Files read: ${foundFiles}/${foundFiles}`));
|
|
54
|
-
console.log(`\n\n`);
|
|
55
|
-
processedFiles = 0;
|
|
56
|
-
foundFiles = 0;
|
|
57
|
-
} else if(true) { // Toggle to true to reveal all console output
|
|
58
|
-
console.log(message)
|
|
59
|
-
} else if (message.match('http://localhost:')) {
|
|
60
|
-
const url = message.match(/http:\/\/localhost:\S+/);
|
|
61
|
-
console.log(
|
|
62
|
-
pc.bgCyan(
|
|
63
|
-
pc.bold(`
|
|
64
|
-
|
|
65
|
-
Website: ${url}
|
|
66
|
-
`)
|
|
67
|
-
)
|
|
68
|
-
);
|
|
69
|
-
console.log(`\n`);
|
|
70
|
-
} else {
|
|
71
|
-
console.log(pc.blue(data));
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
child.stderr.on('data', (data) => {
|
|
76
|
-
console.error(pc.red(data));
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
child.on('close', (code) => {
|
|
80
|
-
console.log(`child process exited with code ${code}`);
|
|
81
|
-
});
|
|
5
|
+
await init()
|
package/books/.votive.db
ADDED
|
Binary file
|