@swiftbrowser/wasm-sdk-testing 0.0.0-stage → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +1445 -0
- package/README.md +24 -2
- package/files.json +20 -0
- package/package.json +18 -4
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/AppKit.swiftoverlay +3 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreGraphics.swiftoverlay +3 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreImage.swiftoverlay +3 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreTransferable.swiftoverlay +3 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/Foundation.swiftoverlay +3 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/UIKit.swiftoverlay +3 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/WinSDK.swiftoverlay +3 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftmodule/wasm32-unknown-wasip1.swiftinterface +1043 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/XCTest.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_TestDiscovery.swiftmodule/wasm32-unknown-wasip1.swiftinterface +8 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_TestingInterop.swiftmodule/wasm32-unknown-wasip1.swiftinterface +28 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Testing_Foundation.swiftmodule/wasm32-unknown-wasip1.swiftinterface +41 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libTesting.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libXCTest.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestDiscovery.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestingInternals.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestingInterop.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_Testing_Foundation.a +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @swiftbrowser/wasm-sdk-testing
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
XCTest, Testing and their support modules (_Testing_Foundation, _TestingInterop, _TestDiscovery): what `swiftbrowser test` compiles and links test targets against.
|
|
4
|
+
|
|
5
|
+
One of the packages that carry the Swift SDK for WebAssembly (swift-6.4.0-RELEASE_wasm)
|
|
6
|
+
for SwiftBrowser, split by who needs which files:
|
|
7
|
+
|
|
8
|
+
| Package | Contents |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| @swiftbrowser/wasm-sdk | the WASI sysroot, clang's headers, the standard library |
|
|
11
|
+
| @swiftbrowser/wasm-sdk-foundation | Foundation and CoreFoundation |
|
|
12
|
+
| @swiftbrowser/wasm-sdk-icu | lib_FoundationICU.a, its data member emptied |
|
|
13
|
+
| @swiftbrowser/wasm-sdk-icu-data | ICU's whole data package |
|
|
14
|
+
| @swiftbrowser/wasm-sdk-testing | XCTest and Swift Testing |
|
|
15
|
+
| @swiftbrowser/wasm-sdk-cxx | libc++'s headers and C++ interop |
|
|
16
|
+
|
|
17
|
+
Each keeps its files at their paths in the SDK's `wasm32-unknown-wasip1`
|
|
18
|
+
directory, and lists them in `files.json`, so the SDK is the packages laid
|
|
19
|
+
over each other. [@swiftbrowser/cli](https://www.npmjs.com/package/@swiftbrowser/cli)
|
|
20
|
+
does that when it compiles with the Swift compiler built as WebAssembly and
|
|
21
|
+
no Swift is installed (`swiftbrowser doctor --install`), and SwiftBrowser's
|
|
22
|
+
playground fetches the files it needs from them. The files are the SDK's,
|
|
23
|
+
unchanged but for ICU's data moving out of its archive; the dynamic-linking
|
|
24
|
+
libraries, Embedded Swift and the modules' documentation are left out. See
|
|
25
|
+
LICENSE.txt for the licenses of what they contain.
|
package/files.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/AppKit.swiftoverlay",
|
|
3
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreGraphics.swiftoverlay",
|
|
4
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreImage.swiftoverlay",
|
|
5
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreTransferable.swiftoverlay",
|
|
6
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/Foundation.swiftoverlay",
|
|
7
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/UIKit.swiftoverlay",
|
|
8
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/WinSDK.swiftoverlay",
|
|
9
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftmodule/wasm32-unknown-wasip1.swiftinterface",
|
|
10
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/XCTest.swiftmodule/wasm32-unknown-wasip1.swiftmodule",
|
|
11
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/_TestDiscovery.swiftmodule/wasm32-unknown-wasip1.swiftinterface",
|
|
12
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/_TestingInterop.swiftmodule/wasm32-unknown-wasip1.swiftinterface",
|
|
13
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/_Testing_Foundation.swiftmodule/wasm32-unknown-wasip1.swiftinterface",
|
|
14
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/libTesting.a",
|
|
15
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/libXCTest.a",
|
|
16
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestDiscovery.a",
|
|
17
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestingInternals.a",
|
|
18
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestingInterop.a",
|
|
19
|
+
"swift.xctoolchain/usr/lib/swift_static/wasi/lib_Testing_Foundation.a"
|
|
20
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftbrowser/wasm-sdk-testing",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "XCTest and Swift Testing for the Swift SDK for WebAssembly: their modules and archives, for `swiftbrowser test` (Swift 6.4.0, wasm32-unknown-wasip1).",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/noya-app/SwiftBrowser.git",
|
|
9
|
+
"directory": "packages/wasm-sdk-testing"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"wasm32-unknown-wasip1",
|
|
13
|
+
"files.json",
|
|
14
|
+
"LICENSE.txt",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"prepack": "node ../wasm-sdk/pack-sdk.mjs --check wasm-sdk-testing"
|
|
19
|
+
}
|
|
20
|
+
}
|