@ng-native/schematics 0.3.0 → 0.5.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/files/AGENTS.md +8 -3
- package/migrations.json +1 -1
- package/package.json +5 -2
package/files/AGENTS.md
CHANGED
|
@@ -31,12 +31,17 @@ change; both are fast.
|
|
|
31
31
|
imported from `@ng-native/components` into the component's `imports`, like any Angular
|
|
32
32
|
component: `imports: [View, Text]`. `<View>` compiles to an empty template, and an element used
|
|
33
33
|
without its import renders as a plain view.
|
|
34
|
-
- **There is no DOM.** No `document`, no `window`, no `<
|
|
35
|
-
|
|
34
|
+
- **There is no DOM.** No `document`, no `window`, no `<button>`, `<a>`, `<input>` or `<img>`, no
|
|
35
|
+
`@angular/platform-browser`, and no `@angular/animations`. Use the native elements above. HTML's
|
|
36
|
+
text elements (`p`, `span`, `h1`, `strong`) draw as text and its layout elements (`div`,
|
|
37
|
+
`section`, `ul`) as plain views, with none of a browser's default styles.
|
|
36
38
|
- **A component's host is a flex item.** `<app-case-list />` commits as a view of its own, with no
|
|
37
39
|
`flex`, so a `flex: 1` scroll view inside it gets a height of zero and shows nothing. A component
|
|
38
40
|
that fills the space it is given sets `host: { style: 'flex: 1' }` (or `:host { flex: 1; }`).
|
|
39
|
-
- **Text
|
|
41
|
+
- **Text is drawn in a text element.** `<text>` is the one with inputs and outputs (`numberOfLines`,
|
|
42
|
+
`(press)`). `p`, `span` and the other HTML text elements are text while they hold only text and
|
|
43
|
+
other text elements; one that holds a view is a view. Text written straight into a view is given
|
|
44
|
+
a paragraph of its own, one per run, and never flows inline with the elements beside it.
|
|
40
45
|
- **Events are native:** `(press)` on `<pressable>`, not `(click)`; `[(value)]` or `(changeText)` on
|
|
41
46
|
`<text-input>`; `(scroll)`, `(layout)`. A pressable text is `<text pressable (press)="...">`.
|
|
42
47
|
- **Signals, zoneless, AOT.** State is signals and `computed()`; there is no zone.js, so nothing
|
package/migrations.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
3
|
"schematics": {
|
|
4
4
|
"sync-app-versions": {
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.5.0",
|
|
6
6
|
"description": "Move the @ng-native packages each project's own package.json lists to the new version.",
|
|
7
7
|
"factory": "./migrations/run.cjs#sync-app-versions"
|
|
8
8
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-native/schematics",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "ng add and ng generate for Angular Native: an Expo app in an Angular CLI workspace, with builders that run it.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@angular-devkit/architect": ">=0.2200.0 <0.2300.0",
|
|
46
46
|
"@angular-devkit/core": "^22.0.0",
|
|
47
47
|
"@angular-devkit/schematics": "^22.0.0",
|
|
48
|
-
"@ng-native/migrate": "0.
|
|
48
|
+
"@ng-native/migrate": "0.5.0",
|
|
49
49
|
"semver": "^7.7.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -57,6 +57,9 @@
|
|
|
57
57
|
"tags": [
|
|
58
58
|
"scope:schematics",
|
|
59
59
|
"layer:build"
|
|
60
|
+
],
|
|
61
|
+
"implicitDependencies": [
|
|
62
|
+
"@ng-native/template"
|
|
60
63
|
]
|
|
61
64
|
},
|
|
62
65
|
"license": "MIT",
|