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

Subscriptions, mutations, and the counter example #16

Open
wants to merge 10 commits 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ jobs:
submodules: true
- uses: cachix/install-nix-action@v26
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build the client worker
- name: Run all CI tasks
run: |
cd client-worker
nix develop '.?submodules=1' --override-input linera-protocol ../linera-protocol --command bash build.bash
- name: Build the extension
run: |
cd extension
nix develop --override-input linera-protocol ../linera-protocol --command pnpm install
nix develop --override-input linera-protocol ../linera-protocol --command pnpm build
nix develop '.?submodules=1' --override-input linera-protocol ./linera-protocol --command pnpm run ci
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
/.direnv
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
225 changes: 0 additions & 225 deletions client-worker/src/lib.rs

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client-worker/Cargo.toml → client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ serde_json = "1.0.116"
serde_yaml = "0.9.34"
tokio = "1.40.0"
tracing = "0.1.40"
wasm-bindgen = "0.2.93"
wasm-bindgen = "0.2.95"
wasm-bindgen-futures = "0.4"

[dependencies.linera-base]
Expand Down
4 changes: 2 additions & 2 deletions client-worker/build.bash → client/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ then
cargo update --package wasm-bindgen --precise "$wasm_bindgen_cli_version"
fi

cargo build --lib --target wasm32-unknown-unknown
cargo build --lib --target wasm32-unknown-unknown --release

wasm-bindgen target/wasm32-unknown-unknown/debug/linera_web.wasm --out-dir pkg --typescript --target web --split-linked-modules
wasm-bindgen target/wasm32-unknown-unknown/release/linera_web.wasm --out-dir pkg --typescript --target web --split-linked-modules
17 changes: 17 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "@linera/client",
"version": "1.0.0",
"description": "",
"main": "pkg/linera_web.js",
"types": "pkg/linera_web.d.ts",
"scripts": {
"install": "true",
"build": "bash build.bash",
"prepare": "pnpm build",
"lint": "cargo fmt --check && cargo clippy -- -W clippy::pedantic",
"ci": "pnpm lint"
},
"keywords": [],
"author": "",
"license": "ISC"
Comment on lines +15 to +16
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we populate this, or are we planning on doing that later?

}
File renamed without changes.
1 change: 1 addition & 0 deletions client/rustfmt.toml
Loading