Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare for conversion to sdk repo #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .subo.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dotVersionFiles:
- api/rust/core/Cargo.toml
- api/rust/codegen/Cargo.toml
- api/assemblyscript/package.json
- api/typescript/package.json
- sdk/rust/core/Cargo.toml
- sdk/rust/codegen/Cargo.toml
- sdk/assemblyscript/package.json
- sdk/typescript/package.json

preMakeTargets:
- test
Expand Down
32 changes: 6 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,37 +1,17 @@
packages = $(shell go list ./... | grep -v github.com/suborbital/reactr/api/tinygo/runnable)
packages = $(shell go list ./... | grep -v github.com/suborbital/sdk/sdk/tinygo/runnable)

test:
go test -v --count=1 -p=1 $(packages)

test/wasmer:
go test --tags wasmer -v --count=1 -p=1 $(packages)

test/wasmedge:
go test --tags wasmedge -v -count=1 -p=1 $(packages)

test/multi: test test/wasmtime test/wasmedge

testdata:
subo build ./engine/testdata/ --native

testdata/docker:
subo build ./engine/testdata/

testdata/docker/dev:
subo build ./engine/testdata/ --builder-tag dev --mountpath $(PWD)

crate/publish:
cargo publish --manifest-path ./api/rust/codegen/Cargo.toml --target=wasm32-wasi
cargo publish --manifest-path ./api/rust/core/Cargo.toml --target=wasm32-wasi
cargo publish --manifest-path ./sdk/rust/codegen/Cargo.toml --target=wasm32-wasi
cargo publish --manifest-path ./sdk/rust/core/Cargo.toml --target=wasm32-wasi

npm/publish:
npm publish ./api/assemblyscript
npm publish ./api/typescript
npm publish ./sdk/assemblyscript
npm publish ./sdk/typescript

deps:
go get -u -d ./...

deps/wasmedge:
wget -qO- https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v 0.9.1

.PHONY: test test/wasmtime test/wasmedge test/multi testdata crate/publish deps deps/wasmedge
.PHONY: test crate/publish deps
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ let package = Package(
.target(
name: "Suborbital",
dependencies: [],
path: "api/swift/Sources"),
path: "sdk/swift/Sources"),
]
)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Reactr has support for Wasm-packaged Runnables. The `engine` package contains a

First, install Reactr's core package `rt`:
```bash
go get github.com/suborbital/reactr/rt
go get github.com/suborbital/sdk/rt
```

And then get started by defining something `Runnable`:
Expand All @@ -22,7 +22,7 @@ package main
import (
"fmt"

"github.com/suborbital/reactr/rt"
"github.com/suborbital/sdk/rt"
)

type generic struct{}
Expand Down Expand Up @@ -52,7 +52,7 @@ import (
"fmt"
"log"

"github.com/suborbital/reactr/rt"
"github.com/suborbital/sdk/rt"
)

func main() {
Expand Down
12 changes: 0 additions & 12 deletions api/tinygo/runnable/use.go

This file was deleted.

17 changes: 0 additions & 17 deletions docs/grav.md

This file was deleted.

Loading