sigpro 1.0.0 → 1.0.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 +13 -1
- package/index.js +12 -6
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -57,7 +57,17 @@ What emerged is a library that proves we've reached a turning point: the web is
|
|
|
57
57
|
*"Stop fighting the platform. Start building with it."*
|
|
58
58
|
|
|
59
59
|
## 📦 Installation
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
npm install sigpro
|
|
63
|
+
```
|
|
64
|
+
or
|
|
65
|
+
```
|
|
66
|
+
bun add sigpro
|
|
67
|
+
```
|
|
68
|
+
or more simple:
|
|
69
|
+
|
|
70
|
+
copy "sigpro.js" file where you want to use it.
|
|
61
71
|
|
|
62
72
|
## 🎯 Philosophy
|
|
63
73
|
|
|
@@ -1542,3 +1552,5 @@ function useFetch(url) {
|
|
|
1542
1552
|
|
|
1543
1553
|
|
|
1544
1554
|
|
|
1555
|
+
|
|
1556
|
+
|
package/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Directly exports your plugin from sigpro.js
|
|
1
|
+
// index.js
|
|
3
2
|
|
|
4
|
-
//
|
|
5
|
-
export
|
|
3
|
+
// 1. Re-export all named core logic (signals, effects, html, etc.)
|
|
4
|
+
export * from './sigpro.js';
|
|
6
5
|
|
|
7
|
-
//
|
|
8
|
-
//
|
|
6
|
+
// 2. Import and re-export the Vite Router Plugin
|
|
7
|
+
// This allows users to import { sigproRouter } directly from the package
|
|
8
|
+
import sigproRouter from './SigProRouterPlugin/vite-plugin.sigpro.js';
|
|
9
|
+
export { sigproRouter };
|
|
10
|
+
|
|
11
|
+
// 3. Default export for the global namespace (optional)
|
|
12
|
+
// Combines core logic and the router plugin into a single object
|
|
13
|
+
import * as sigpro from './sigpro.js';
|
|
14
|
+
export default { ...sigpro, sigproRouter };
|