essor 0.0.15-beta.8 â 0.0.16-beta.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 +120 -11
- package/dist/chunk-6WF7W6MG.esm.js +4379 -0
- package/dist/chunk-6WF7W6MG.esm.js.map +1 -0
- package/dist/chunk-X5T6LJES.dev.esm.js +19 -0
- package/dist/chunk-X5T6LJES.dev.esm.js.map +1 -0
- package/dist/essor.cjs.js +4362 -23
- package/dist/essor.cjs.js.map +1 -1
- package/dist/essor.d.cts +2 -1
- package/dist/essor.d.ts +2 -1
- package/dist/essor.dev.cjs.js +15 -4098
- package/dist/essor.dev.cjs.js.map +1 -1
- package/dist/essor.dev.esm.js +4 -4027
- package/dist/essor.dev.esm.js.map +1 -1
- package/dist/essor.esm.js +11 -22
- package/dist/essor.esm.js.map +1 -1
- package/dist/server.cjs.js +474 -0
- package/dist/server.cjs.js.map +1 -0
- package/dist/server.d.cts +4 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.dev.cjs.js +9 -0
- package/dist/server.dev.cjs.js.map +1 -0
- package/dist/server.dev.esm.js +9 -0
- package/dist/server.dev.esm.js.map +1 -0
- package/dist/server.esm.js +278 -0
- package/dist/server.esm.js.map +1 -0
- package/package.json +20 -17
package/README.md
CHANGED
|
@@ -1,27 +1,136 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Essor - Next Generation Frontend Framework
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<div align="center">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
**đ It's just JavaScript - Instant start, ultimate performance, no complex concepts**
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/essor)
|
|
10
|
+
[](https://www.npmjs.com/package/essor)
|
|
11
|
+
[](https://github.com/estjs/essor/blob/main/LICENSE)
|
|
12
|
+
[](https://github.com/estjs/essor/issues)
|
|
13
|
+

|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
English | [įŽäŊ䏿](./README_CN.md)
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
## ⨠Features
|
|
21
|
+
|
|
22
|
+
- đ **Ultimate Performance** - Signal-based reactive system, no virtual DOM
|
|
23
|
+
- đ¯ **Zero Config** - Works out of the box, no complex configuration
|
|
24
|
+
- đ§ **TypeScript** - Full TypeScript support
|
|
25
|
+
- đ¨ **JSX Support** - Familiar JSX syntax, easy to learn
|
|
26
|
+
- đĻ **Modular** - Tree-shakable, tiny bundle size
|
|
27
|
+
- đ **SSR/SSG** - Server-side rendering and static site generation support
|
|
28
|
+
- đ **HMR** - Hot module replacement, excellent development experience
|
|
29
|
+
- đ ī¸ **Toolchain** - Complete build toolchain support
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## đ Quick Start
|
|
33
|
+
|
|
34
|
+
### 1. Create Project
|
|
6
35
|
|
|
7
36
|
```bash
|
|
37
|
+
# Using create-essor
|
|
38
|
+
npm create essor@latest my-app
|
|
39
|
+
|
|
40
|
+
# Or install manually
|
|
8
41
|
npm install essor
|
|
9
42
|
```
|
|
10
43
|
|
|
11
|
-
|
|
44
|
+
### 2. Write Component
|
|
12
45
|
|
|
13
|
-
```
|
|
14
|
-
import {
|
|
46
|
+
```jsx
|
|
47
|
+
import { signal } from 'essor';
|
|
15
48
|
|
|
16
|
-
function
|
|
49
|
+
function Counter() {
|
|
17
50
|
const count = signal(0);
|
|
18
|
-
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<div>
|
|
54
|
+
<h1>Count: {count}</h1>
|
|
55
|
+
<button onClick={() => count.value++}>
|
|
56
|
+
Increment
|
|
57
|
+
</button>
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
19
60
|
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 3. Start Development Server
|
|
20
64
|
|
|
21
|
-
|
|
65
|
+
```bash
|
|
66
|
+
npm run dev
|
|
22
67
|
```
|
|
23
68
|
|
|
69
|
+
## đ Documentation
|
|
70
|
+
|
|
71
|
+
- [Documentation](https://essor.netlify.app/)
|
|
72
|
+
- [API Reference](https://essor.netlify.app/api)
|
|
73
|
+
- [Examples](./examples)
|
|
74
|
+
- [Online Playground](https://essor-playground.netlify.app/)
|
|
75
|
+
|
|
76
|
+
## đ¯ Examples
|
|
77
|
+
|
|
78
|
+
Check out the [examples](./examples) directory for more examples:
|
|
79
|
+
|
|
80
|
+
- [Signals](./examples/signals) - Signal state, computed outputs, and batch updates
|
|
81
|
+
- [TodoMVC](./examples/todo-mvc) - Basic todo flows
|
|
82
|
+
- [Fragment](./examples/fragment) - Wrapper-free table rows
|
|
83
|
+
- [Binding](./examples/binding) - Bind API across text, select, range, and files
|
|
84
|
+
- [Provide](./examples/provide) - Scoped dependency injection
|
|
85
|
+
- [Portal](./examples/portal) - Portal target switching and inline fallback
|
|
86
|
+
- [Suspense](./examples/suspense) - Async boundaries with loading fallbacks
|
|
87
|
+
- [HMR](./examples/hmr) - Stateful hot-refresh demo
|
|
88
|
+
- [Hydrate](./examples/hydrate) - SSR shell and client hydration
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## đ¤ Contributing
|
|
92
|
+
|
|
93
|
+
We welcome all forms of contributions!
|
|
94
|
+
|
|
95
|
+
- đ [Report Bugs](https://github.com/estjs/essor/issues)
|
|
96
|
+
- đĄ [Suggest Features](https://github.com/estjs/essor/discussions)
|
|
97
|
+
- đ [Submit PRs](https://github.com/estjs/essor/pulls)
|
|
98
|
+
- đ [Improve Documentation](https://github.com/estjs/essor/tree/main/docs)
|
|
99
|
+
|
|
100
|
+
### Development Setup
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# Clone repository
|
|
104
|
+
git clone https://github.com/estjs/essor.git
|
|
105
|
+
cd essor
|
|
106
|
+
|
|
107
|
+
# Install dependencies
|
|
108
|
+
pnpm install
|
|
109
|
+
|
|
110
|
+
# Start development mode
|
|
111
|
+
pnpm dev
|
|
112
|
+
|
|
113
|
+
# Run tests
|
|
114
|
+
pnpm test
|
|
115
|
+
|
|
116
|
+
# Build project
|
|
117
|
+
pnpm build
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## đ License
|
|
121
|
+
|
|
122
|
+
[MIT License](./LICENSE)
|
|
123
|
+
|
|
124
|
+
## đ Acknowledgments
|
|
125
|
+
|
|
126
|
+
Thanks to all developers who contributed to Essor!
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
<div align="center">
|
|
131
|
+
|
|
132
|
+
**If this project helps you, please give us a âī¸**
|
|
24
133
|
|
|
25
|
-
|
|
134
|
+
[GitHub](https://github.com/estjs/essor) | [Documentation](https://essor.netlify.app/) | [Discussions](https://github.com/estjs/essor/discussions)
|
|
26
135
|
|
|
27
|
-
|
|
136
|
+
</div>
|