round-core 0.0.7 → 0.0.9
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 +62 -41
- package/dist/index.d.ts +341 -341
- package/dist/index.js +211 -192
- package/dist/vite-plugin.js +52 -3
- package/package.json +7 -4
- package/.github/workflows/benchmarks.yml +0 -44
- package/Round.png +0 -0
- package/benchmarks/apps/react/index.html +0 -9
- package/benchmarks/apps/react/main.jsx +0 -25
- package/benchmarks/apps/react/vite.config.js +0 -12
- package/benchmarks/apps/round/index.html +0 -11
- package/benchmarks/apps/round/main.jsx +0 -22
- package/benchmarks/apps/round/vite.config.js +0 -15
- package/benchmarks/bun.lock +0 -497
- package/benchmarks/dist-bench/react/assets/index-9KGqIPOU.js +0 -8
- package/benchmarks/dist-bench/react/index.html +0 -10
- package/benchmarks/dist-bench/round/assets/index-CBBIRhox.js +0 -52
- package/benchmarks/dist-bench/round/index.html +0 -8
- package/benchmarks/package.json +0 -22
- package/benchmarks/scripts/measure-build.js +0 -64
- package/benchmarks/tests/runtime.bench.js +0 -51
- package/benchmarks/vitest.config.js +0 -8
- package/bun.lock +0 -425
- package/cli.js +0 -2
- package/extension/.vscodeignore +0 -5
- package/extension/LICENSE +0 -21
- package/extension/cgmanifest.json +0 -45
- package/extension/extension.js +0 -163
- package/extension/images/round-config-dark.svg +0 -10
- package/extension/images/round-config-light.svg +0 -10
- package/extension/images/round-dark.svg +0 -10
- package/extension/images/round-light.svg +0 -10
- package/extension/javascript-language-configuration.json +0 -241
- package/extension/package-lock.json +0 -97
- package/extension/package.json +0 -119
- package/extension/package.nls.json +0 -4
- package/extension/round-0.1.0.vsix +0 -0
- package/extension/round-lsp/package-lock.json +0 -185
- package/extension/round-lsp/package.json +0 -21
- package/extension/round-lsp/src/round-transformer-lsp.js +0 -248
- package/extension/round-lsp/src/server.js +0 -396
- package/extension/snippets/javascript.code-snippets +0 -266
- package/extension/snippets/round.code-snippets +0 -109
- package/extension/syntaxes/JavaScript.tmLanguage.json +0 -6001
- package/extension/syntaxes/JavaScriptReact.tmLanguage.json +0 -6066
- package/extension/syntaxes/Readme.md +0 -12
- package/extension/syntaxes/Regular Expressions (JavaScript).tmLanguage +0 -237
- package/extension/syntaxes/Round.tmLanguage.json +0 -290
- package/extension/syntaxes/RoundInject.tmLanguage.json +0 -20
- package/extension/tags-language-configuration.json +0 -152
- package/extension/temp_astro/package-lock.json +0 -912
- package/extension/temp_astro/package.json +0 -16
- package/extension/types/round-core.d.ts +0 -326
- package/index.js +0 -2
- package/logo.svg +0 -10
- package/src/cli.js +0 -608
- package/src/compiler/index.js +0 -2
- package/src/compiler/transformer.js +0 -443
- package/src/compiler/vite-plugin.js +0 -472
- package/src/index.d.ts +0 -341
- package/src/index.js +0 -45
- package/src/runtime/context.js +0 -101
- package/src/runtime/dom.js +0 -403
- package/src/runtime/error-boundary.js +0 -48
- package/src/runtime/error-reporter.js +0 -13
- package/src/runtime/error-store.js +0 -85
- package/src/runtime/errors.js +0 -152
- package/src/runtime/lifecycle.js +0 -142
- package/src/runtime/markdown.js +0 -72
- package/src/runtime/router.js +0 -468
- package/src/runtime/signals.js +0 -548
- package/src/runtime/store.js +0 -215
- package/src/runtime/suspense.js +0 -128
- package/vite.config.build.js +0 -48
- package/vite.config.js +0 -10
- package/vitest.config.js +0 -8
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "round-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "A lightweight frontend framework for SPA with signals and fine grained reactivity",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
+
"readme": "README.md",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": "./dist/index.js",
|
|
9
10
|
"./vite-plugin": "./dist/vite-plugin.js"
|
|
10
11
|
},
|
|
11
12
|
"type": "module",
|
|
12
|
-
"icon": "
|
|
13
|
+
"icon": "Round.png",
|
|
13
14
|
"repository": {
|
|
14
15
|
"url": "https://github.com/ZtaMDev/RoundJS.git"
|
|
15
16
|
},
|
|
@@ -20,7 +21,6 @@
|
|
|
20
21
|
"dev": "node ./src/cli.js dev --config ./test/main/round.config.json",
|
|
21
22
|
"build": "node ./src/cli.js build --config ./test/main/round.config.json",
|
|
22
23
|
"build:core": "vite build -c vite.config.build.js",
|
|
23
|
-
"test": "vitest run",
|
|
24
24
|
"bench": "bun run --cwd benchmarks bench",
|
|
25
25
|
"bench:build": "bun run --cwd benchmarks bench:build",
|
|
26
26
|
"bench:runtime": "bun run --cwd benchmarks bench:runtime"
|
|
@@ -33,13 +33,16 @@
|
|
|
33
33
|
],
|
|
34
34
|
"author": "Round Framework Team",
|
|
35
35
|
"license": "MIT",
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
36
39
|
"dependencies": {
|
|
37
40
|
"marked": "^12.0.2",
|
|
38
41
|
"vite": "^5.0.0"
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
41
|
-
"bun-types": "latest",
|
|
42
44
|
"@types/node": "latest",
|
|
45
|
+
"bun-types": "latest",
|
|
43
46
|
"vitest": "^1.6.0"
|
|
44
47
|
},
|
|
45
48
|
"peerDependencies": {
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
name: Framework Benchmarks
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ main ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ main ]
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
benchmark:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v4
|
|
16
|
-
|
|
17
|
-
- name: Setup Bun
|
|
18
|
-
uses: oven-sh/setup-bun@v1
|
|
19
|
-
with:
|
|
20
|
-
bun-version: latest
|
|
21
|
-
|
|
22
|
-
- name: Install Root Dependencies
|
|
23
|
-
run: bun install
|
|
24
|
-
|
|
25
|
-
- name: Build Round Core
|
|
26
|
-
run: bun run build:core
|
|
27
|
-
|
|
28
|
-
- name: Install Benchmark Dependencies
|
|
29
|
-
working-directory: ./benchmarks
|
|
30
|
-
run: bun install
|
|
31
|
-
|
|
32
|
-
- name: Run Build Benchmarks
|
|
33
|
-
working-directory: ./benchmarks
|
|
34
|
-
run: bun run bench:build
|
|
35
|
-
|
|
36
|
-
- name: Run Runtime Benchmarks
|
|
37
|
-
working-directory: ./benchmarks
|
|
38
|
-
run: bun run bench:runtime
|
|
39
|
-
|
|
40
|
-
- name: Upload Report
|
|
41
|
-
uses: actions/upload-artifact@v4
|
|
42
|
-
with:
|
|
43
|
-
name: benchmark-report
|
|
44
|
-
path: benchmarks/reports/build-bench.json
|
package/Round.png
DELETED
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
|
|
4
|
-
function App() {
|
|
5
|
-
const [count, setCount] = useState(0);
|
|
6
|
-
const [items] = useState(Array.from({ length: 1000 }, (_, i) => i));
|
|
7
|
-
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
console.log('React App Mounted');
|
|
10
|
-
}, []);
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<div>
|
|
14
|
-
<h1>React Benchmark</h1>
|
|
15
|
-
<button onClick={() => setCount(c => c + 1)}>Count: {count}</button>
|
|
16
|
-
<ul>
|
|
17
|
-
{items.map(i => (
|
|
18
|
-
<li key={i}>Item {i}</li>
|
|
19
|
-
))}
|
|
20
|
-
</ul>
|
|
21
|
-
</div>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
ReactDOM.createRoot(document.getElementById('root')).render(<App />);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createElement, signal, onMount } from 'round-core';
|
|
2
|
-
|
|
3
|
-
export default function App() {
|
|
4
|
-
const count = signal(0);
|
|
5
|
-
const items = signal(Array.from({ length: 1000 }, (_, i) => i));
|
|
6
|
-
|
|
7
|
-
onMount(() => {
|
|
8
|
-
console.log('Round App Mounted');
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div>
|
|
13
|
-
<h1>Round Benchmark</h1>
|
|
14
|
-
<button onClick={() => count(count() + 1)}>Count: {count}</button>
|
|
15
|
-
<ul>
|
|
16
|
-
{() => items().map(i => (
|
|
17
|
-
<li key={i}>Item {i}</li>
|
|
18
|
-
))}
|
|
19
|
-
</ul>
|
|
20
|
-
</div>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import RoundPlugin from 'round-core/vite-plugin'; // Use package export
|
|
3
|
-
import path from 'path';
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
root: __dirname,
|
|
7
|
-
plugins: [
|
|
8
|
-
RoundPlugin()
|
|
9
|
-
],
|
|
10
|
-
build: {
|
|
11
|
-
outDir: '../../dist-bench/round',
|
|
12
|
-
emptyOutDir: true,
|
|
13
|
-
minify: true
|
|
14
|
-
}
|
|
15
|
-
});
|