Skip to content

Commit

Permalink
chore(package): migrate to webidl packages
Browse files Browse the repository at this point in the history
Closes #66
  • Loading branch information
saschanaz committed Mar 19, 2021
1 parent 3356c96 commit 3a24bfa
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ updates:
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
# Check the npm registry for updates every month
schedule:
interval: "monthly"
# Bump versions in package.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-webref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- run: npm ci
- id: run-update-webref
run: npm run update-webref
run: npm i @webref/idl@latest @webref/css@latest
continue-on-error: true
- run: npm run build && npm run baseline-accept
if: ${{ steps.run-update-webref.outcome == 'success' }}
Expand Down
4 changes: 2 additions & 2 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8779,8 +8779,8 @@ interface History {
back(): void;
forward(): void;
go(delta?: number): void;
pushState(data: any, title: string, url?: string | URL | null): void;
replaceState(data: any, title: string, url?: string | URL | null): void;
pushState(data: any, unused: string, url?: string | URL | null): void;
replaceState(data: any, unused: string, url?: string | URL | null): void;
}

declare var History: {
Expand Down
7 changes: 3 additions & 4 deletions inputfiles/removedTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"PerformanceObserverCallback": {
"signature": {
"0": {
"param": ["hasDroppedEntry"]
"param": ["options"]
}
}
}
Expand Down Expand Up @@ -160,6 +160,7 @@
"NavigatorBadge",
"NavigatorDeviceMemory",
"NavigatorFonts",
"NavigatorGPU",
"NavigatorLocks",
"NavigatorUA"
]
Expand Down Expand Up @@ -200,9 +201,6 @@
}
}
},
"SVGAElement": {
"implements": ["HTMLHyperlinkElementUtils"]
},
"SVGAnimationElement": {
"properties": {
"property": {
Expand Down Expand Up @@ -269,6 +267,7 @@
"NavigatorBadge",
"NavigatorDeviceMemory",
"NavigatorFonts",
"NavigatorGPU",
"NavigatorLocks",
"NavigatorUA"
]
Expand Down
101 changes: 75 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"baseline-accept": "cpx \"generated\\*\" baselines\\",
"lint": "eslint --max-warnings 0 src",
"test": "npm run lint && npm run build && node ./lib/test.js && node ./unittests/index.js",
"update-webref": "tsc && node ./lib/update-webref.js",
"changelog": "tsc && node ./lib/changelog.js"
},
"author": {
Expand All @@ -40,6 +39,8 @@
"@types/webidl2": "^23.13.5",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@webref/css": "^1.0.0",
"@webref/idl": "^1.0.10",
"browser-specs": "^1.32.0",
"cpx2": "^3.0.0",
"eslint": "^7.22.0",
Expand All @@ -51,8 +52,7 @@
"print-diff": "^1.0.0",
"styleless-innertext": "^1.1.2",
"typescript": "^4.2.3",
"webidl2": "^23.13.1",
"webref": "github:w3c/webref#41a8ec6b85634d1bdf5daa85f3c32a1adad1d2f8"
"webidl2": "^23.13.1"
},
"files": [
"baselines/*"
Expand Down
4 changes: 2 additions & 2 deletions src/build/webref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { fileURLToPath } from "url";
import { tryReadFile } from "./utils/fs.js";
import { createTryRequire } from "./utils/require.js";

const webrefDir = new URL("../../node_modules/webref/ed/idl/", import.meta.url);
const webrefDir = new URL("../../node_modules/@webref/idl/", import.meta.url);
const webrefCssDir = new URL(
"../../node_modules/webref/ed/css/",
"../../node_modules/@webref/css/",
import.meta.url
);

Expand Down
21 changes: 0 additions & 21 deletions src/update-webref.ts

This file was deleted.

0 comments on commit 3a24bfa

Please sign in to comment.