@aliens-syndicate/cli 0.1.6 → 0.1.7

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-ES.md CHANGED
@@ -23,7 +23,7 @@ aliens run
23
23
 
24
24
  | Comando | Qué hace |
25
25
  | --- | --- |
26
- | `aliens new <nombre>` (`n`) | Crea un proyecto y pregunta qué extensiones instalar. `--yes`, `--no-style`, `--no-icons`, `--no-elements` y `--skip-install` saltan las preguntas. |
26
+ | `aliens new <nombre>` (`n`) | Crea un proyecto y pregunta qué extensiones instalar. `--yes`, `--no-utilities`, `--no-icons`, `--no-elements` y `--skip-install` saltan las preguntas. |
27
27
  | `aliens run` | Hace el build, sirve en http://localhost:5151 y rehace el build y recarga el navegador con cada archivo guardado. `--port <número>` o `serve: port:` en `.config` cambia el puerto. `aliens watch` es un atajo. |
28
28
  | `aliens build` | Ejecuta el `tools/build.mjs` del proyecto y genera `dist/` y `ai/.map`. |
29
29
  | `aliens generate <tipo> <nombre>` (`g`) | Crea archivos Space. `aliens g element molecules/card` escribe `.markup`, `.logic`, `.style` y `.test`; sin el nivel, la CLI pregunta. Los archivos existentes se conservan y solo se crean los que faltan. Tipos: element (`e`), page (`p`), service (`s`), directive (`d`), interface (`i`), model (`m`), validator (`v`), route (`r`), api, animation, enum, error, guard, interceptor, mock, pipe, storage, agent, rule, skill. `--dry-run` no escribe nada. |
package/README.md CHANGED
@@ -23,7 +23,7 @@ aliens run
23
23
 
24
24
  | Command | What it does |
25
25
  | --- | --- |
26
- | `aliens new <name>` (`n`) | Creates a project and asks which extensions to install. `--yes`, `--no-style`, `--no-icons`, `--no-elements` and `--skip-install` skip the questions. |
26
+ | `aliens new <name>` (`n`) | Creates a project and asks which extensions to install. `--yes`, `--no-utilities`, `--no-icons`, `--no-elements` and `--skip-install` skip the questions. |
27
27
  | `aliens run` | Builds, serves on http://localhost:5151 and rebuilds and reloads the browser on every save. `--port <number>` or `serve: port:` in `.config` changes the port. `aliens watch` is an alias. |
28
28
  | `aliens build` | Runs the `tools/build.mjs` of the project and generates `dist/` and `ai/.map`. |
29
29
  | `aliens generate <kind> <name>` (`g`) | Creates Space files. `aliens g element molecules/card` writes `.markup`, `.logic`, `.style` and `.test`; without the level the CLI asks. Existing files are kept and only the missing ones are added. Kinds: element (`e`), page (`p`), service (`s`), directive (`d`), interface (`i`), model (`m`), validator (`v`), route (`r`), api, animation, enum, error, guard, interceptor, mock, pipe, storage, agent, rule, skill. `--dry-run` writes nothing. |
package/README.pt-BR.md CHANGED
@@ -23,7 +23,7 @@ aliens run
23
23
 
24
24
  | Comando | O que faz |
25
25
  | --- | --- |
26
- | `aliens new <nome>` (`n`) | Cria um projeto e pergunta quais extensões instalar. `--yes`, `--no-style`, `--no-icons`, `--no-elements` e `--skip-install` pulam as perguntas. |
26
+ | `aliens new <nome>` (`n`) | Cria um projeto e pergunta quais extensões instalar. `--yes`, `--no-utilities`, `--no-icons`, `--no-elements` e `--skip-install` pulam as perguntas. |
27
27
  | `aliens run` | Faz o build, serve em http://localhost:5151 e refaz o build e recarrega o navegador a cada arquivo salvo. `--port <número>` ou `serve: port:` no `.config` troca a porta. `aliens watch` é um atalho. |
28
28
  | `aliens build` | Executa o `tools/build.mjs` do projeto e gera `dist/` e `ai/.map`. |
