Skip to content

Commit cd8780d

Browse files
author
easrng
committed
add typescript plugin (todo: typecheck) and fix svg/mathml support
1 parent 4625e28 commit cd8780d

20 files changed

+788
-420
lines changed

Diff for: .prettierrc.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// @ts-check
2+
// match xo defaults
3+
/** @type {import("prettier").Config} */
4+
module.exports = {
5+
singleQuote: true,
6+
bracketSpacing: false,
7+
};

Diff for: .vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

Diff for: package.json

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@easrng/elements",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"description": "a tiny framework powered by @preact/signals-core",
55
"license": "MIT",
66
"type": "module",
@@ -25,6 +25,10 @@
2525
"./tiny": {
2626
"types": "./dist/tiny.d.ts",
2727
"default": "./dist/tiny.js"
28+
},
29+
"./typescript": {
30+
"types": "./dist/typescript/index.d.ts",
31+
"require": "./dist/typescript/index.js"
2832
}
2933
},
3034
"scripts": {
@@ -44,14 +48,17 @@
4448
"test:stream": "tsx ./tools/stream-test-node/index.ts --stdout | cmp - tools/stream-test-node/expected.txt && echo 'ssr (node + linkedom): all good'"
4549
},
4650
"files": [
47-
"dist"
51+
"dist",
52+
"typescript"
4853
],
4954
"dependencies": {
5055
"@preact/signals-core": "^1.7.0",
5156
"js-tokens": "^9.0.0",
52-
"magic-string": "^0.30.10"
57+
"magic-string": "^0.30.10",
58+
"typescript-template-language-service-decorator": "^2.3.2"
5359
},
5460
"devDependencies": {
61+
"@easrng/elements": "file:.",
5562
"@fastify/pre-commit": "^2.1.0",
5663
"@rollup/plugin-replace": "^5.0.7",
5764
"@rollup/plugin-terser": "^0.4.4",
@@ -68,6 +75,8 @@
6875
"linkedom": "^0.18.4",
6976
"memfs": "^4.9.3",
7077
"npm-run-all": "^4.1.5",
78+
"p-limit": "^6.1.0",
79+
"prettier": "^3.3.3",
7180
"pretty-bytes": "^6.1.1",
7281
"rolldown": "^0.12.2",
7382
"rollup": "^4.19.0",
@@ -77,7 +86,6 @@
7786
"vite": "^5.3.4",
7887
"webpack": "^5.93.0",
7988
"xo": "^0.59.0",
80-
"p-limit": "^6.1.0",
8189
"zx": "^8.1.4"
8290
},
8391
"author": "easrng",

Diff for: pnpm-lock.yaml

+32-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)