Skip to content

Commit b7b55df

Browse files
committed
Use ts-minidom from purestack packages.
1 parent 6f0a718 commit b7b55df

12 files changed

Lines changed: 16 additions & 2924 deletions

File tree

‎benchmarks/minidom/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Minidom Perf Suite
22

3-
Regor performance suite running on `tests/minidom`, with baseline comparison and optional regression gate.
3+
Regor performance suite running on `@purestack/ts-minidom`, with baseline comparison and optional regression gate.
44

55
## Component Workloads
66

‎benchmarks/minidom/perf.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { performance } from 'node:perf_hooks'
55
import process from 'node:process'
66
import readline from 'node:readline'
77

8+
import { createDom } from '@purestack/ts-minidom'
9+
810
import { createApp, drainUnbind, html, ref, RegorConfig, sref } from '../../src'
911
import { App } from '../../src/api/types'
10-
import { createDom } from '../../tests/minidom/createDom'
1112
import {
1213
createRegorComponentWorkload,
1314
REGOR_COMPONENT_TEMPLATE,

‎benchmarks/minidom/profile.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ const isRegorFrame = (url: string): boolean => {
6262
return (
6363
normalized.includes('/src/') ||
6464
normalized.includes('\\src\\') ||
65-
normalized.includes('/tests/minidom/') ||
66-
normalized.includes('\\tests\\minidom\\')
65+
normalized.includes('/node_modules/@purestack/ts-minidom/') ||
66+
normalized.includes('\\node_modules\\@purestack\\ts-minidom\\')
6767
)
6868
}
6969

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"homepage": "https://regor.purestack.studio/",
4545
"devDependencies": {
4646
"@eslint/js": "^9.39.2",
47+
"@purestack/ts-minidom": "^1.1.25",
4748
"@stylistic/eslint-plugin": "^5.7.1",
4849
"@types/node": "^25.2.1",
4950
"@vitest/coverage-istanbul": "3.2.3",

‎tests/app/createComponent.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { createDom } from '@purestack/ts-minidom'
12
import { expect, test } from 'vitest'
23

34
import {
@@ -13,7 +14,6 @@ import { Binder } from '../../src/bind/Binder'
1314
import { hasSwitch } from '../../src/bind/switch'
1415
import { Parser } from '../../src/parser/Parser'
1516
import { htmlEqual } from '../common/html-equal'
16-
import { createDom } from '../minidom/createDom'
1717

1818
test('should render components with reactive properties', () => {
1919
const root = document.createElement('div')

‎tests/minidom/createDom.ts‎

Lines changed: 0 additions & 102 deletions
This file was deleted.

‎tests/minidom/cssEscape.ts‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)