semmet-angular 0.30.0 → 0.31.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.en.md +1 -1
- package/README.md +1 -1
- package/README.pt-BR.md +1 -1
- package/package.json +1 -1
- package/src/docker/index.js +1 -1
- package/src/docker/index.ts +1 -1
package/README.en.md
CHANGED
|
@@ -65,7 +65,7 @@ By default, the schematic does not overwrite an existing workflow. Use `--force`
|
|
|
65
65
|
ng generate semmet-angular:docker
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
This command generates `Dockerfile`, `.dockerignore`, and `nginx.conf` to package the Angular application as an image served by Nginx. The Dockerfile detects the package manager by lockfile, runs the build
|
|
68
|
+
This command generates `Dockerfile`, `.dockerignore`, and `nginx.conf` to package the Angular application as an image served by Nginx. The Dockerfile uses Node 24 in the build stage, detects the package manager by lockfile, runs the build, and copies the output configured in `angular.json` to `/usr/share/nginx/html`.
|
|
69
69
|
|
|
70
70
|
The `nginx.conf` includes SPA fallback with `try_files ... /index.html`. By default, the schematic does not overwrite existing files; use `--force` to replace the current Docker configuration.
|
|
71
71
|
|
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ Por padrão, o schematic não sobrescreve um workflow existente. Use `--force` q
|
|
|
65
65
|
ng generate semmet-angular:docker
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
Esse comando gera `Dockerfile`, `.dockerignore` e `nginx.conf` para empacotar a aplicação Angular como uma imagem servida por Nginx. O Dockerfile detecta o gerenciador de pacotes por lockfile, executa o build
|
|
68
|
+
Esse comando gera `Dockerfile`, `.dockerignore` e `nginx.conf` para empacotar a aplicação Angular como uma imagem servida por Nginx. O Dockerfile usa Node 24 no estágio de build, detecta o gerenciador de pacotes por lockfile, executa o build e copia o output configurado no `angular.json` para `/usr/share/nginx/html`.
|
|
69
69
|
|
|
70
70
|
O `nginx.conf` inclui fallback de SPA com `try_files ... /index.html`. Por padrão, o schematic não sobrescreve arquivos existentes; use `--force` para substituir a configuração Docker atual.
|
|
71
71
|
|
package/README.pt-BR.md
CHANGED
|
@@ -63,7 +63,7 @@ Por padrão, o schematic não sobrescreve um workflow existente. Use `--force` q
|
|
|
63
63
|
ng generate semmet-angular:docker
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
Esse comando gera `Dockerfile`, `.dockerignore` e `nginx.conf` para empacotar a aplicação Angular como uma imagem servida por Nginx. O Dockerfile detecta o gerenciador de pacotes por lockfile, executa o build
|
|
66
|
+
Esse comando gera `Dockerfile`, `.dockerignore` e `nginx.conf` para empacotar a aplicação Angular como uma imagem servida por Nginx. O Dockerfile usa Node 24 no estágio de build, detecta o gerenciador de pacotes por lockfile, executa o build e copia o output configurado no `angular.json` para `/usr/share/nginx/html`.
|
|
67
67
|
|
|
68
68
|
O `nginx.conf` inclui fallback de SPA com `try_files ... /index.html`. Por padrão, o schematic não sobrescreve arquivos existentes; use `--force` para substituir a configuração Docker atual.
|
|
69
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semmet-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Accessible UI Delivery Kit for Angular: schematics that generate ARIA-conformant standalone components with styling, keyboard behavior, unit tests, and Playwright e2e smoke tests.",
|
|
5
5
|
"publisher": "danilodevsilva",
|
|
6
6
|
"license": "MIT",
|
package/src/docker/index.js
CHANGED
|
@@ -81,7 +81,7 @@ function getPackageManagerCommands(packageManager, hasNpmLockfile) {
|
|
|
81
81
|
}
|
|
82
82
|
function buildDockerfile(outputPath, commands) {
|
|
83
83
|
const prepareStep = commands.prepare ? `${commands.prepare}\n` : '';
|
|
84
|
-
return `FROM node:
|
|
84
|
+
return `FROM node:24-alpine AS build
|
|
85
85
|
WORKDIR /app
|
|
86
86
|
|
|
87
87
|
COPY package*.json ./
|
package/src/docker/index.ts
CHANGED
|
@@ -110,7 +110,7 @@ function getPackageManagerCommands(packageManager: PackageManager, hasNpmLockfil
|
|
|
110
110
|
function buildDockerfile(outputPath: string, commands: PackageManagerCommands): string {
|
|
111
111
|
const prepareStep = commands.prepare ? `${commands.prepare}\n` : '';
|
|
112
112
|
|
|
113
|
-
return `FROM node:
|
|
113
|
+
return `FROM node:24-alpine AS build
|
|
114
114
|
WORKDIR /app
|
|
115
115
|
|
|
116
116
|
COPY package*.json ./
|