29
29
  | `aliens generate <tipo> <nome>` (`g`) | Cria arquivos Space. `aliens g element molecules/card` escreve `.markup`, `.logic`, `.style` e `.test`; sem o nível, a CLI pergunta. Arquivos que já existem são mantidos e só os que faltam são criados. Tipos: element (`e`), page (`p`), service (`s`), directive (`d`), interface (`i`), model (`m`), validator (`v`), route (`r`), api, animation, enum, error, guard, interceptor, mock, pipe, storage, agent, rule, skill. `--dry-run` não grava nada. |
package/README.zh-CN.md CHANGED
@@ -23,7 +23,7 @@ aliens run
23
23
 
24
24
  | 命令 | 作用 |
25
25
  | --- | --- |
26
- | `aliens new <名称>`(`n`) | 创建项目,并询问要安装哪些扩展。`--yes`、`--no-style`、`--no-icons`、`--no-elements` 和 `--skip-install` 可跳过提问。 |
26
+ | `aliens new <名称>`(`n`) | 创建项目,并询问要安装哪些扩展。`--yes`、`--no-utilities`、`--no-icons`、`--no-elements` 和 `--skip-install` 可跳过提问。 |
27
27
  | `aliens run` | 构建并在 http://localhost:5151 上提供服务,每次保存都会重新构建并刷新浏览器。`--port <端口>` 或 `.config` 中的 `serve: port:` 可更改端口。`aliens watch` 是别名。 |
28
28
  | `aliens build` | 运行项目的 `tools/build.mjs`,生成 `dist/` 和 `ai/.map`。 |
29
29
  | `aliens generate <类型> <名称>`(`g`) | 创建 Space 文件。`aliens g element molecules/card` 会写入 `.markup`、`.logic`、`.style` 和 `.test`;不写层级时 CLI 会询问。已存在的文件会保留,只补上缺少的。类型:element(`e`)、page(`p`)、service(`s`)、directive(`d`)、interface(`i`)、model(`m`)、validator(`v`)、route(`r`)、api、animation、enum、error、guard、interceptor、mock、pipe、storage、agent、rule、skill。`--dry-run` 不写入任何文件。 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliens-syndicate/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "CLI for Aliens, the AI-era front-end framework written in Space.",
5
5
  "license": "MIT",
6
6
  "author": "Aliens Syndicate",
@@ -33,6 +33,6 @@
33
33
  "devDependencies": {
34
34
  "@aliens-syndicate/elements": "file:../aliens-syndicate-elements",
35
35
  "@aliens-syndicate/icons": "^0.1.0",
36
- "@aliens-syndicate/utilities": "file:../aliens-syndicate-utilities"
36
+ "@aliens-syndicate/utilities": "^0.1.0"
37
37
  }
38
38
  }
package/tools/cli.mjs CHANGED
@@ -11,7 +11,7 @@ const commands = [
11
11
  about: { en: 'Creates an Aliens project, asking which extensions to install.', pt: 'Cria um projeto Aliens e pergunta quais extensões instalar.',
12
12
  es: 'Crea un proyecto Aliens y pregunta qué extensiones instalar.', zh: '创建 Aliens 项目,并询问要安装哪些扩展。' },
13
13
  options: [['-y, --yes', { en: 'Accepts every default without asking', pt: 'Aceita todos os padrões sem perguntar', es: 'Acepta todos los valores por defecto sin preguntar', zh: '不询问,全部使用默认值' }],
14
- ['--no-style, --no-icons, --no-elements', { en: 'Leaves that extension out', pt: 'Deixa essa extensão de fora', es: 'Deja fuera esa extensión', zh: '不包含该扩展' }],
14
+ ['--no-utilities, --no-icons, --no-elements', { en: 'Leaves that extension out', pt: 'Deixa essa extensão de fora', es: 'Deja fuera esa extensión', zh: '不包含该扩展' }],
15
15
  ['--skip-install', { en: 'Creates the files without running npm install', pt: 'Cria os arquivos sem rodar o npm install', es: 'Crea los archivos sin ejecutar npm install', zh: '只创建文件,不运行 npm install' }]] },
