@aliens-syndicate/cli 0.1.10 → 0.1.11

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 (81) hide show
  1. package/README.es-ES.md +9 -11
  2. package/README.md +9 -11
  3. package/README.pt-BR.md +9 -11
  4. package/README.zh-CN.md +10 -12
  5. package/package.json +3 -2
  6. package/tools/build.mjs +15 -7
  7. package/tools/cli-shared.mjs +11 -2
  8. package/tools/cli.mjs +1 -0
  9. package/tools/create.mjs +14 -4
  10. package/tools/playground/client.mjs +500 -0
  11. package/tools/playground/examples/computed/app.markup +3 -0
  12. package/tools/playground/examples/computed/cart.logic +22 -0
  13. package/tools/playground/examples/computed/cart.markup +10 -0
  14. package/tools/playground/examples/computed/cart.style +13 -0
  15. package/tools/playground/examples/counter/app.markup +3 -0
  16. package/tools/playground/examples/counter/counter.logic +19 -0
  17. package/tools/playground/examples/counter/counter.markup +7 -0
  18. package/tools/playground/examples/counter/counter.style +11 -0
  19. package/tools/playground/examples/effect-cleanup/app.markup +3 -0
  20. package/tools/playground/examples/effect-cleanup/stopwatch.logic +28 -0
  21. package/tools/playground/examples/effect-cleanup/stopwatch.markup +6 -0
  22. package/tools/playground/examples/effect-cleanup/stopwatch.style +11 -0
  23. package/tools/playground/examples/element-properties/app.markup +5 -0
  24. package/tools/playground/examples/element-properties/app.style +3 -0
  25. package/tools/playground/examples/element-properties/greeting.markup +4 -0
  26. package/tools/playground/examples/element-properties/greeting.style +7 -0
  27. package/tools/playground/examples/fix-the-error/app.markup +3 -0
  28. package/tools/playground/examples/fix-the-error/light.logic +10 -0
  29. package/tools/playground/examples/fix-the-error/light.markup +6 -0
  30. package/tools/playground/examples/fix-the-error/light.style +7 -0
  31. package/tools/playground/examples/hello-world/app.markup +4 -0
  32. package/tools/playground/examples/hello-world/app.style +7 -0
  33. package/tools/playground/examples/icons/app.markup +7 -0
  34. package/tools/playground/examples/icons/app.style +5 -0
  35. package/tools/playground/examples/list-for/app.markup +3 -0
  36. package/tools/playground/examples/list-for/planets.logic +15 -0
  37. package/tools/playground/examples/list-for/planets.markup +6 -0
  38. package/tools/playground/examples/list-for/planets.style +7 -0
  39. package/tools/playground/examples/ready-elements/app.markup +3 -0
  40. package/tools/playground/examples/ready-elements/app.style +3 -0
  41. package/tools/playground/examples/ready-elements/mission.logic +9 -0
  42. package/tools/playground/examples/ready-elements/mission.markup +7 -0
  43. package/tools/playground/examples/ready-elements/mission.style +5 -0
  44. package/tools/playground/examples/streams/app.markup +3 -0
  45. package/tools/playground/examples/streams/planet-search.logic +24 -0
  46. package/tools/playground/examples/streams/planet-search.markup +9 -0
  47. package/tools/playground/examples/streams/planet-search.style +9 -0
  48. package/tools/playground/examples/styles-modifiers/app.markup +5 -0
  49. package/tools/playground/examples/styles-modifiers/app.style +10 -0
  50. package/tools/playground/examples/watch/app.markup +3 -0
  51. package/tools/playground/examples/watch/volume.logic +20 -0
  52. package/tools/playground/examples/watch/volume.markup +9 -0
  53. package/tools/playground/examples/watch/volume.style +11 -0
  54. package/tools/playground.mjs +222 -0
  55. package/tools/project-layout.mjs +1 -1
  56. package/tools/runtime.mjs +16 -6
  57. package/tools/serve.mjs +15 -2
  58. package/tools/starter/app/pages/home/home.markup +19 -0
  59. package/tools/starter/app/pages/home/home.style +51 -0
  60. package/tools/starter/language/.en-US +10 -73
  61. package/tools/starter/language/.es-ES +10 -73
  62. package/tools/starter/language/.pt-BR +10 -73
  63. package/tools/starter/language/.zh-CN +10 -73
  64. package/tools/starter/styles/generic/ui-base.style +4 -5
  65. package/tools/test.mjs +20 -0
  66. package/tools/utilities-docs.mjs +0 -5
  67. package/tools/watch.mjs +3 -2
  68. package/tools/starter/app/elements/atoms/kit-nav-link/kit-nav-link.markup +0 -2
  69. package/tools/starter/app/elements/molecules/kit-button-demo/kit-button-demo.logic +0 -14
  70. package/tools/starter/app/elements/molecules/kit-button-demo/kit-button-demo.markup +0 -8
  71. package/tools/starter/app/elements/molecules/kit-card-link/kit-card-link.markup +0 -4
  72. package/tools/starter/app/elements/organisms/kit-navigation/kit-navigation.markup +0 -19
  73. package/tools/starter/app/pages/kit-border/kit-border.markup +0 -38
  74. package/tools/starter/app/pages/kit-color/kit-color.markup +0 -58
  75. package/tools/starter/app/pages/kit-components/kit-components.markup +0 -95
  76. package/tools/starter/app/pages/kit-overview/kit-overview.markup +0 -25
  77. package/tools/starter/app/pages/kit-radius/kit-radius.markup +0 -34
  78. package/tools/starter/app/pages/kit-space/kit-space.markup +0 -61
  79. package/tools/starter/app/pages/kit-type/kit-type.markup +0 -48
  80. package/tools/starter/app/pages/style-guide/style-guide.markup +0 -10
  81. package/tools/starter/app/pages/style-guide/style-guide.style +0 -252
