Skip to content

Commit

Permalink
WebIDLToSwift: Generate single file to make output filenames predicta…
Browse files Browse the repository at this point in the history
…ble (#19)

* WebIDLToSwift: Generate into a single file to make the output filenames predictable

* Split DOM related support code and generic support snippet

* Stop cleaning up generated directory

* Format only Generated.swift

* Move Sources/DOMKit/WebIDL/*.swift to Sources/DOMKit/

* Move hardcoded output path to main.swift
  • Loading branch information
kateinoigakukun authored May 2, 2022
1 parent 7ebda4b commit 271ef41
Show file tree
Hide file tree
Showing 461 changed files with 18,556 additions and 20,332 deletions.
6 changes: 5 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ let package = Package(
dependencies: ["DOMKit"]),
.target(
name: "DOMKit",
dependencies: ["JavaScriptKit", .product(name: "JavaScriptEventLoop", package: "JavaScriptKit")]),
dependencies: ["ECMAScript", "JavaScriptKit", .product(name: "JavaScriptEventLoop", package: "JavaScriptKit")]),
// This support library should be moved to JavaScriptKit
.target(name: "ECMAScript", dependencies: [
"JavaScriptKit",
.product(name: "JavaScriptEventLoop", package: "JavaScriptKit")]),
.target(name: "WebIDL"),
.target(
name: "WebIDLToSwift",
Expand Down
File renamed without changes.
18,510 changes: 18,510 additions & 0 deletions Sources/DOMKit/Generated.swift

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import JavaScriptKit
@_exported import ECMAScript

/* TODO: fix this */
public typealias __UNSUPPORTED_BIGINT__ = JSValue
Expand Down
212 changes: 0 additions & 212 deletions Sources/DOMKit/WebIDL/ARIAMixin.swift

This file was deleted.

27 changes: 0 additions & 27 deletions Sources/DOMKit/WebIDL/AbortController.swift

This file was deleted.

39 changes: 0 additions & 39 deletions Sources/DOMKit/WebIDL/AbortSignal.swift

This file was deleted.

34 changes: 0 additions & 34 deletions Sources/DOMKit/WebIDL/AbstractRange.swift

This file was deleted.

12 changes: 0 additions & 12 deletions Sources/DOMKit/WebIDL/AbstractWorker.swift

This file was deleted.

30 changes: 0 additions & 30 deletions Sources/DOMKit/WebIDL/AddEventListenerOptions.swift

This file was deleted.

17 changes: 0 additions & 17 deletions Sources/DOMKit/WebIDL/Animatable.swift

This file was deleted.

Loading

0 comments on commit 271ef41

Please sign in to comment.