16
16
  { name: 'run', aliases: ['watch'], usage: 'aliens run [--port <number>]', load: async () => (await import('./serve.mjs')).serve,
17
17
  about: { en: `Builds, serves on http://localhost:${defaultPort} and rebuilds and reloads the browser on every save.`,
package/tools/create.mjs CHANGED
@@ -11,25 +11,25 @@ import {
11
11
  const text = {
12
12
  en: { usage: 'Usage: aliens new <project-name>', name: 'What is your project named?', fallbackName: 'my-aliens-app',
13
13
  badName: 'Use lowercase words separated by hyphens for the project name, like my-app.', exists: 'The folder {path} already exists.',
14
- style: 'Use utility classes in .style ({package})?', icons: 'Use the icon library ({package})?', elements: 'Use ready-made Elements ({package})?',
14
+ utilities: 'Use utility classes in .style ({package})?', icons: 'Use the icon library ({package})?', elements: 'Use ready-made Elements ({package})?',
15
15
  creating: 'Creating the Aliens project in {path}', created: 'Aliens project created in {path}', installing: 'Installing the packages with npm…',
16
16
  unpublished: '{package} is not on npm yet, so the project starts without it.', installFailed: 'npm install failed. Enter the folder and run npm install.',
17
17
  skipped: 'Packages not installed (--skip-install). Enter the folder and run npm install.', next: 'Next steps:' },
18
18
  pt: { usage: 'Uso: aliens new <nome-do-projeto>', name: 'Qual é o nome do projeto?', fallbackName: 'meu-app-aliens',
19
19
  badName: 'Use palavras minúsculas separadas por hífen no nome do projeto, como meu-app.', exists: 'A pasta {path} já existe.',
20
- style: 'Usar classes utilitárias no .style ({package})?', icons: 'Usar a biblioteca de ícones ({package})?', elements: 'Usar Elements prontos ({package})?',
20
+ utilities: 'Usar classes utilitárias no .style ({package})?', icons: 'Usar a biblioteca de ícones ({package})?', elements: 'Usar Elements prontos ({package})?',
21
21
  creating: 'Criando o projeto Aliens em {path}', created: 'Projeto Aliens criado em {path}', installing: 'Instalando os pacotes com o npm…',
22
22
  unpublished: '{package} ainda não está no npm, então o projeto começa sem ele.', installFailed: 'O npm install falhou. Entre na pasta e rode npm install.',
23
23
  skipped: 'Pacotes não instalados (--skip-install). Entre na pasta e rode npm install.', next: 'Próximos passos:' },
24
24
  es: { usage: 'Uso: aliens new <nombre-del-proyecto>', name: '¿Cómo se llama tu proyecto?', fallbackName: 'mi-app-aliens',
25
25
  badName: 'Usa palabras en minúsculas separadas por guiones en el nombre del proyecto, como mi-app.', exists: 'La carpeta {path} ya existe.',
26
- style: '¿Usar clases utilitarias en .style ({package})?', icons: '¿Usar la biblioteca de íconos ({package})?', elements: '¿Usar Elements listos ({package})?',
26
+ utilities: '¿Usar clases utilitarias en .style ({package})?', icons: '¿Usar la biblioteca de íconos ({package})?', elements: '¿Usar Elements listos ({package})?',
27
27
  creating: 'Creando el proyecto Aliens en {path}', created: 'Proyecto Aliens creado en {path}', installing: 'Instalando los paquetes con npm…',
28
28
  unpublished: '{package} todavía no está en npm, así que el proyecto empieza sin él.', installFailed: 'npm install falló. Entra en la carpeta y ejecuta npm install.',
29
29
  skipped: 'Paquetes no instalados (--skip-install). Entra en la carpeta y ejecuta npm install.', next: 'Próximos pasos:' },
30
30
  zh: { usage: '用法:aliens new <项目名称>', name: '项目叫什么名字?', fallbackName: 'my-aliens-app',
31
31
  badName: '项目名称请使用以连字符分隔的小写单词,例如 my-app。', exists: '文件夹 {path} 已存在。',
32
- style: '在 .style 中使用工具类({package})?', icons: '使用图标库({package})?', elements: '使用现成的 Elements({package})?',
32
+ utilities: '在 .style 中使用工具类({package})?', icons: '使用图标库({package})?', elements: '使用现成的 Elements({package})?',
33
33
  creating: '正在 {path} 中创建 Aliens 项目', created: 'Aliens 项目已创建于 {path}', installing: '正在用 npm 安装依赖包…',
34
34
  unpublished: '{package} 尚未发布到 npm,项目将先不包含它。', installFailed: 'npm install 失败。请进入文件夹运行 npm install。',
35
35
  skipped: '未安装依赖包(--skip-install)。请进入文件夹运行 npm install。', next: '下一步:' }