@bafif/foja 0.0.0-stage → 0.1.0

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.es.md ADDED
@@ -0,0 +1,40 @@
1
+ # foja
2
+
3
+ *[English](https://github.com/bafif/foja/blob/main/packages/cli/README.md) · Español*
4
+
5
+ La línea de comandos de [Foja](https://github.com/bafif/foja), un editor de CV sobre Typst: arma
6
+ CV a partir de un proyecto de Foja (`.foja.json`, hecho en el editor o a mano) con los mismos estilos de
7
+ Typst que usa el editor web.
8
+
9
+ Se instala con `npm install -g @bafif/foja`, que trae el comando `foja`, y `npx @bafif/foja build …` la corre sin
10
+ instalarla. Desde una copia del repositorio, `npm run foja -- build …` la corre desde su código fuente
11
+ ([cómo](https://github.com/bafif/foja/blob/main/docs/development.es.md)).
12
+
13
+ ```sh
14
+ foja build my.foja.json # un PDF por perfil
15
+ foja build my.foja.json --profile dev --format pdf --format docx --out out
16
+ foja build my.foja.json --format all # todos los formatos en un solo .zip
17
+ foja validate my.foja.json
18
+ foja import plantilla.zip my.foja.json # una plantilla de Typst o LaTeX: su contenido y su aspecto
19
+ foja import cv.json my.foja.json # un CV en JSON Resume
20
+ ```
21
+
22
+ `import` lee una plantilla de CV de Typst o de LaTeX (`.typ`, `.tex`, `.zip` o `.tar.gz`) con reglas fijas, sin IA: su
23
+ contenido de ejemplo pasa a ser un perfil y su aspecto un estilo propio; `--into` los suma a un proyecto que ya existe y
24
+ `--no-style` deja afuera el aspecto. Toma la propuesta de las reglas tal como sale; el editor la muestra antes para
25
+ revisarla. Este comando no tiene LaTeX: un perfil con una plantilla LaTeX da su `.tex` lleno (`--format tex`) y no PDF.
26
+ Un `.json` es un CV en [JSON Resume](https://jsonresume.org): sus entradas pasan al banco y queda un perfil con sus
27
+ secciones.
28
+
29
+ Formatos: `pdf`, `svg`, `typ` (un `.zip` que compila con `typst compile` a secas), `tex` (LaTeX), `md`, `json`,
30
+ `jsonresume` (el perfil en JSON Resume; avisa lo que no tiene lugar ahí), `docx` (Word), `all`. Necesita Node 24 o
31
+ posterior. Los mensajes y `--help` salen en español si el sistema está en español, y en inglés si no; `--lang es` o
32
+ `--lang en` elige uno.
33
+
34
+ El formato del proyecto está descrito en su JSON Schema
35
+ ([`project.schema.json`](https://github.com/bafif/foja/blob/main/packages/core/schema/project.schema.json));
36
+ los estilos propios, escritos en Typst, se explican en
37
+ [`docs/templates.es.md`](https://github.com/bafif/foja/blob/main/docs/templates.es.md).
38
+
39
+ Licencia: GPL-3.0. Las fuentes incluidas conservan sus propias licencias (archivos al lado de ellas en
40
+ `dist/template/fonts`).
package/README.md CHANGED
@@ -1,3 +1,40 @@
1
- # Temporary Holding Version
1
+ # foja
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
+ *English · [Español](https://github.com/bafif/foja/blob/main/packages/cli/README.es.md)*
4
+
5
+ The command line of [Foja](https://github.com/bafif/foja), a CV editor on Typst: builds CVs
6
+ from a Foja project (`.foja.json`, made in the editor or by hand) with the same Typst styles the
7
+ web editor uses.
8
+
9
+ Install it with `npm install -g @bafif/foja`, which brings the `foja` command; `npx @bafif/foja build …` runs it
10
+ without installing. From a clone of the repository, `npm run foja -- build …` runs it from its sources
11
+ ([how](https://github.com/bafif/foja/blob/main/docs/development.md)).
12
+
13
+ ```sh
14
+ foja build my.foja.json # a PDF per profile
15
+ foja build my.foja.json --profile dev --format pdf --format docx --out out
16
+ foja build my.foja.json --format all # every format in one .zip
17
+ foja validate my.foja.json
18
+ foja import template.zip my.foja.json # a Typst or LaTeX template: its content and its look
19
+ foja import resume.json my.foja.json # a CV in JSON Resume
20
+ ```
21
+
22
+ `import` reads a Typst or LaTeX CV template (`.typ`, `.tex`, `.zip` or `.tar.gz`) with fixed rules, no AI: its
23
+ sample content becomes a profile and its look a style of your own; `--into` adds them to an
24
+ existing project, `--no-style` leaves the look out. It takes the rules' proposal as it is; the
25
+ editor shows it for review first. This command has no LaTeX: a profile with a LaTeX template gets
26
+ its filled `.tex` (`--format tex`) and no PDF. A `.json` is a CV in [JSON Resume](https://jsonresume.org): its
27
+ entries go to the bank, with a profile that has its sections.
28
+
29
+ Formats: `pdf`, `svg`, `typ` (a `.zip` that compiles with plain `typst compile`), `tex` (LaTeX), `md`, `json`,
30
+ `jsonresume` (the profile in JSON Resume; it says what has no place there), `docx` (Word), `all`. Needs Node 24 or
31
+ later. Messages and `--help` come in Spanish when the system's language is Spanish and in English otherwise; `--lang es`
32
+ or `--lang en` picks one.
33
+
34
+ The project format is described by its JSON Schema
35
+ ([`project.schema.json`](https://github.com/bafif/foja/blob/main/packages/core/schema/project.schema.json));
36
+ styles of your own, written in Typst, are explained in
37
+ [`docs/templates.md`](https://github.com/bafif/foja/blob/main/docs/templates.md).
38
+
39
+ Licence: GPL-3.0. The bundled fonts keep their own licences (files next to them in
40
+ `dist/template/fonts`).