Skip to content

Commit

Permalink
workon js build
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Nov 24, 2023
1 parent e537411 commit 99bd41d
Show file tree
Hide file tree
Showing 6 changed files with 6,198 additions and 4,227 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: curl -sSf https://sh.rustup.rs | sh -s -- -y

# rust
- run: cargo build
- run: cargo check
- run: cargo test
- run: pip install tomlq

# wasm
- run: cargo install wasm-pack
- run: wasm-pack build --target web

# js
- run: npm ci
- run: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/target
**/*.rs.bk
node_modules

# the following entries are removed from this file on the deploy branch
dist/
pkg/
*.wasm
*.log
wasm-pack.log
target/
node_modules/
9 changes: 0 additions & 9 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
help:
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'

update:
brew upgrade
brew update
rustup self update
rustup update
rm Cargo.lock
cargo update
npm i -g npm

install:
cargo build
npm install
Expand Down
Loading

0 comments on commit 99bd41d

Please sign in to comment.