Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork57
Packaging Plugin#288
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Packaging Plugin#288
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7,3 +7,5 @@ node_modules | ||
| xcuserdata/ | ||
| .swiftpm | ||
| .vscode | ||
| Examples/*/Bundle | ||
| Examples/*/package-lock.json | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -17,5 +17,5 @@ let package = Package( | ||
| ] | ||
| ) | ||
| ], | ||
| swiftLanguageModes: [.v5] | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| #!/bin/bash | ||
| set -ex | ||
| swift package --swift-sdk "${SWIFT_SDK_ID:-wasm32-unknown-wasi}" -c "${1:-debug}" js --use-cdn |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| #!/bin/bash | ||
| package_dir="$(cd "$(dirname "$0")" && pwd)" | ||
| JAVASCRIPTKIT_EXPERIMENTAL_EMBEDDED_WASM=true \ | ||
| swiftpackage --package-path "$package_dir" \ | ||
| -c release --triple wasm32-unknown-none-wasm js |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| swift package --swift-sdk "${SWIFT_SDK_ID:-wasm32-unknown-wasip1-threads}" -c release \ | ||
| plugin --allow-writing-to-package-directory \ | ||
| js --use-cdn --output ./Bundle |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| swift package --swift-sdk "${SWIFT_SDK_ID:-wasm32-unknown-wasip1-threads}" -c release \ | ||
| plugin --allow-writing-to-package-directory \ | ||
| js --use-cdn --output ./Bundle |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "headers": [{ | ||
| "source": "**/*", | ||
| "headers": [ | ||
| { | ||
| "key": "Cross-Origin-Embedder-Policy", | ||
| "value": "require-corp" | ||
| }, { | ||
| "key": "Cross-Origin-Opener-Policy", | ||
| "value": "same-origin" | ||
| } | ||
| ] | ||
| }] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| .DS_Store | ||
| /.build | ||
| /Packages | ||
| xcuserdata/ | ||
| DerivedData/ | ||
| .swiftpm/configuration/registries.json | ||
| .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | ||
| .netrc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // swift-tools-version: 6.0 | ||
| // The swift-tools-version declares the minimum version of Swift required to build this package. | ||
| import PackageDescription | ||
| let package = Package( | ||
| name: "Counter", | ||
| products: [ | ||
| // Products define the executables and libraries a package produces, making them visible to other packages. | ||
| .library( | ||
| name: "Counter", | ||
| targets: ["Counter"]), | ||
| ], | ||
| dependencies: [.package(name: "JavaScriptKit", path: "../../")], | ||
| targets: [ | ||
| // Targets are the basic building blocks of a package, defining a module or a test suite. | ||
| // Targets can depend on other targets in this package and products from dependencies. | ||
| .target( | ||
| name: "Counter", | ||
| dependencies: [ | ||
| .product(name: "JavaScriptKit", package: "JavaScriptKit") | ||
| ]), | ||
| .testTarget( | ||
| name: "CounterTests", | ||
| dependencies: ["Counter"] | ||
| ), | ||
| ] | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| public struct Counter { | ||
| public private(set) var count = 0 | ||
| public mutating func increment() { | ||
| count += 1 | ||
| } | ||
| } |
Uh oh!
There was an error while loading.Please reload this page.