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.
Files changed (76) hide show
  1. package/README.md +62 -41
  2. package/dist/index.d.ts +341 -341
  3. package/dist/index.js +211 -192
  4. package/dist/vite-plugin.js +52 -3
  5. package/package.json +7 -4
  6. package/.github/workflows/benchmarks.yml +0 -44
  7. package/Round.png +0 -0
  8. package/benchmarks/apps/react/index.html +0 -9
  9. package/benchmarks/apps/react/main.jsx +0 -25
  10. package/benchmarks/apps/react/vite.config.js +0 -12
  11. package/benchmarks/apps/round/index.html +0 -11
  12. package/benchmarks/apps/round/main.jsx +0 -22
  13. package/benchmarks/apps/round/vite.config.js +0 -15
  14. package/benchmarks/bun.lock +0 -497
  15. package/benchmarks/dist-bench/react/assets/index-9KGqIPOU.js +0 -8
  16. package/benchmarks/dist-bench/react/index.html +0 -10
  17. package/benchmarks/dist-bench/round/assets/index-CBBIRhox.js +0 -52
  18. package/benchmarks/dist-bench/round/index.html +0 -8
  19. package/benchmarks/package.json +0 -22
  20. package/benchmarks/scripts/measure-build.js +0 -64
  21. package/benchmarks/tests/runtime.bench.js +0 -51
  22. package/benchmarks/vitest.config.js +0 -8
  23. package/bun.lock +0 -425
  24. package/cli.js +0 -2
  25. package/extension/.vscodeignore +0 -5
  26. package/extension/LICENSE +0 -21
  27. package/extension/cgmanifest.json +0 -45
  28. package/extension/extension.js +0 -163
  29. package/extension/images/round-config-dark.svg +0 -10
  30. package/extension/images/round-config-light.svg +0 -10
  31. package/extension/images/round-dark.svg +0 -10
  32. package/extension/images/round-light.svg +0 -10
  33. package/extension/javascript-language-configuration.json +0 -241
  34. package/extension/package-lock.json +0 -97
  35. package/extension/package.json +0 -119
  36. package/extension/package.nls.json +0 -4
  37. package/extension/round-0.1.0.vsix +0 -0
  38. package/extension/round-lsp/package-lock.json +0 -185
  39. package/extension/round-lsp/package.json +0 -21
  40. package/extension/round-lsp/src/round-transformer-lsp.js +0 -248
  41. package/extension/round-lsp/src/server.js +0 -396
  42. package/extension/snippets/javascript.code-snippets +0 -266
  43. package/extension/snippets/round.code-snippets +0 -109
  44. package/extension/syntaxes/JavaScript.tmLanguage.json +0 -6001
  45. package/extension/syntaxes/JavaScriptReact.tmLanguage.json +0 -6066
  46. package/extension/syntaxes/Readme.md +0 -12
  47. package/extension/syntaxes/Regular Expressions (JavaScript).tmLanguage +0 -237
  48. package/extension/syntaxes/Round.tmLanguage.json +0 -290
  49. package/extension/syntaxes/RoundInject.tmLanguage.json +0 -20
  50. package/extension/tags-language-configuration.json +0 -152
  51. package/extension/temp_astro/package-lock.json +0 -912
  52. package/extension/temp_astro/package.json +0 -16
  53. package/extension/types/round-core.d.ts +0 -326
  54. package/index.js +0 -2
  55. package/logo.svg +0 -10
  56. package/src/cli.js +0 -608
  57. package/src/compiler/index.js +0 -2
  58. package/src/compiler/transformer.js +0 -443
  59. package/src/compiler/vite-plugin.js +0 -472
  60. package/src/index.d.ts +0 -341
  61. package/src/index.js +0 -45
  62. package/src/runtime/context.js +0 -101
  63. package/src/runtime/dom.js +0 -403
  64. package/src/runtime/error-boundary.js +0 -48
  65. package/src/runtime/error-reporter.js +0 -13
  66. package/src/runtime/error-store.js +0 -85
  67. package/src/runtime/errors.js +0 -152
  68. package/src/runtime/lifecycle.js +0 -142
  69. package/src/runtime/markdown.js +0 -72
  70. package/src/runtime/router.js +0 -468
  71. package/src/runtime/signals.js +0 -548
  72. package/src/runtime/store.js +0 -215
  73. package/src/runtime/suspense.js +0 -128
  74. package/vite.config.build.js +0 -48
  75. package/vite.config.js +0 -10
  76. 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.7",
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": "round.png",
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,9 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <body>
5
- <div id="root"></div>
6
- <script type="module" src="./main.jsx"></script>
7
- </body>
8
-
9
- </html>
@@ -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,12 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react';
3
-
4
- export default defineConfig({
5
- root: __dirname,
6
- plugins: [react()],
7
- build: {
8
- outDir: '../../dist-bench/react',
9
- emptyOutDir: true,
10
- minify: true
11
- }
12
- });
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <body>
4
- <div id="app"></div>
5
- <script type="module">
6
- import { render } from 'round-core';
7
- import App from './main.jsx';
8
- render(App, document.getElementById('app'));
9
- </script>
10
- </body>
11
- </html>
@@ -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
- });