@yakuzaa/jade 0.1.8 → 0.1.10
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 +41 -20
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,34 +1,55 @@
|
|
|
1
1
|
# @yakuzaa/jade
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Compilador, runtime e CLI da **Jade DSL** — linguagem empresarial em português que compila para WebAssembly.
|
|
4
|
+
|
|
5
|
+
## Criar um projeto
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
|
-
npm
|
|
8
|
+
npm create jade@latest meu-projeto
|
|
9
|
+
cd meu-projeto
|
|
10
|
+
npm run compilar
|
|
7
11
|
```
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
|
14
|
-
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
Isso é tudo. O projeto já vem com estrutura completa, exemplos funcionais e dependências instaladas.
|
|
14
|
+
|
|
15
|
+
## Comandos disponíveis no projeto
|
|
16
|
+
|
|
17
|
+
| Comando | O que faz |
|
|
18
|
+
|---------|-----------|
|
|
19
|
+
| `npm run compilar` | Compila `src/app.jd` → `dist/` |
|
|
20
|
+
| `npm run verificar` | Verifica erros sem gerar arquivos |
|
|
21
|
+
| `npm run formatar` | Formata o código automaticamente |
|
|
22
|
+
| `npm run lint` | Analisa estilo e boas práticas |
|
|
23
|
+
| `npm run servir` | Servidor local para testar no browser |
|
|
24
|
+
|
|
25
|
+
## Exemplo de código
|
|
26
|
+
|
|
27
|
+
```jd
|
|
28
|
+
entidade Produto
|
|
29
|
+
id: id
|
|
30
|
+
nome: texto
|
|
31
|
+
preco: moeda
|
|
32
|
+
estoque: numero
|
|
33
|
+
fim
|
|
34
|
+
|
|
35
|
+
tela ListaProdutos "Produtos"
|
|
36
|
+
tabela Produtos
|
|
37
|
+
entidade: Produto
|
|
38
|
+
filtravel: verdadeiro
|
|
39
|
+
ordenavel: verdadeiro
|
|
40
|
+
paginacao: 20
|
|
41
|
+
fim
|
|
42
|
+
fim
|
|
25
43
|
```
|
|
26
44
|
|
|
27
45
|
## Extensão VS Code
|
|
28
46
|
|
|
29
|
-
|
|
47
|
+
Syntax highlighting, autocomplete e diagnósticos em tempo real:
|
|
30
48
|
|
|
31
|
-
Ou via linha de comando:
|
|
32
49
|
```bash
|
|
33
50
|
code --install-extension yakuzaa.jade-lang-vscode
|
|
34
51
|
```
|
|
52
|
+
|
|
53
|
+
## Documentação completa
|
|
54
|
+
|
|
55
|
+
→ https://gabrielsymb.github.io/jade-language
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yakuzaa/jade",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Jade DSL — linguagem empresarial em português compilada para WebAssembly. Instala compilador + runtime + CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"postinstall": "node postinstall.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@yakuzaa/jade-compiler": "^0.1.
|
|
20
|
+
"@yakuzaa/jade-compiler": "^0.1.13",
|
|
21
21
|
"@yakuzaa/jade-runtime": "^0.1.8"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|