-
Notifications
You must be signed in to change notification settings - Fork 94
Remove WASM build workaround #1060
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
Changes from all commits
64e3b9d
c100c18
e3324b1
7c1c93e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| stylua.web/ | ||
| stylua_lib.cjs | ||
| stylua.* | ||
| stylua_* | ||
| LICENSE.md | ||
| README.md | ||
| *.tgz | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,10 +1,47 @@ | ||||||||||
| #!/usr/bin/env bash | ||||||||||
| set -euo pipefail | ||||||||||
|
|
||||||||||
| PROJECT_ROOT=$(dirname $0)/.. | ||||||||||
| CURRENT_DIR=$PROJECT_ROOT/wasm | ||||||||||
|
|
||||||||||
| # TODO: Ensure that version is up to date | ||||||||||
| cp README.md wasm/ | ||||||||||
| cp LICENSE.md wasm/ | ||||||||||
| npx wasm-pack@0.10.3 build --target web --out-dir wasm/stylua.web -- --features lua52,lua53,lua54,luajit,luau,cfxlua | ||||||||||
| cp $PROJECT_ROOT/README.md $CURRENT_DIR/ | ||||||||||
| cp $PROJECT_ROOT/LICENSE.md $CURRENT_DIR/ | ||||||||||
|
|
||||||||||
| cargo build --target wasm32-unknown-unknown --release --features lua52,lua53,lua54,luajit,luau,cfxlua | ||||||||||
|
|
||||||||||
| WASM_PATH=$PROJECT_ROOT/target/wasm32-unknown-unknown/release/stylua_lib.wasm | ||||||||||
|
|
||||||||||
| # install wasm-bindgen if needed | ||||||||||
| command -v wasm-bindgen || cargo install wasm-bindgen-cli | ||||||||||
|
Comment on lines
+15
to
+16
|
||||||||||
| # install wasm-bindgen if needed | |
| command -v wasm-bindgen || cargo install wasm-bindgen-cli | |
| # install wasm-bindgen if needed, pinning the version to match Cargo.toml (0.2.108) | |
| command -v wasm-bindgen >/dev/null 2>&1 || cargo install wasm-bindgen-cli --version 0.2.108 |
magic-akari marked this conversation as resolved.
Show resolved
Hide resolved
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.