create-nativue 0.4.0 → 0.4.2
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.md +18 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,8 +3,24 @@
|
|
|
3
3
|
Creates a [nativue](https://github.com/nativue/nativue) app, with its iOS and Android projects:
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
npm create nativue@latest my-app
|
|
6
|
+
npm create nativue@latest my-app
|
|
7
7
|
cd my-app
|
|
8
8
|
npm install
|
|
9
|
-
npm run ios # or npm run android
|
|
9
|
+
npm run ios # or: npm run android
|
|
10
10
|
```
|
|
11
|
+
|
|
12
|
+
The app's bundle id defaults to `com.example.myapp`. Set yours with
|
|
13
|
+
`npm create nativue@latest my-app -- --bundle-id com.company.myapp`, or later in Xcode and in
|
|
14
|
+
`android/app/build.gradle.kts`.
|
|
15
|
+
|
|
16
|
+
The new app has a starter screen, TypeScript, and these scripts:
|
|
17
|
+
|
|
18
|
+
| Script | What it does |
|
|
19
|
+
| ------------------- | ---------------------------------------------------------------------- |
|
|
20
|
+
| `npm run ios` | builds the app, opens it on an iOS simulator, then runs the dev server |
|
|
21
|
+
| `npm run android` | the same on an Android emulator |
|
|
22
|
+
| `npm run dev` | the dev server alone: the app reloads on save |
|
|
23
|
+
| `npm run build` | bundles the app for a release build |
|
|
24
|
+
| `npm run typecheck` | type-checks the app, templates included |
|
|
25
|
+
|
|
26
|
+
Next: [Getting started](https://github.com/nativue/nativue/blob/main/docs/getting-started.md).
|