bundo-appgen 0.0.3 → 0.0.5
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/LICENSE +21 -0
- package/README.md +2 -2
- package/package.json +2 -1
- package/template/macos/Podfile +17 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) RakaDoank
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Generate native app project for React Native app host easily with a single JavaS
|
|
|
21
21
|
- [CocoaPods](https://cocoapods.org) dependency manager
|
|
22
22
|
- (Optional) [tsx](https://github.com/privatenumber/tsx) if you want to use TypeScript configuration for `bundo-appgen`
|
|
23
23
|
|
|
24
|
-
Technically, you can use [Bun](https://github.com/oven-sh/bun), but `bundo-appgen` is depending on [Node.js Permission Model](https://nodejs.org/api/permissions.html) for `bundo-appgen` plugins. We may support for [Bun](https://github.com/over-sh/bun) fully until the permission model is supported. See [Bun #6617 issue](https://github.com/oven-sh/bun/issues/6617). You can still use [Bun](https://github.com/oven-sh/bun) for local app development
|
|
24
|
+
Technically, you can use [Bun](https://github.com/oven-sh/bun), but `bundo-appgen` is depending on [Node.js Permission Model](https://nodejs.org/api/permissions.html) for `bundo-appgen` plugins. We may support for [Bun](https://github.com/over-sh/bun) fully until the permission model is supported. See [Bun #6617 issue](https://github.com/oven-sh/bun/issues/6617). You can still use [Bun](https://github.com/oven-sh/bun) for local app development.
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
@@ -231,7 +231,7 @@ export default {
|
|
|
231
231
|
} satisfies Config.Data
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
-
`bundo-appgen` is currently supporting macOS. Right after we are sure that our appgen (App Generator) for macOS is fully-ready-stabily, `bundo-appgen` will support the Windows platform, because it is really our primary main focus initially.
|
|
234
|
+
`bundo-appgen` is currently supporting macOS. Right after we are sure that our appgen (App Generator) for macOS is fully-ready-stabily, `bundo-appgen` will try to support the Windows platform, because it is really our primary main focus initially.
|
|
235
235
|
|
|
236
236
|
For Android and iOS, it is better to use [Expo](https://github.com/expo/expo) right now. It provides variety of first party packages in its ecosystem.
|
|
237
237
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bundo-appgen",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "App generator CLI for React Native macOS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "RakaDoank <rakaaudira@gmail.com> (https://github.com/RakaDoank)",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"types": "./lib/typescript/index.d.mts",
|
|
19
19
|
"files": [
|
|
20
20
|
"bin.mjs",
|
|
21
|
+
"LICENSE",
|
|
21
22
|
"lib",
|
|
22
23
|
"src",
|
|
23
24
|
"template",
|
package/template/macos/Podfile
CHANGED
|
@@ -5,18 +5,33 @@ require Pod::Executable.execute_command('node', ['-p',
|
|
|
5
5
|
{paths: [process.argv[1]]},
|
|
6
6
|
)', __dir__]).strip
|
|
7
7
|
|
|
8
|
+
require 'pathname'
|
|
9
|
+
|
|
10
|
+
# Find the real "react-native-macos" path.
|
|
11
|
+
react_native_macos_path = Pathname.new(
|
|
12
|
+
Pod::Executable.execute_command(
|
|
13
|
+
'node',
|
|
14
|
+
[
|
|
15
|
+
'-p',
|
|
16
|
+
'require.resolve("react-native-macos/package.json")',
|
|
17
|
+
],
|
|
18
|
+
).strip.gsub('/package.json', '')
|
|
19
|
+
).relative_path_from(__dir__).to_path
|
|
20
|
+
|
|
8
21
|
prepare_react_native_project!
|
|
9
22
|
|
|
10
23
|
target 'HelloWorld' do
|
|
11
24
|
platform :macos, '14.0'
|
|
12
25
|
|
|
26
|
+
# Do not use `config[:reactNativePath]` from here because,
|
|
27
|
+
# the `use_native_modules` def is still trying to find the "react-native" instead of "react-native-macos" path.
|
|
13
28
|
config = use_native_modules!
|
|
14
29
|
|
|
15
30
|
# Flags change depending on the env values.
|
|
16
31
|
flags = get_default_flags()
|
|
17
32
|
|
|
18
33
|
use_react_native!(
|
|
19
|
-
:path =>
|
|
34
|
+
:path => react_native_macos_path,
|
|
20
35
|
:fabric_enabled => true,
|
|
21
36
|
# An absolute path to your application root.
|
|
22
37
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
@@ -25,7 +40,7 @@ target 'HelloWorld' do
|
|
|
25
40
|
post_install do |installer|
|
|
26
41
|
react_native_post_install(
|
|
27
42
|
installer,
|
|
28
|
-
|
|
43
|
+
react_native_macos_path,
|
|
29
44
|
:mac_catalyst_enabled => false,
|
|
30
45
|
)
|
|
31
46
|
end
|