Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
44 lines (36 loc) · 1.23 KB

File metadata and controls

44 lines (36 loc) · 1.23 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
SWIFT_SDK_ID ?= wasm32-unknown-wasi
SWIFT_BUILD_FLAGS := --swift-sdk $(SWIFT_SDK_ID)
.PHONY: bootstrap
bootstrap:
npm ci
npx playwright install
.PHONY: build
build:
swift build --triple wasm32-unknown-wasi
npm run build
.PHONY: unittest
unittest:
@echo Running unit tests
env JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS=1 swift package --swift-sdk "$(SWIFT_SDK_ID)" \
--disable-sandbox \
-Xlinker --stack-first \
-Xlinker --global-base=524288 \
-Xlinker -z \
-Xlinker stack-size=524288 \
js test --prelude ./Tests/prelude.mjs
.PHONY: benchmark_setup
benchmark_setup:
SWIFT_BUILD_FLAGS="$(SWIFT_BUILD_FLAGS)" CONFIGURATION=release $(MAKE) -C IntegrationTests benchmark_setup
.PHONY: run_benchmark
run_benchmark:
SWIFT_BUILD_FLAGS="$(SWIFT_BUILD_FLAGS)" CONFIGURATION=release $(MAKE) -s -C IntegrationTests run_benchmark
.PHONY: perf-tester
perf-tester:
cd ci/perf-tester && npm ci
.PHONY: regenerate_swiftpm_resources
regenerate_swiftpm_resources:
npm run build
cp Runtime/lib/index.js Plugins/PackageToJS/Templates/runtime.js
cp Runtime/lib/index.mjs Plugins/PackageToJS/Templates/runtime.mjs
cp Runtime/lib/index.d.ts Plugins/PackageToJS/Templates/runtime.d.ts
Morty Proxy This is a proxified and sanitized view of the page, visit original site.