@promovaweb/ebookfy 0.0.0-stage → 0.1.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/README.md CHANGED
@@ -1,3 +1,48 @@
1
- # Temporary Holding Version
1
+ <p align="center"><img src="brand/logo/icon.png" width="80" alt="Símbolo do Ebookfy"></p>
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # Ebookfy
4
+
5
+ O Ebookfy organiza um livro em capítulos Markdown e gera PDF, EPUB e MOBI a partir do mesmo manuscrito. Na interface do terminal, você vê a ficha editorial e a sequência de leitura da edição aberta.
6
+
7
+ ## Instalação
8
+
9
+ Com Node.js 22 ou superior, instale o CLI pelo npm. O pacote inclui o runtime Bun. Para compilar EPUB, instale o Pandoc. Para PDF, acrescente o WeasyPrint. Para MOBI, instale também o Calibre com o comando `ebook-convert` disponível no terminal.
10
+
11
+ ```bash
12
+ npm install -g @promovaweb/ebookfy
13
+ ebookfy --version
14
+ ```
15
+
16
+ ## Primeiro livro
17
+
18
+ Use o template privado com acesso ao repositório da organização. A primeira execução pode usar o livro de exemplo como está.
19
+
20
+ ```bash
21
+ gh repo clone promovaweb/ebookfy-starter-kit meu-livro
22
+ cd meu-livro
23
+ ebookfy info
24
+ ebookfy
25
+ ebookfy build
26
+ ```
27
+
28
+ Edite `ebook.toml` na raiz para definir autoria, capa, ordem dos capítulos, pasta de saída e formatos. Cada capítulo tem seu próprio `CHAPTER.md` e pode guardar figuras na pasta `imagens/` ao lado do texto. O CLI imprime os caminhos dos arquivos gerados.
29
+
30
+ ![TUI do Ebookfy com a ficha editorial e o sumário do manual](manual/07-terminal/imagens/tui-livro.png)
31
+
32
+ ## Skills e documentação
33
+
34
+ O starter kit já traz as skills numeradas. Para instalá-las em outro projeto, execute o comando na pasta do livro com acesso Git ao framework.
35
+
36
+ ```bash
37
+ npx skills add promovaweb/ebookfy -a universal -a claude-code -a codex -a opencode -y
38
+ ```
39
+
40
+ Consulte o [manual editável](manual/01-primeira-edicao/CHAPTER.md), a [documentação completa](docs/README.md) ou baixe o [PDF](ebook/manual-ebookfy-v0.1.1.pdf), o [EPUB](ebook/manual-ebookfy-v0.1.1.epub) e o [MOBI](ebook/manual-ebookfy-v0.1.1.mobi). Em automações, use `ebookfy info --json`. A referência embutida está disponível com `ebookfy --skill`.
41
+
42
+ ## Feito com
43
+
44
+ O aplicativo deriva do [Termfy Starter Kit](https://github.com/promovaweb/termfy-starter-kit) e usa o [Termfy](https://github.com/promovaweb/termfy) para oferecer CLI, TUI e MCP no mesmo comando.
45
+
46
+ ## Comunidade e contribuição
47
+
48
+ Acompanhe as [versões](CHANGELOG.md), consulte o [guia de contribuição](CONTRIBUTING.md) ou participe do [Discord da Promovaweb](https://promovaweb.com/discord). Conheça os [planos da Promovaweb](https://promovaweb.com/planos).
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ /** Inicia o aplicativo Termfy com o runtime da plataforma fornecido pelo npm. */
3
+ const { spawnSync } = require("node:child_process");
4
+ const { join } = require("node:path");
5
+
6
+ const windows = process.platform === "win32";
7
+ const sistema = windows ? "windows" : process.platform;
8
+ const arquitetura = process.arch === "arm64" ? "aarch64" : process.arch;
9
+ const musl = sistema === "linux" && !process.report.getReport().header.glibcVersionRuntime;
10
+ const pacote = "@oven/bun-" + sistema + "-" + arquitetura + (musl ? "-musl" : "");
11
+ let runtime = "bun";
12
+ try {
13
+ runtime = require.resolve(pacote + "/bin/" + (windows ? "bun.exe" : "bun"));
14
+ } catch {
15
+ // Quem instala sem dependências opcionais pode usar o Bun disponível no PATH.
16
+ }
17
+ const resultado = spawnSync(runtime, [join(__dirname, "../dist/bin/main.js"), ...process.argv.slice(2)], {stdio:"inherit"});
18
+ if (resultado.error) console.error("Falha ao iniciar o Bun: " + resultado.error.message);
19
+ if (resultado.signal) process.kill(process.pid, resultado.signal);
20
+ process.exitCode = resultado.status ?? 1;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 64 64" role="img"><title>Ebookfy</title><desc>Livro aberto com marcador de página.</desc><path d="M7 14q14-3 25 5 11-8 25-5v35q-14-3-25 5-11-8-25-5z" fill="none" stroke="#C6F4ED" stroke-width="4" stroke-linejoin="round"/><path d="M32 20v32" stroke="#C6F4ED" stroke-width="3"/><path d="M40 14q4-2 8-2v21l-4-3-4 5z" fill="#FFB454"/></svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 64 64" role="img"><title>Ebookfy</title><desc>Livro aberto com marcador de página.</desc><path d="M7 14q14-3 25 5 11-8 25-5v35q-14-3-25 5-11-8-25-5z" fill="none" stroke="#103742" stroke-width="4" stroke-linejoin="round"/><path d="M32 20v32" stroke="#103742" stroke-width="3"/><path d="M40 14q4-2 8-2v21l-4-3-4 5z" fill="#97500B"/></svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 64 64" role="img"><title>Ebookfy</title><desc>Livro aberto com marcador de página.</desc><rect width="64" height="64" rx="12" fill="#00161E"/><path d="M7 14q14-3 25 5 11-8 25-5v35q-14-3-25 5-11-8-25-5z" fill="none" stroke="#C6F4ED" stroke-width="4" stroke-linejoin="round"/><path d="M32 20v32" stroke="#C6F4ED" stroke-width="3"/><path d="M40 14q4-2 8-2v21l-4-3-4 5z" fill="#FFB454"/></svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="850" height="320" viewBox="0 0 170 64" role="img"><title>Ebookfy</title><desc>Livro aberto com marcador de página.</desc><path d="M7 14q14-3 25 5 11-8 25-5v35q-14-3-25 5-11-8-25-5z" fill="none" stroke="#C6F4ED" stroke-width="4" stroke-linejoin="round"/><path d="M32 20v32" stroke="#C6F4ED" stroke-width="3"/><path d="M40 14q4-2 8-2v21l-4-3-4 5z" fill="#FFB454"/><text x="69" y="42" font-family="DejaVu Sans" font-weight="bold" font-size="26" fill="#C6F4ED">Ebookfy</text></svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="850" height="320" viewBox="0 0 170 64" role="img"><title>Ebookfy</title><desc>Livro aberto com marcador de página.</desc><path d="M7 14q14-3 25 5 11-8 25-5v35q-14-3-25 5-11-8-25-5z" fill="none" stroke="#103742" stroke-width="4" stroke-linejoin="round"/><path d="M32 20v32" stroke="#103742" stroke-width="3"/><path d="M40 14q4-2 8-2v21l-4-3-4 5z" fill="#97500B"/><text x="69" y="42" font-family="DejaVu Sans" font-weight="bold" font-size="26" fill="#103742">Ebookfy</text></svg>