@lolyjs/core 0.2.0-alpha.1 → 0.2.0-alpha.3
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/LICENCE.md +9 -0
- package/README.md +12 -0
- package/dist/cli.cjs +5 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +24 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/react/hooks.cjs +134 -2
- package/dist/react/hooks.cjs.map +1 -1
- package/dist/react/hooks.d.mts +79 -1
- package/dist/react/hooks.d.ts +79 -1
- package/dist/react/hooks.js +132 -1
- package/dist/react/hooks.js.map +1 -1
- package/dist/runtime.cjs +24 -9
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +20 -5
- package/dist/runtime.js.map +1 -1
- package/package.json +3 -1
package/LICENCE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 LolyJS.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
+
## Getting Started
|
|
17
|
+
|
|
18
|
+
Create a new Loly application in seconds:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx create-loly-app mi-app
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This will create a new project with all the necessary files and dependencies. For more information about the CLI, visit the [@lolyjs/cli package](https://www.npmjs.com/package/@lolyjs/cli).
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
16
28
|
## Overview
|
|
17
29
|
|
|
18
30
|
Loly is a full-stack React framework that combines the simplicity of file-based routing with powerful server-side rendering, static site generation, and unique features like native WebSocket support and route-level middlewares.
|
package/dist/cli.cjs
CHANGED
|
@@ -5093,7 +5093,7 @@ async function startProdServer(options = {}) {
|
|
|
5093
5093
|
var import_client5 = require("react-dom/client");
|
|
5094
5094
|
|
|
5095
5095
|
// modules/runtime/client/AppShell.tsx
|
|
5096
|
-
var
|
|
5096
|
+
var import_react3 = require("react");
|
|
5097
5097
|
|
|
5098
5098
|
// modules/runtime/client/RouterView.tsx
|
|
5099
5099
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -5122,6 +5122,10 @@ var dataCache = cacheStore.data;
|
|
|
5122
5122
|
var pathIndex = cacheStore.index;
|
|
5123
5123
|
var lru = cacheStore.lru;
|
|
5124
5124
|
|
|
5125
|
+
// modules/runtime/client/RouterContext.tsx
|
|
5126
|
+
var import_react2 = require("react");
|
|
5127
|
+
var RouterContext = (0, import_react2.createContext)(null);
|
|
5128
|
+
|
|
5125
5129
|
// modules/runtime/client/AppShell.tsx
|
|
5126
5130
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
5127
5131
|
|