ruflet 0.0.18 → 0.0.20
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.
- checksums.yaml +4 -4
- data/README.md +54 -1
- data/lib/ruflet/cli/build_command.rb +697 -118
- data/lib/ruflet/cli/extra_command.rb +11 -8
- data/lib/ruflet/cli/flutter_sdk.rb +42 -7
- data/lib/ruflet/cli/new_command.rb +112 -36
- data/lib/ruflet/cli/run_command.rb +326 -70
- data/lib/ruflet/cli/templates.rb +8 -5
- data/lib/ruflet/cli.rb +3 -3
- data/lib/ruflet/hot_reload/harness.rb +32 -0
- data/lib/ruflet/hot_reload.rb +226 -0
- data/lib/ruflet/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78de8fe06ee145d7d509f553ec4905750a27610051ce6da3d1de48dc7b79fb64
|
|
4
|
+
data.tar.gz: 2a6527b6605fb968b7b219503e1049bf8cb0c1cbe3b35ed8c0af5f5ae4237d0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1573aa2e047b0f7e6497e4f9a94f4a4fd81ee842d6c9e17221b814e4b289c84882302e06049274d64882ae2b8c833507d7cd86b8cfbc95da06028371544dec3d
|
|
7
|
+
data.tar.gz: 45bc272c824b3a09783e4be9202ce87272ce8f2715bd23e06a6a8db5e3839c3604b70aa629da21a1d98b91daf73beb5e2038b3c68d13cdda3e829b316ad9db23
|
data/README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
1
|
# ruflet
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`ruflet` is the command-line package for creating, running, diagnosing, and
|
|
4
|
+
building Ruflet applications.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
gem install ruflet
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Create a project and run it:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
ruflet new my_app
|
|
16
|
+
cd my_app
|
|
17
|
+
bundle install
|
|
18
|
+
ruflet run --web
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Generated projects include `ruflet_core` and `ruflet_server` as application
|
|
22
|
+
dependencies. Run Ruflet commands directly inside the generated project.
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
ruflet new <appname>
|
|
28
|
+
ruflet run [scriptname|path] [--web|--desktop] [--port PORT]
|
|
29
|
+
ruflet debug [scriptname|path]
|
|
30
|
+
ruflet devices
|
|
31
|
+
ruflet emulators
|
|
32
|
+
ruflet doctor [--fix]
|
|
33
|
+
ruflet update [web|desktop|all] [--check] [--force]
|
|
34
|
+
ruflet build <apk|android|ios|aab|web|macos|windows|linux> [--self]
|
|
35
|
+
ruflet install [--device DEVICE_ID]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Commands that create, diagnose, or build a Flutter client compare the cached
|
|
39
|
+
template revision with `AdamMusa/ruflet-template` on GitHub. When `main`
|
|
40
|
+
changes, Ruflet downloads the new template and refreshes its managed
|
|
41
|
+
`build/client` automatically. If GitHub is unavailable, Ruflet keeps using the
|
|
42
|
+
last complete cached template. Use `ruflet doctor --fix` to force a clean
|
|
43
|
+
template download.
|
|
44
|
+
|
|
45
|
+
Desktop and web runs use the completed `prebuild-main` client channel by
|
|
46
|
+
default. Ruflet checks the channel at most once every six hours and downloads
|
|
47
|
+
a new platform build only after every required prebuild job has finished.
|
|
48
|
+
Use `ruflet update --force` for an immediate refresh. Set
|
|
49
|
+
`RUFLET_CLIENT_CHANNEL=stable` to stay on versioned release assets,
|
|
50
|
+
`RUFLET_CLIENT_UPDATE_INTERVAL=0` to check on every run, or
|
|
51
|
+
`RUFLET_CLIENT_AUTO_UPDATE=0` to disable automatic client updates.
|
|
52
|
+
|
|
53
|
+
Run `ruflet install` without `--device` to choose from a numbered list of
|
|
54
|
+
connected devices. Pass `--device DEVICE_ID` to skip the prompt.
|
|
55
|
+
|
|
56
|
+
Run `ruflet help <command>` for all options.
|