@@ -0,0 +1,51 @@
1
+ Style Home
2
+ # Plain CSS with the tokens of project/styles/settings, so the page works with or without the utilities package.
3
+ home
4
+ display: grid
5
+ gap: var(--space-4)
6
+ max-width: 44rem
7
+ margin: 0 auto
8
+ padding: var(--space-7) var(--space-5)
9
+ home-eyebrow
10
+ margin: 0
11
+ color: var(--color-brand)
12
+ font-size: var(--text-small)
13
+ font-weight: 700
14
+ letter-spacing: 0.08em
15
+ text-transform: uppercase
16
+ home-title
17
+ margin: 0
18
+ font-size: clamp(2.2rem, 6vw, 3.4rem)
19
+ line-height: 1.1
20
+ home-lead
21
+ margin: 0
22
+ color: var(--color-muted)
23
+ font-size: 1.1rem
24
+ home-steps-title
25
+ margin: var(--space-4) 0 0
26
+ font-size: 1.1rem
27
+ home-steps
28
+ display: grid
29
+ gap: var(--space-3)
30
+ margin: 0
31
+ padding: 0
32
+ list-style: none
33
+ home-step
34
+ display: grid
35
+ gap: var(--space-1)
36
+ padding: var(--space-4)
37
+ border: 1px solid var(--color-outline)
38
+ border-radius: var(--radius-lg)
39
+ background-color: var(--color-surface)
40
+ home-step code
41
+ font-family: var(--font-mono)
42
+ font-size: var(--text-small)
43
+ color: var(--color-brand)
44
+ home-links
45
+ display: flex
46
+ flex-wrap: wrap
47
+ gap: var(--space-5)
48
+ margin: var(--space-3) 0 0
49
+ home-link
50
+ color: var(--color-brand)
51
+ font-weight: 600
@@ -1,73 +1,10 @@
1
- kit:
2
- title: Style library
3
- intro: A foundation for your next idea. Explore tokens, compose elements, and make it yours.
4
- theme: Theme
5
- light: Light
6
- dark: Dark
7
- nav: Style library navigation
8
- overview: Overview
9
- color: Colors
10
- spacing: Spacing
11
- radius: Radius
12
- borders: Borders
13
- typography: Typography
14
- components: Components
15
- tokens: Explore tokens
16
- explore: Start with the essentials
17
- colorDesc: Semantic colors that adapt to your theme. Edit the palette and map each role in theme.style.
18
- spacingDesc: One spacing scale for padding, gaps, and balanced layouts.
19
- radiusDesc: From straight edges to pill shapes. Choose a consistent rounding for your elements.
20
- borderDesc: Outlines, dividers, focus rings, and shadows to define structure and depth.
21
- typeDesc: Six heading levels and a complete set of everyday text styles.
22
- componentDesc: Working examples built with the same tokens. Change your theme and see every component respond.
23
- buttons: Buttons
24
- tryButton: Toggle selection
25
- disabled: Disabled
26
- buttonFeedback: Selected. Click again to clear.
27
- focusSample: Focus with Tab
28
- divider: Divider
29
- elevation: Elevation
30
- scale: Type scale
31
- heading1: Build your next idea
32
- heading2: A clear starting point
33
- heading3: Make room for content
34
- heading4: Every detail matters
35
- heading5: Small, useful sections
36
- heading6: One more detail
37
- bodyType: Body text
38
- bodySample: Good typography makes content easy to read. This paragraph uses the body size, comfortable line height, and the theme text color.
39
- smallSample: Small text for supporting information.
40
- captionSample: Caption · additional context
41
- sampleLink: Explore the color palette
42
- editorial: Editorial elements
43
- quote: Consistency begins with shared decisions.
44
- listOne: Reuse tokens across your pages.
45
- listTwo: Keep related files together.
46
- forms: Form controls
47
- nameLabel: Name
48
- namePlaceholder: Enter a name
49
- email: Email
50
- emailError: Example error. Enter a complete email address.
51
- remember: Remember my choice
52
- cards: Cards and badges
53
- cardSample: Use a card to group related content. Badges communicate a short status.
54
- info: Information
55
- success: Ready
56
- warning: In progress
57
- error: Needs review
58
- alerts: Alerts
59
- alertInfo: Your changes are saved locally.
60
- alertSuccess: The project is ready to preview.
61
- alertWarning: Review the details before continuing.
62
- alertError: An example error message with a clear next step.
63
- data: Tables and progress
64
- sampleTable: Example team
65
- tableName: Hero
66
- tableStatus: Status
67
- progress: Progress · 64%
68
- feedback: Feedback and disclosure
69
- emptyTitle: Nothing here yet
70
- emptySample: Add an item to get started.
71
- disclosure: Show details
72
- disclosureSample: This disclosure uses native HTML behavior and works with the keyboard.
73
- notes: Notes
1
+ welcome:
2
+ eyebrow: Aliens project
3
+ title: Your project is ready.
4
+ lead: This page is project/app/pages/home/home.markup. Change it and save: aliens run rebuilds and reloads the browser.
5
+ stepsTitle: Next steps
6
+ stepPage: Create a page:
7
+ stepElement: Create an Element:
8
+ stepExample: Uncomment the example of an Element with markup, logic, style and test:
9
+ docs: Documentation
10
+ npm: @aliens-syndicate/cli on npm
@@ -1,73 +1,10 @@
1
- kit:
2
- title: Biblioteca de estilos
3
- intro: Una base para tu próxima idea. Explora tokens, combina Elements y personaliza.
4
- theme: Tema
5
- light: Claro
6
- dark: Oscuro
7
- nav: Navegación de la biblioteca de estilos
8
- overview: Vista general
9
- color: Colores
10
- spacing: Espaciado
11
- radius: Radios
12
- borders: Bordes
13
- typography: Tipografía
14
- components: Componentes
15
- tokens: Explorar tokens
16
- explore: Empieza por lo esencial
17
- colorDesc: Colores semánticos que se adaptan al tema. Edita la paleta y define cada función en theme.style.
18
- spacingDesc: Una escala de espaciado para rellenos, separaciones y diseños equilibrados.
19
- radiusDesc: De esquinas rectas a formas redondeadas. Elige radios consistentes para tus Elements.
20
- borderDesc: Contornos, divisores, indicadores de foco y sombras para definir estructura y profundidad.
21
- typeDesc: Seis niveles de títulos y un conjunto de estilos de texto para el día a día.
22
- componentDesc: Ejemplos funcionales con los mismos tokens. Cambia el tema y observa cómo se adaptan los componentes.
23
- buttons: Botones
24
- tryButton: Alternar selección
25
- disabled: Desactivado
26
- buttonFeedback: Seleccionado. Haz clic otra vez para borrar.
27
- focusSample: Enfoca con Tab
28
- divider: Divisor
29
- elevation: Elevación
30
- scale: Escala tipográfica
31
- heading1: Crea tu próxima idea
32
- heading2: Un punto de partida claro
33
- heading3: Da espacio al contenido
34
- heading4: Cada detalle importa
35
- heading5: Secciones pequeñas y útiles
36
- heading6: Un detalle más
37
- bodyType: Texto de cuerpo
38
- bodySample: Una buena tipografía facilita la lectura. Este párrafo usa el tamaño de cuerpo, un interlineado cómodo y el color de texto del tema.
39
- smallSample: Texto pequeño para información complementaria.
40
- captionSample: Leyenda · contexto adicional
41
- sampleLink: Explorar la paleta de colores
42
- editorial: Elementos editoriales
43
- quote: La coherencia empieza con decisiones compartidas.
44
- listOne: Reutiliza tokens en tus páginas.
45
- listTwo: Mantén juntos los archivos relacionados.
46
- forms: Controles de formulario
47
- nameLabel: Nombre
48
- namePlaceholder: Escribe un nombre
49
- email: Correo electrónico
50
- emailError: Error de ejemplo. Escribe un correo electrónico completo.
51
- remember: Recordar mi elección
52
- cards: Tarjetas y etiquetas
53
- cardSample: Usa una tarjeta para agrupar contenido relacionado. Las etiquetas comunican un estado breve.
54
- info: Información
55
- success: Listo
56
- warning: En curso
57
- error: Requiere revisión
58
- alerts: Avisos
59
- alertInfo: Tus cambios están guardados localmente.
60
- alertSuccess: El proyecto está listo para visualizar.
61
- alertWarning: Revisa los detalles antes de continuar.
62
- alertError: Un mensaje de error de ejemplo con un siguiente paso claro.
63
- data: Tablas y progreso
64
- sampleTable: Equipo de ejemplo
65
- tableName: Héroe
66
- tableStatus: Estado
67
- progress: Progreso · 64%
68
- feedback: Comentarios y detalles
69
- emptyTitle: Todavía no hay nada
70
- emptySample: Añade un elemento para empezar.
71
- disclosure: Mostrar detalles
72
- disclosureSample: Este panel usa el comportamiento nativo de HTML y funciona con el teclado.
73
- notes: Notas
1
+ welcome:
2
+ eyebrow: Proyecto Aliens
3
+ title: Tu proyecto está listo.
4
+ lead: Esta página es project/app/pages/home/home.markup. Cámbiala y guarda: aliens run rehace el build y recarga el navegador.
5
+ stepsTitle: Próximos pasos
6
+ stepPage: Crea una página:
7
+ stepElement: Crea un Element:
8
+ stepExample: Descomenta el ejemplo de un Element con markup, logic, style y test:
9
+ docs: Documentación
10
+ npm: @aliens-syndicate/cli en npm
@@ -1,73 +1,10 @@
1
- kit:
2
- title: Biblioteca de estilos
3
- intro: Uma base para sua próxima ideia. Explore tokens, combine Elements e personalize.
4
- theme: Tema
5
- light: Claro
6
- dark: Escuro
7
- nav: Navegação da biblioteca de estilos
8
- overview: Visão geral
9
- color: Cores
10
- spacing: Espaçamento
11
- radius: Raios
12
- borders: Bordas
13
- typography: Tipografia
14
- components: Componentes
15
- tokens: Explorar tokens
16
- explore: Comece pelo essencial
17
- colorDesc: Cores semânticas que acompanham seu tema. Edite a paleta e defina cada função em theme.style.
18
- spacingDesc: Uma escala de espaçamento para preenchimentos, intervalos e layouts equilibrados.
19
- radiusDesc: De cantos retos a formas arredondadas. Escolha raios consistentes para seus Elements.
20
- borderDesc: Contornos, divisores, indicadores de foco e sombras para definir estrutura e profundidade.
21
- typeDesc: Seis níveis de títulos e um conjunto de estilos de texto para o dia a dia.
22
- componentDesc: Exemplos funcionais usando os mesmos tokens. Mude o tema e veja os componentes acompanharem.
23
- buttons: Botões
24
- tryButton: Alternar seleção
25
- disabled: Desativado
26
- buttonFeedback: Selecionado. Clique novamente para limpar.
27
- focusSample: Foque com Tab
28
- divider: Divisor
29
- elevation: Elevação
30
- scale: Escala tipográfica
31
- heading1: Crie sua próxima ideia
32
- heading2: Um ponto de partida claro
33
- heading3: Dê espaço ao conteúdo
34
- heading4: Cada detalhe importa
35
- heading5: Seções pequenas e úteis
36
- heading6: Mais um detalhe
37
- bodyType: Texto de corpo
38
- bodySample: Uma boa tipografia facilita a leitura. Este parágrafo usa o tamanho de corpo, entrelinha confortável e a cor de texto do tema.
39
- smallSample: Texto menor para informações complementares.
40
- captionSample: Legenda · contexto adicional
41
- sampleLink: Explorar a paleta de cores
42
- editorial: Elementos editoriais
43
- quote: Consistência começa com decisões compartilhadas.
44
- listOne: Reutilize tokens nas suas páginas.
45
- listTwo: Mantenha arquivos relacionados juntos.
46
- forms: Controles de formulário
47
- nameLabel: Nome
48
- namePlaceholder: Digite um nome
49
- email: E-mail
50
- emailError: Erro de exemplo. Digite um endereço de e-mail completo.
51
- remember: Lembrar minha escolha
52
- cards: Cartões e etiquetas
53
- cardSample: Use um cartão para reunir conteúdos relacionados. Etiquetas comunicam um status curto.
54
- info: Informação
55
- success: Pronto
56
- warning: Em andamento
57
- error: Requer revisão
58
- alerts: Avisos
59
- alertInfo: Suas alterações estão salvas localmente.
60
- alertSuccess: O projeto está pronto para visualizar.
61
- alertWarning: Revise os detalhes antes de continuar.
62
- alertError: Uma mensagem de erro de exemplo com um próximo passo claro.
63
- data: Tabelas e progresso
64
- sampleTable: Equipe de exemplo
65
- tableName: Herói
66
- tableStatus: Status
67
- progress: Progresso · 64%
68
- feedback: Feedback e detalhes
69
- emptyTitle: Nada aqui ainda
70
- emptySample: Adicione um item para começar.
71
- disclosure: Mostrar detalhes
72
- disclosureSample: Este painel usa o comportamento nativo do HTML e funciona pelo teclado.
73
- notes: Observações
1
+ welcome:
2
+ eyebrow: Projeto Aliens
3
+ title: Seu projeto está pronto.
4
+ lead: Esta página é project/app/pages/home/home.markup. Altere e salve: o aliens run refaz o build e recarrega o navegador.
5
+ stepsTitle: Próximos passos
6
+ stepPage: Crie uma página:
7
+ stepElement: Crie um Element:
8
+ stepExample: Descomente o exemplo de um Element com markup, logic, style e test:
9
+ docs: Documentação
10
+ npm: @aliens-syndicate/cli no npm
@@ -1,73 +1,10 @@
1
- kit:
2
- title: 样式库
3
- intro: 为你的下一个创意打好基础。探索设计变量、组合元素,打造自己的风格。
4
- theme: 主题
5
- light: 浅色
6
- dark: 深色
7
- nav: 样式库导航
8
- overview: 概览
9
- color: 颜色
10
- spacing: 间距
11
- radius: 圆角
12
- borders: 边框
13
- typography: 排版
14
- components: 组件
15
- tokens: 探索设计变量
16
- explore: 从基础开始
17
- colorDesc: 随主题变化的语义颜色。编辑调色板,在 theme.style 中定义各个角色。
18
- spacingDesc: 统一的间距尺度,用于内边距、元素间距和均衡布局。
19
- radiusDesc: 从直角到胶囊形状,为元素选择一致的圆角。
20
- borderDesc: 通过轮廓、分隔线、焦点环和阴影定义结构与层次。
21
- typeDesc: 六级标题及日常所需的文字样式。
22
- componentDesc: 使用相同设计变量的可交互示例。切换主题,查看每个组件的变化。
23
- buttons: 按钮
24
- tryButton: 切换选择
25
- disabled: 已禁用
26
- buttonFeedback: 已选择。再次点击以取消。
27
- focusSample: 按 Tab 聚焦
28
- divider: 分隔线
29
- elevation: 阴影层次
30
- scale: 字号尺度
31
- heading1: 构建你的下一个创意
32
- heading2: 清晰的起点
33
- heading3: 给内容留出空间
34
- heading4: 每个细节都重要
35
- heading5: 简洁实用的章节
36
- heading6: 更多细节
37
- bodyType: 正文
38
- bodySample: 良好的排版让内容易于阅读。此段落使用正文字号、舒适行高和主题文字颜色。
39
- smallSample: 用于补充信息的小号文字。
40
- captionSample: 说明 · 更多背景
41
- sampleLink: 探索调色板
42
- editorial: 编辑元素
43
- quote: 一致性始于共同的决策。
44
- listOne: 在各个页面复用设计变量。
45
- listTwo: 将相关文件放在一起。
46
- forms: 表单控件
47
- nameLabel: 姓名
48
- namePlaceholder: 请输入姓名
49
- email: 电子邮件
50
- emailError: 错误示例。请输入完整的电子邮件地址。
51
- remember: 记住我的选择
52
- cards: 卡片和标签
53
- cardSample: 使用卡片整理相关内容,使用标签显示简短状态。
54
- info: 信息
55
- success: 就绪
56
- warning: 进行中
57
- error: 待审核
58
- alerts: 提示
59
- alertInfo: 你的更改已保存在本地。
60
- alertSuccess: 项目已可预览。
61
- alertWarning: 继续之前请检查详情。
62
- alertError: 带有明确后续步骤的错误消息示例。
63
- data: 表格与进度
64
- sampleTable: 示例团队
65
- tableName: 英雄
66
- tableStatus: 状态
67
- progress: 进度 · 64%
68
- feedback: 反馈和详情
69
- emptyTitle: 暂无内容
70
- emptySample: 添加一个条目以开始。
71
- disclosure: 显示详情
72
- disclosureSample: 此面板使用原生 HTML 行为,支持键盘操作。
73
- notes: 备注
1
+ welcome:
2
+ eyebrow: Aliens 项目
3
+ title: 你的项目已准备就绪。
4
+ lead: 这个页面是 project/app/pages/home/home.markup。修改并保存后,aliens run 会重新构建并刷新浏览器。
5
+ stepsTitle: 下一步
6
+ stepPage: 创建页面:
7
+ stepElement: 创建 Element:
8
+ stepExample: 取消注释这个包含 markup、logic、style 和 test 的 Element 示例:
9
+ docs: 文档
10
+ npm: npm 上的 @aliens-syndicate/cli
@@ -1,12 +1,11 @@
1
1
  Style UiBase
