Skip to content

Commit

Permalink
add PoC
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Sep 17, 2024
1 parent c340226 commit d1ecc62
Show file tree
Hide file tree
Showing 11 changed files with 903 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: "npm"

- name: Setup TypeScript-DOM-lib-generator
run: |
patch -p1 < ../patches/bcd.ts.patch
npm ci
npm run build
cp generated/dom.generated.d.ts ../generated/dom/index.d.ts
working-directory: TypeScript-DOM-lib-generator

- run: npm ci

- run: npx tsc --noEmit
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ dist
.yarn/install-state.gz
.pnp.*


generated/**/index.d.ts
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TypeScript-DOM-lib-generator
generated
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.tsdk": "node_modules/typescript/lib"
}
Empty file added README.md
Empty file.
6 changes: 6 additions & 0 deletions generated/dom/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@type-libs/dom",
"version": "0.0.0",
"private": true,
"types": "./index.d.ts"
}
Loading

0 comments on commit d1ecc62

Please sign in to comment.