Skip to content

Commit

Permalink
refactor jsxw and loop
Browse files Browse the repository at this point in the history
  • Loading branch information
hrgdavor committed Apr 18, 2024
1 parent 4de736f commit 3b4734b
Show file tree
Hide file tree
Showing 28 changed files with 1,645 additions and 640 deletions.
5 changes: 3 additions & 2 deletions apps/repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@jsx6/editor-monaco": "workspace:^0.34.100",
"live-server": "^1.2.2",
"@babel/standalone": "~7.18.12",
"@happy-dom/global-registrator": "~13.2.0",
"@happy-dom/global-registrator": "~14.7.1",
"@types/bun": "~1.0.2",
"bun-types": "~1.0.24"
},
Expand All @@ -63,9 +63,10 @@
"@jsx6/jsx-runtime": "workspace:*",
"@jsx6/dom-observer": "^2.0.0",
"@jsx6/signal": "workspace:*",
"@jsx6/w": "workspace:*",
"babel-plugin-syntax-jsx": "~6.18.0",
"babel-plugin-jsx-simple": "~1.6.0",
"markdown-it": "~13.0.1",
"markdown-it": "~14.1.0",
"mulmd": "~0.7.0",
"perfect-scrollbar": "~1.5.5"
}
Expand Down
3 changes: 1 addition & 2 deletions apps/repl/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// https://github.com/stacktracejs/error-stack-parser
import {
Jsx6,
JsxWS,
Loop,
T,
addClass,
Expand All @@ -15,7 +14,7 @@ import {
setValue,
} from '@jsx6/jsx6'
import { $F, $S, $State, signal } from '@jsx6/signal'
import { JsxW, define } from '@jsx6/w'
import { JsxW, JsxWS, define } from '@jsx6/w'

import IconNote from './icons/icon-note'
import './main.css'
Expand Down
1 change: 1 addition & 0 deletions apps/repl/src_build/buildScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as esbuild from 'esbuild'
export const esbDef = {
// tsconfig.json is used for vscode to allow for more autocomplete options (without typescript checks)
// it makes esbuild act weird, so we use a dummy config
tsconfig: 'tsconfig-custom.json',
// jsxFactory: 'h',
// jsxFragment: 'null',
jsx: 'automatic',
Expand Down
1 change: 1 addition & 0 deletions apps/repl/tsconfig-custom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
9 changes: 8 additions & 1 deletion apps/repl/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
// enable latest features
"lib": ["esnext"],
"target": "esnext",
"moduleResolution": "node16"
"moduleResolution": "node16",
"paths": {
"@jsx6/signal": ["../signal/index.js"],
"@jsx6/jsx6": ["../../libs/jsx6/index.js"],
"@jsx6/dom-observer": ["../../libs/jdom-observer/index.js"],
"@jsx6/w": ["../../libs/w/index.js"],
"@jsx6/jsx-runtime": ["../../libs/jsx-runtime/index.js"]
}
},
"exclude": ["node_modules", "build_dev", "build", "dist"]
}
Loading

0 comments on commit 3b4734b

Please sign in to comment.