-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96001e1
commit e42908f
Showing
11 changed files
with
54 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,5 +203,4 @@ Cargo.lock | |
**/*.rs.bk | ||
Cargo.lock | ||
bin/ | ||
pkg*/ | ||
wasm-pack.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
TARGET := bundler | ||
|
||
all: | ||
make build | ||
make build TARGET=deno | ||
JS := js | ||
|
||
build: | ||
wasm-pack build --target $(TARGET) --out-dir pkg-$(TARGET) --release --no-pack --weak-refs && cp js-assets/* pkg-$(TARGET)/ | ||
$(MAKE) -C $(JS) build | ||
|
||
publish: all | ||
cp js-assets/README.md . && npx jsr publish --allow-slow-types --allow-dirty && rm README.md | ||
test: build | ||
$(MAKE) -C $(JS) test | ||
|
||
install: | ||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
test: | ||
deno test -A app.test.ts | ||
echo "https://github.com/rustwasm/wasm-pack/pull/1061" | ||
node --experimental-vm-modules --trace-warnings --experimental-wasm-modules app.test.js | ||
$(MAKE) -C $(JS) install |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pkg*/ | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
TARGET := bundler | ||
|
||
build: | ||
$(MAKE) build-target | ||
$(MAKE) build-target TARGET=deno | ||
|
||
build-target: | ||
wasm-pack build --target $(TARGET) --out-dir $(PWD)/pkg-$(TARGET) --release --no-pack --weak-refs | ||
|
||
test: | ||
deno test -A app.test.ts | ||
echo "https://github.com/rustwasm/wasm-pack/pull/1061" | ||
node --experimental-vm-modules --trace-warnings --experimental-wasm-modules app.test.js | ||
|
||
doc: build | ||
deno doc --html ./pkg-bundler/pulsebeam_core.js | ||
python3 -m http.server -d docs | ||
|
||
publish: all | ||
npx jsr publish --allow-slow-types | ||
|
||
install: | ||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "@pulsebeam/server", | ||
"version": "0.0.8", | ||
"nodeModulesDir": "auto", | ||
"exports": { | ||
"./node": "./pkg-bundler/pulsebeam_core.js", | ||
"./deno": "./pkg-deno/pulsebeam_core.js" | ||
}, | ||
"exclude": [ | ||
"!pkg-bundler/", | ||
"!pkg-deno/", | ||
"src", | ||
"tests", | ||
"examples" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters