You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update README file to include new carton 1.0 implementation. (#243)
* Update README file to include new carton 1.0 implementation.
* Update README to include the updated Carton 1.0 dependency to the JavaScriptKit Example.
* Collapsible Legacy Section.
* Fix Readme Package description for carton usage.
* Add horizontal rules to Legacy block for readability.
* Added instruction to run carton from swift in README.
Now you can activate the package dependency through swift:
191
+
192
+
```
193
+
swift run carton dev
194
+
```
195
+
196
+
If you have multiple products in your package, you can also used the product flag:
197
+
198
+
```
199
+
swift run carton dev --product MyApp
200
+
```
201
+
202
+
> [!WARNING]
203
+
> - If you already use `carton` before 0.x.x versions via Homebrew, you can remove it with `brew uninstall carton` and install the new version as a SwiftPM dependency.
204
+
> - Also please remove the old `.build` directory before using the new `carton`
205
+
206
+
<details><summary>Legacy Installation</summary>
207
+
208
+
---
183
209
184
210
As a part of these steps
185
211
you'll install `carton` via [Homebrew](https://brew.sh/) on macOS (you can also use the
@@ -218,6 +244,10 @@ carton init --template basic
218
244
carton dev
219
245
```
220
246
247
+
---
248
+
249
+
</details>
250
+
221
251
5. Open [http://127.0.0.1:8080/](http://127.0.0.1:8080/) in your browser and a developer console
222
252
within it. You'll see `Hello, world!` output in the console. You can edit the app source code in
223
253
your favorite editor and save it, `carton` will immediately rebuild the app and reload all
0 commit comments