2
- body:has(> style-guide)
2
+ body
3
3
  margin: 0
4
4
  background-color: var(--color-canvas)
5
- :where(style-guide, style-guide *)
6
- box-sizing: border-box
7
- style-guide
8
5
  font-family: var(--font-sans)
9
6
  line-height: var(--line-body)
10
7
  color: var(--color-text)
11
- style-guide [hidden]
8
+ :where(*, *::before, *::after)
9
+ box-sizing: border-box
10
+ [hidden]
12
11
  display: none !important
package/tools/test.mjs ADDED
@@ -0,0 +1,20 @@
1
+ // Runs @aliens-syndicate/test on the project when .config declares it: aliens run calls this on every saved file,
2
+ // so .test is rewritten on save and never by the build. Without the package declared, it does nothing.
3
+ import { readFile } from 'node:fs/promises';
4
+ import { createRequire } from 'node:module';
5
+ import { join } from 'node:path';
6
+ import { pathToFileURL } from 'node:url';
7
+
8
+ const root = process.cwd();
9
+ const config = await readFile(join(root, '.config'), 'utf8').catch(() => '');
10
+ const name = /^devDependencies:\n(?:[ ]{3}.*\n|[ ]*\n)*?[ ]{3}test:\n[ ]{6}(@?[^\s:]+):/m.exec(config)?.[1];
11
+ if (name) {
12
+ try {
13
+ const { analyze } = await import(pathToFileURL(createRequire(join(root, 'package.json')).resolve(name)).href);
14
+ const { files, reused } = await analyze(root);
15
+ const counts = files.flatMap(file => file.functions).reduce((sum, fn) => ({ planned: sum.planned + fn.planned, executed: sum.executed + fn.executed, failed: sum.failed + fn.failed }), { planned: 0, executed: 0, failed: 0 });
16
+ console.log(`tests: ${counts.executed}/${counts.planned} checks executed, ${counts.failed} failed, ${reused} functions reused (project/.test)`);
17
+ } catch (error) {
18
+ console.error(`tests: ${error.message}`);
19
+ }
20
+ }
@@ -135,7 +135,6 @@ for (const [anchor, key] of [['overview', 'overviewNav'], ['install', 'installNa
135
135
  ['responsive', 'responsiveNav'], ['states', 'statesNav'], ['arbitrary', 'arbitraryNav'], ['colors', 'colorsNav']]) {
136
136
  add(4, `a={@utilitiesDocs.${key}} href="#utilities-docs-${anchor}" variant="utilities-docs-nav-link"`);
137
137
  }
138
- add(4, 'a={@utilitiesDocs.libraryNav} href="#kit-overview" variant="utilities-docs-nav-link"');
139
138
  for (const group of sections) {
140
139
  add(4, `p={${titleKey(group.id)}} variant="utilities-docs-nav-title"`);
141
140
  for (const section of group.sections) add(4, `a={${section.title}} href="#utilities-docs-${section.id}" variant="utilities-docs-nav-link"`);
@@ -258,10 +257,6 @@ for (const group of sections) {
258
257
  table(5, camel(section.id));
259
258
  }
260
259
  }
261
- add(3, 'section variant="utilities-docs-block" data-filter-group id="utilities-docs-library"');
262
- add(4, 'h2={@utilitiesDocs.libraryTitle}');
263
- add(4, 'p={@utilitiesDocs.libraryDetail} variant="utilities-docs-lead"');
264
- add(4, `ui-link href="#kit-overview" variant="ui-link_secondary" label={@utilitiesDocs.libraryLink} icon="arrow-up-right-01"`);
265
260
 
266
261
  await mkdir(page, { recursive: true });
267
262
  await writeFile(join(page, 'utilities-docs.markup'), lines.join('\n') + '\n');
package/tools/watch.mjs CHANGED
@@ -17,8 +17,8 @@ const watching = {
17
17
 
18
18
  const workspace = resolve(import.meta.dirname, '..');
19
19
  const build = join(import.meta.dirname, 'build.mjs');
20
- // The build writes dist/ and the .map itself, so those changes never start another build.
21
- const ignored = new Set(['dist', 'node_modules', '.git', '.DS_Store']);
20
+ // The build writes dist/, the .map and the .test report itself, so those changes never start another build.
21
+ const ignored = new Set(['dist', 'node_modules', '.git', '.DS_Store', '.test', 'app.test', '.aliens']);
22
22
  const skip = file => file.split(sep).some(part => ignored.has(part)) || file.endsWith('.map');
23
23
 
24
24
  let running = null;
@@ -32,6 +32,7 @@ function run() {
32
32
  running = spawn(process.execPath, ['--disable-warning=ExperimentalWarning', build], { stdio: 'inherit' });
33
33
  running.on('exit', () => {
34
34
  running = null;
35
+ spawn(process.execPath, ['--disable-warning=ExperimentalWarning', join(import.meta.dirname, 'test.mjs')], { cwd: workspace, stdio: 'inherit' });
35
36
  if (pending) {
36
37
  pending = false;
37
38
  run();
@@ -1,2 +0,0 @@
1
- Markup KitNavLink
2
- a={$label} href={$href} variant="kit-nav-link space-focus" data-nav
@@ -1,14 +0,0 @@
1
- Logic KitButtonDemo
2
- signal active: boolean = false
3
-
4
- bind:
5
- kit-button-demo-try-button:
6
- pressed: this.active
7
- kit-button-demo-feedback:
8
- show: this.active
9
-
10
- actions:
11
- toggle:
12
- returns: void
13
- body:
14
- this.active = !this.active
@@ -1,8 +0,0 @@
1
- Markup KitButtonDemo
2
- section variant="space-card space-stack"
3
- h2={@kit.buttons} variant="space-h4"
4
- div variant="space-cluster"
5
- button={@kit.tryButton} id="kit-button-demo-try-button" variant="space-button_primary" action="toggle"
6
- a={@kit.typography} variant="space-button" href="#kit-type"
7
- button={@kit.disabled} variant="space-button_quiet" type="button" disabled
8
- p={@kit.buttonFeedback} variant="space-alert_success" id="kit-button-demo-feedback" role="status" hidden
@@ -1,4 +0,0 @@
1
- Markup KitCardLink
2
- a href={$href} variant="space-card kit-card-link space-focus"
3
- h3={$label} variant="space-h5"
4
- span={$caption} variant="kit-card-link-caption"
@@ -1,19 +0,0 @@
1
- Markup KitNavigation
2
- div id="kit-navigation"
3
- header id="kit-navigation-top"
4
- a href="#kit-overview" id="kit-navigation-brand" variant="space-focus"
5
- span id="kit-navigation-mark" aria-hidden="true"
6
- span={@kit.title}
7
- div id="kit-navigation-theme-field"
8
- label={@kit.theme} for="kit-navigation-theme"
9
- select variant="space-input kit-navigation-theme-select" id="kit-navigation-theme" data-theme-picker
10
- option={@kit.light} value="light"
11
- option={@kit.dark} value="dark"
12
- nav id="kit-navigation-nav" aria-label={@kit.nav}
13
- kit-nav-link href="#kit-overview" label={@kit.overview}
14
- kit-nav-link href="#kit-color" label={@kit.color}
15
- kit-nav-link href="#kit-space" label={@kit.spacing}
16
- kit-nav-link href="#kit-radius" label={@kit.radius}
17
- kit-nav-link href="#kit-border" label={@kit.borders}
18
- kit-nav-link href="#kit-type" label={@kit.typography}
19
- kit-nav-link href="#kit-components" label={@kit.components}
@@ -1,38 +0,0 @@
1
- Markup KitBorder
2
- div variant="space-stack style-guide-view_detail" id="kit-border" data-view hidden tabindex="-1"
3
- header variant="style-guide-page-heading"
4
- h1={@kit.borders} variant="space-h2"
5
- p={@kit.borderDesc} variant="space-body style-guide-lead"
6
- div variant="space-grid"
7
- div variant="space-card space-border"
8
- code={--border-subtle}
9
- div variant="space-card space-border_strong"
10
- code={--border-strong}
11
- div variant="space-card space-border_dashed"
12
- code={--border-dashed}
13
- a={@kit.focusSample} variant="space-button" href="#kit-border"
14
- section variant="space-card space-stack"
15
- h2={@kit.divider} variant="space-h4"
16
- hr variant="space-divider"
17
- code={.space-divider}
18
- section variant="space-stack"
19
- h2={@kit.elevation} variant="space-h3"
20
- div variant="space-grid"
21
- div id="kit-border-shadow-sm" variant="space-card"
22
- code={--shadow-sm}
23
- div id="kit-border-shadow-md" variant="space-card"
24
- code={--shadow-md}
25
- div id="kit-border-shadow-lg" variant="space-card"
26
- code={--shadow-lg}
27
- details variant="space-disclosure style-guide-source"
28
- summary={border-tokens.style} variant="space-focus"
29
- pre variant="style-guide-source-code" tabindex="0"
30
- code data-source="project/styles/settings/border-tokens.style"
31
- details variant="space-disclosure style-guide-source"
32
- summary={elevation-tokens.style} variant="space-focus"
33
- pre variant="style-guide-source-code" tabindex="0"
34
- code data-source="project/styles/settings/elevation-tokens.style"
35
- details variant="space-disclosure style-guide-source"
36
- summary={borders.style} variant="space-focus"
37
- pre variant="style-guide-source-code" tabindex="0"
38
- code data-source="project/styles/components/borders.style"
@@ -1,58 +0,0 @@
1
- Markup KitColor
2
- div variant="space-stack style-guide-view_detail" id="kit-color" data-view hidden tabindex="-1"
3
- header variant="style-guide-page-heading"
4
- h1={@kit.color} variant="space-h2"
5
- p={@kit.colorDesc} variant="space-body style-guide-lead"
6
- div id="kit-color-swatch-grid" variant="space-grid"
7
- figure variant="kit-color-swatch space-card"
8
- div id="kit-color-use-canvas" variant="kit-color-swatch-paint" aria-hidden="true"
9
- figcaption={Canvas}
10
- code={--color-canvas} variant="space-caption"
11
- figure variant="kit-color-swatch space-card"
12
- div variant="kit-color-swatch-paint style-guide-use-surface" aria-hidden="true"
13
- figcaption={Surface}
14
- code={--color-surface} variant="space-caption"
15
- figure variant="kit-color-swatch space-card"
16
- div id="kit-color-use-text" variant="kit-color-swatch-paint" aria-hidden="true"
17
- figcaption={Text}
18
- code={--color-text} variant="space-caption"
19
- figure variant="kit-color-swatch space-card"
20
- div id="kit-color-use-muted" variant="kit-color-swatch-paint" aria-hidden="true"
21
- figcaption={Muted}
22
- code={--color-muted} variant="space-caption"
23
- figure variant="kit-color-swatch space-card"
24
- div id="kit-color-use-outline" variant="kit-color-swatch-paint" aria-hidden="true"
25
- figcaption={Outline}
26
- code={--color-outline} variant="space-caption"
27
- figure variant="kit-color-swatch space-card"
28
- div variant="kit-color-swatch-paint style-guide-use-brand" aria-hidden="true"
29
- figcaption={Brand}
30
- code={--color-brand} variant="space-caption"
31
- figure variant="kit-color-swatch space-card"
32
- div variant="kit-color-swatch-paint style-guide-use-accent" aria-hidden="true"
33
- figcaption={Accent}
34
- code={--color-accent} variant="space-caption"
35
- figure variant="kit-color-swatch space-card"
36
- div id="kit-color-use-success" variant="kit-color-swatch-paint" aria-hidden="true"
37
- figcaption={Success}
38
- code={--color-success} variant="space-caption"
39
- figure variant="kit-color-swatch space-card"
40
- div id="kit-color-use-warning" variant="kit-color-swatch-paint" aria-hidden="true"
41
- figcaption={Warning}
42
- code={--color-warning} variant="space-caption"
43
- figure variant="kit-color-swatch space-card"
44
- div id="kit-color-use-danger" variant="kit-color-swatch-paint" aria-hidden="true"
45
- figcaption={Danger}
46
- code={--color-danger} variant="space-caption"
47
- figure variant="kit-color-swatch space-card"
48
- div id="kit-color-use-info" variant="kit-color-swatch-paint" aria-hidden="true"
49
- figcaption={Info}
50
- code={--color-info} variant="space-caption"
51
- details variant="space-disclosure style-guide-source"
52
- summary={color-tokens.style} variant="space-focus"
53
- pre variant="style-guide-source-code" tabindex="0"
54
- code data-source="project/styles/settings/color-tokens.style"
55
- details variant="space-disclosure style-guide-source"
56
- summary={theme.style} variant="space-focus"
57
- pre variant="style-guide-source-code" tabindex="0"
58
- code data-source="project/styles/settings/theme.style"