@yakuzaa/jade-compiler 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/README.md +41 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @yakuzaa/jade-compiler
2
+
3
+ Compilador da **Jade DSL** — transforma arquivos `.jd` em WebAssembly + JavaScript.
4
+
5
+ > Para criar um projeto Jade, use [`npm create jade@latest`](https://www.npmjs.com/package/create-jade) — este pacote é para uso programático e integração com tooling.
6
+
7
+ ## Uso via CLI (`jadec`)
8
+
9
+ ```bash
10
+ npx @yakuzaa/jade-compiler src/app.jd # compila
11
+ npx @yakuzaa/jade-compiler src/app.jd --check # só verifica erros
12
+ npx @yakuzaa/jade-compiler src/app.jd --lint # avisos de estilo
13
+ npx @yakuzaa/jade-compiler src/app.jd --format-write # formata
14
+ ```
15
+
16
+ ## Uso programático
17
+
18
+ ```js
19
+ import { Lexer } from '@yakuzaa/jade-compiler/lexer';
20
+ import { Parser } from '@yakuzaa/jade-compiler/parser';
21
+ import { TypeChecker } from '@yakuzaa/jade-compiler/semantic';
22
+ import { IRGenerator } from '@yakuzaa/jade-compiler/codegen';
23
+
24
+ const tokens = new Lexer(source).tokenizar();
25
+ const { ast } = new Parser(tokens).parse();
26
+ const erros = new TypeChecker().verificar(ast);
27
+ if (erros.length === 0) {
28
+ const ir = new IRGenerator().gerar(ast);
29
+ }
30
+ ```
31
+
32
+ ## Casos de uso
33
+
34
+ - **Plugins de build** — integrar Jade em Vite, Webpack, Rollup
35
+ - **CI/CD** — verificar arquivos `.jd` em pipelines
36
+ - **Editores** — LSP, diagnósticos em tempo real
37
+ - **Tooling personalizado** — transformações de AST, geração de código
38
+
39
+ ## Documentação completa
40
+
41
+ → https://gabrielsymb.github.io/jade-language
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakuzaa/jade-compiler",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Compilador da Jade DSL — linguagem empresarial em português compilada para WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",