Skip to content

Commit e206e3a

Browse files
committed
Rename package to WebAPIKit
Resolves #22.
1 parent 4e253a0 commit e206e3a

File tree

10 files changed

+21
-20
lines changed

10 files changed

+21
-20
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
run: |
1717
set -ex
1818
sudo xcode-select --switch /Applications/Xcode_13.3.1.app/Contents/Developer/
19-
19+
2020
brew install swiftwasm/tap/carton
2121
22-
carton bundle --product DOMKitDemo
22+
carton bundle --product WebAPIKitDemo
2323
carton test --environment defaultBrowser
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 DOMKit contributors
3+
Copyright (c) 2020 WebAPIKit contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Package.swift

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "DOMKit",
7+
name: "WebAPIKit",
88
products: [
99
.executable(
10-
name: "DOMKitDemo",
11-
targets: ["DOMKitDemo"]
10+
name: "WebAPIKitDemo",
11+
targets: ["WebAPIKitDemo"]
1212
),
1313
.library(
14-
name: "DOMKit",
15-
targets: ["DOMKit"]
14+
name: "WebAPIKit",
15+
targets: ["WebAPIKit"]
1616
),
1717
.library(name: "WebIDL", targets: ["WebIDL"]),
1818
.executable(name: "WebIDLToSwift", targets: ["WebIDLToSwift"]),
@@ -25,11 +25,11 @@ let package = Package(
2525
],
2626
targets: [
2727
.target(
28-
name: "DOMKitDemo",
29-
dependencies: ["DOMKit"]
28+
name: "WebAPIKitDemo",
29+
dependencies: ["WebAPIKit"]
3030
),
3131
.target(
32-
name: "DOMKit",
32+
name: "WebAPIKit",
3333
dependencies: ["ECMAScript", "JavaScriptKit", .product(name: "JavaScriptEventLoop", package: "JavaScriptKit")]
3434
),
3535
// This support library should be moved to JavaScriptKit
@@ -43,8 +43,8 @@ let package = Package(
4343
dependencies: ["WebIDL"]
4444
),
4545
.testTarget(
46-
name: "DOMKitTests",
47-
dependencies: ["DOMKit"]
46+
name: "WebAPIKitTests",
47+
dependencies: ["WebAPIKit"]
4848
),
4949
]
5050
)
File renamed without changes.
File renamed without changes.

Sources/DOMKitDemo/WebGLDemo.swift Sources/WebAPIKitDemo/WebGLDemo.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021-2022, GFXFundamentals and DOMKit contributors.
1+
// Copyright 2021-2022, GFXFundamentals and WebAPIKit contributors.
22
// All rights reserved.
33
//
44
// Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
2727
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2828
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929

30-
import DOMKit
30+
import WebAPIKit
3131

3232
let vertexShaderSource =
3333
"""

Sources/DOMKitDemo/main.swift Sources/WebAPIKitDemo/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import DOMKit
21
import JavaScriptKit
2+
import WebAPIKit
33

44
let document = globalThis.document
55

Sources/WebIDLToSwift/main.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func main() {
77
do {
88
let startTime = Date()
99
let idl = try IDLParser.parseIDL()
10-
let outputPath = "Sources/DOMKit/Generated.swift"
10+
let outputPath = "Sources/WebAPIKit/Generated.swift"
1111
var contents: [SwiftSource] = []
1212
print("Generating bindings...")
1313
contents.append(try IDLBuilder.generateIDLBindings(idl: idl))
@@ -19,7 +19,8 @@ func main() {
1919
contents.append(try IDLBuilder.generateUnions())
2020
try IDLBuilder.writeFile(
2121
path: outputPath,
22-
content: contents.joined(separator: "\n\n").source)
22+
content: contents.joined(separator: "\n\n").source
23+
)
2324

2425
SwiftFormatter.run(source: outputPath)
2526
print("Done in \(Int(Date().timeIntervalSince(startTime) * 1000))ms.")

Tests/DOMKitTests/DOMKitTests.swift Tests/WebAPIKitTests/WebAPIKitTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import DOMKit
21
import Foundation
32
import JavaScriptKit
3+
import WebAPIKit
44
import XCTest
55

6-
final class DOMKitTests: XCTestCase {
6+
final class WebAPIKitTests: XCTestCase {
77
func testQuerySelector() {
88
let document = globalThis.document
99
let button = document.createElement(localName: "button")

0 commit comments

Comments
 (0)