@nipe-solutions/flex-layout-codemod 2.0.0-beta.3 → 2.0.0-beta.4
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/CHANGELOG.md +14 -0
- package/README.md +5 -3
- package/dist/cli.js +1204 -568
- package/dist/cli.js.map +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bf4d213: Add declared Tailwind v4 target profiles, prefix and breakpoint awareness, static configuration analysis, target environment reports, custom source breakpoint configuration, and shared generated-template validation for browser previews. Preserve exact media semantics and unknown source directives.
|
|
8
|
+
|
|
9
|
+
- Lower the CLI runtime requirement to Node 22.12, with Node 22 and 24 core/package CI coverage.
|
|
10
|
+
- Resolve declarative Tailwind v4 target profiles with static stylesheet analysis, prefix, breakpoint reset/removal, provenance, assumptions, and fingerprints.
|
|
11
|
+
- Generate prefix-first utilities and exact responsive variants; use named pixel minimums only with equivalent screen semantics. Compile regression output with Tailwind 4.3.3.
|
|
12
|
+
- Accept explicit source breakpoint media queries and priorities. Preserve unknown source aliases.
|
|
13
|
+
- Detect legacy `@config`, plugins, remote/unsafe imports, and source exclusions without executing project code. Reject detected configuration drift before writes.
|
|
14
|
+
- Share generated-template validation between CLI and browser preview; reject malformed proposals.
|
|
15
|
+
- Add target settings to the playground, configuration documentation, legacy Angular syntax fixtures, and a real not-found page with static 404 output.
|
|
16
|
+
|
|
3
17
|
## 2.0.0-beta.3
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Read the [detailed documentation](https://angular-flex-layout-codemod.nipesoluti
|
|
|
10
10
|
|
|
11
11
|
## Requirements and installation
|
|
12
12
|
|
|
13
|
-
The CLI requires Node.js
|
|
13
|
+
The CLI requires Node.js 22.12 or newer (tested on Node 22 and 24). This runtime can differ from your legacy Angular build runtime; the codemod reads source without loading the application dependencies. Install the current beta as an exact development dependency so your package manifest and lockfile retain the reviewed version:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
npm install --save-dev --save-exact @nipe-solutions/flex-layout-codemod@beta
|
|
@@ -23,15 +23,17 @@ See [Installation and requirements](https://angular-flex-layout-codemod.nipesolu
|
|
|
23
23
|
Create a plan and an optional JSON report without changing project templates or stylesheets:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npx flex-layout-codemod ./src --report ./reports/flex-layout.json
|
|
26
|
+
npx flex-layout-codemod ./src --target tailwind --tailwind-stylesheet ./src/styles.css --plan --report ./reports/flex-layout.json
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
The Tailwind stylesheet is optional. Supplying it lets the codemod respect a project-specific v4 prefix and breakpoint configuration. See [target configuration](https://angular-flex-layout-codemod.nipesolutions.com/docs/configuration), [responsive mapping](https://angular-flex-layout-codemod.nipesolutions.com/docs/configuration#responsive-mapping), and the [safety model](https://angular-flex-layout-codemod.nipesolutions.com/docs/safety).
|
|
30
|
+
|
|
29
31
|
Review the proposed output and every unresolved diagnostic. The report is the command's intentional filesystem output in plan mode.
|
|
30
32
|
|
|
31
33
|
Apply the reviewed Tailwind CSS plan explicitly:
|
|
32
34
|
|
|
33
35
|
```bash
|
|
34
|
-
npx flex-layout-codemod ./src --target tailwind --write
|
|
36
|
+
npx flex-layout-codemod ./src --target tailwind --tailwind-stylesheet ./src/styles.css --write
|
|
35
37
|
```
|
|
36
38
|
|
|
37
39
|
For native CSS output, target limits, output paths, and recovery behavior, follow the [migration workflow](https://angular-flex-layout-codemod.nipesolutions.com/docs/workflow). Keep the migration on a clean branch and review the resulting diff and application tests.
|