Skip to content

Commit d1ecc62

Browse files
committed
add PoC
1 parent c340226 commit d1ecc62

File tree

11 files changed

+903
-3
lines changed

11 files changed

+903
-3
lines changed

.github/workflows/ci.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: true
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
cache: "npm"
24+
25+
- name: Setup TypeScript-DOM-lib-generator
26+
run: |
27+
patch -p1 < ../patches/bcd.ts.patch
28+
npm ci
29+
npm run build
30+
cp generated/dom.generated.d.ts ../generated/dom/index.d.ts
31+
working-directory: TypeScript-DOM-lib-generator
32+
33+
- run: npm ci
34+
35+
- run: npx tsc --noEmit

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ dist
129129
.yarn/install-state.gz
130130
.pnp.*
131131

132-
132+
generated/**/index.d.ts

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
TypeScript-DOM-lib-generator
2+
generated

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"editor.formatOnSave": true,
3-
"editor.defaultFormatter": "esbenp.prettier-vscode"
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"typescript.tsdk": "node_modules/typescript/lib"
45
}

README.md

Whitespace-only changes.

generated/dom/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "@type-libs/dom",
3+
"version": "0.0.0",
4+
"private": true,
5+
"types": "./index.d.ts"
6+
}

0 commit comments

Comments
 (0)