Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try splitting modules #30

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5b44eee
WebIDLToSwift: Generate into a single file to make the output filenam…
kateinoigakukun May 2, 2022
114aa33
Split DOM related support code and generic support snippet
kateinoigakukun May 2, 2022
f95a3e0
Stop cleaning up generated directory
kateinoigakukun May 2, 2022
2216041
Format only Generated.swift
kateinoigakukun May 2, 2022
780073d
Move Sources/DOMKit/WebIDL/*.swift to Sources/DOMKit/
kateinoigakukun May 2, 2022
c2bee0a
Move hardcoded output path to main.swift
kateinoigakukun May 2, 2022
51ec9fe
Convert webidl to json one-by-one
kateinoigakukun May 2, 2022
b31b7c4
Allow to control behavior by cli arguments
kateinoigakukun May 2, 2022
d8e226c
WIP
kateinoigakukun May 2, 2022
4523a38
NFC: Record 'partial' interface while merging
kateinoigakukun May 2, 2022
923e9a3
Don't declare protocol when it's partial interface mixin
kateinoigakukun May 2, 2022
8827cf8
WIP
kateinoigakukun May 2, 2022
89ecce4
Allow to generate sources into separate files within a module per idl…
kateinoigakukun May 2, 2022
1853417
Record string literal, closure type, union use for each outputs
kateinoigakukun May 2, 2022
87b4e74
WIP
kateinoigakukun May 2, 2022
5b8be21
WIP
kateinoigakukun May 2, 2022
5bfeaef
Give up typing unions
kateinoigakukun May 3, 2022
cb52a3c
WIP
kateinoigakukun May 3, 2022
7e06338
WIP
kateinoigakukun May 3, 2022
c624622
WIP
kateinoigakukun May 3, 2022
63914f8
WIP
kateinoigakukun May 3, 2022
76a6e25
Repair build
kateinoigakukun May 3, 2022
4335637
WIP
kateinoigakukun May 3, 2022
b4673fb
Setup tests
kateinoigakukun May 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 13 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

import PackageDescription

let dependencyOfWebIDLToSwift: [Target.Dependency] = ["ECMAScript", "JavaScriptKit", .product(name: "JavaScriptEventLoop", package: "JavaScriptKit")]

let package = Package(
name: "DOMKit",
products: [
Expand All @@ -13,7 +15,7 @@ let package = Package(
name: "DOMKit",
targets: ["DOMKit"]),
.library(name: "WebIDL", targets: ["WebIDL"]),
.executable(name: "WebIDLToSwift", targets: ["WebIDLToSwift"]),
.executable(name: "idl2swift", targets: ["idl2swift"]),
],
dependencies: [
.package(
Expand All @@ -26,13 +28,22 @@ let package = Package(
dependencies: ["DOMKit"]),
.target(
name: "DOMKit",
dependencies: ["JavaScriptKit", .product(name: "JavaScriptEventLoop", package: "JavaScriptKit")]),
dependencies: dependencyOfWebIDLToSwift),
// This support library should be moved to JavaScriptKit
.target(name: "ECMAScript", dependencies: [
"JavaScriptKit",
.product(name: "JavaScriptEventLoop", package: "JavaScriptKit")]),
.target(name: "WebIDL"),
.target(
name: "WebIDLToSwift",
dependencies: ["WebIDL"]),
.target(
name: "idl2swift",
dependencies: ["WebIDLToSwift"]),
.testTarget(
name: "DOMKitTests",
dependencies: ["DOMKit"]),
.testTarget(
name: "WebIDLToSwiftTests", dependencies: ["WebIDLToSwift"]),
]
)
1 change: 1 addition & 0 deletions Sources/DOMKit/CanvasImageSource.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading