create-nativue 0.15.0 → 0.15.3
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/package.json
CHANGED
|
@@ -20,6 +20,7 @@ hello('nativue') // 'Hello, nativue, from iOS'
|
|
|
20
20
|
- `src/index.ts` is what apps import; `ios/__PASCAL__Plugin.swift` and
|
|
21
21
|
`android/src/main/java/__KOTLIN_PATH__/__PASCAL__Plugin.kt` are its native side.
|
|
22
22
|
- Try it in an app with `npm install ../__NAME__` from the app, then rebuild the app.
|
|
23
|
+
- `npm run format` formats it with nativue's Prettier settings (`.prettierrc.json`).
|
|
23
24
|
- Swift packages it needs go in `package.json`'s `"nativue": { "ios": { "dependencies": [...] } }`,
|
|
24
25
|
Android libraries in `android/build.gradle.kts`.
|
|
25
26
|
- To change the app's `Info.plist`, manifest or Gradle files, add a config plugin:
|
|
@@ -12,14 +12,16 @@
|
|
|
12
12
|
".": "./src/index.ts"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"typecheck": "vue-tsc"
|
|
15
|
+
"typecheck": "vue-tsc",
|
|
16
|
+
"format": "prettier --write src"
|
|
16
17
|
},
|
|
17
18
|
"peerDependencies": {
|
|
18
19
|
"@nativue/core": ">=__NATIVUE_VERSION__"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"@nativue/core": "^__NATIVUE_VERSION__",
|
|
22
|
-
"
|
|
23
|
+
"prettier": "^3.10.1",
|
|
24
|
+
"typescript": "^6.0.3",
|
|
23
25
|
"vue-tsc": "^3.3.14"
|
|
24
26
|
},
|
|
25
27
|
"nativue": {
|