@taskyon/tyclient 0.4.6 → 0.5.1

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 ADDED
@@ -0,0 +1,57 @@
1
+ # Taskyon Client Library
2
+
3
+ This is a lightweight library that lets you interact with a taskyon instance
4
+
5
+ - sending tasks & waiting for results
6
+ - initialize taskyon in iframe
7
+
8
+ ... and more
9
+
10
+ ## Development
11
+
12
+ We can use this package in a different app during development like this:
13
+
14
+ ### Using `@taskyon/tyclient` Locally (Before Publishing)
15
+
16
+ You can test this package in another app without publishing to npm.
17
+ Choose the method that fits your setup:
18
+
19
+ #### 1. Yarn Workspaces (best if in the same monorepo)
20
+
21
+ Add the dependency in the consuming app’s `package.json`:
22
+
23
+ ```json
24
+ "dependencies": {
25
+ "@taskyon/tyclient": "0.4.6"
26
+ }
27
+ ```
28
+
29
+ Run `yarn install` — Yarn will automatically link the local package.
30
+
31
+ #### 2. Local File Install (recommended for external repos)
32
+
33
+ Install from a relative path:
34
+
35
+ ```bash
36
+ yarn add file:../taskyon_front/packages/tyclient
37
+ ```
38
+
39
+ This emulates a real npm install using your local build output.
40
+
41
+ #### 3. Yarn Link (quick symlink testing)
42
+
43
+ In the package:
44
+
45
+ ```bash
46
+ cd packages/tyclient
47
+ yarn link
48
+ ```
49
+
50
+ In the consuming app:
51
+
52
+ ```bash
53
+ yarn link @taskyon/tyclient
54
+ ```
55
+
56
+ This symlinks the package into `node_modules`.
57
+ ⚠️ May cause duplicate dependency issues.