Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8cc20a4
helix-core compiles to wasm32
makemeunsee Oct 26, 2023
a42389e
wip helix view wasm32
makemeunsee Oct 26, 2023
ea954e3
horrible feature gating
makemeunsee Oct 26, 2023
f2a647b
helix-view compiles to wasm32
makemeunsee Oct 26, 2023
840a0be
fix for regular, global build
makemeunsee Oct 26, 2023
b83a156
better defaults; helix-tui wasm32 compilation
makemeunsee Oct 26, 2023
e185dc7
prev commit amend; helix-tui wasm32 compilation
makemeunsee Oct 26, 2023
4a09826
`cargo build` works everywhere
makemeunsee Oct 26, 2023
d026459
restored dap&lsp for non wasm build
makemeunsee Oct 26, 2023
c7a8bc1
project builds as lib to wasm32; coarse doc
makemeunsee Oct 26, 2023
d6c14ba
minor steps torward wasm32 app
makemeunsee Oct 26, 2023
facc9dd
fixing runtime step by step
makemeunsee Oct 26, 2023
eec0b19
more wasm runtime compat
makemeunsee Oct 26, 2023
46e1d09
more wasm runtime compat
makemeunsee Oct 26, 2023
bc111a3
crude webapp embedding helix as wasm32
makemeunsee Oct 26, 2023
8e86a7a
poc xterm integration
makemeunsee Oct 26, 2023
4982249
app runs! event loop too, somehow
makemeunsee Oct 26, 2023
3639d8a
full integration, wip
makemeunsee Oct 26, 2023
4083931
wip crossterm/xterm integration
makemeunsee Oct 26, 2023
fea0252
terminal.size() for wasm32 at last; to be tested
makemeunsee Oct 26, 2023
4ae3331
it works O_o
makemeunsee Oct 26, 2023
778e1e4
wasm32 build fix & GH pipeline
makemeunsee Oct 26, 2023
a361a3c
no history for GH pages
makemeunsee Oct 26, 2023
e81fc0e
cleanup & increased compliance with baseline
makemeunsee Oct 26, 2023
22325d0
search in selection bug fix
makemeunsee Oct 26, 2023
440017b
actually compatible with node 20
makemeunsee Oct 26, 2023
38994d2
actually compatible with node 20
makemeunsee Oct 26, 2023
978a1b8
issue with nucleo
makemeunsee Oct 26, 2023
cd5336b
README update
makemeunsee Oct 26, 2023
241260d
fancy font
makemeunsee Oct 26, 2023
879951c
correct rs-xterm-js
makemeunsee Oct 26, 2023
b4d25cc
wasm cosmetics: true color on, fallback font
makemeunsee Oct 26, 2023
47751ce
rebased on master
makemeunsee Oct 26, 2023
f2dabe6
dependency bump
makemeunsee Oct 26, 2023
68a1f9d
embed themes in wasm
makemeunsee Oct 26, 2023
7c127ae
pickers are broken on wasm32, disabled
makemeunsee Oct 28, 2023
b147fe8
crude buffer read/write using Web Storage API
makemeunsee Oct 28, 2023
ee32fae
web storage write/read fixed; tutor embedded
makemeunsee Oct 29, 2023
86b0dc9
'lightweight' embedding of some TS languages
makemeunsee Nov 8, 2023
8356662
limited langs, CI fix maybe
makemeunsee Nov 8, 2023
3c604df
CI fix maybe
makemeunsee Nov 8, 2023
ec7d154
CI debug logs
makemeunsee Nov 8, 2023
bb4d58c
avoid pointless rebuilds
makemeunsee Nov 9, 2023
e8f3ae1
fetch grammars for wasm32 builds too
makemeunsee Nov 9, 2023
708bce5
build fix + optimisation
makemeunsee Nov 9, 2023
3b4b5a7
prev. commit broke TS parsing
makemeunsee Nov 10, 2023
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
50 changes: 50 additions & 0 deletions .github/workflows/web_demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy web demo
on:
push:
branches: [ wasm32 ]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "16"

- name: Set up cache
uses: Swatinem/rust-cache@v2

- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
with:
version: 'latest'

Comment on lines +26 to +30

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The action does so little it would be nice to just replace with the official invocation: https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/continuous-integration.html#github-actions

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I picked this one as they advertise much faster (seconds vs. minutes) set up times, but we can use the official one sure.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

      - name: Install
        run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

From the docs should be equally as fast, it figures out the target architecture and downloads the release (rather than cargo-install-ing and compiling from source)

- name: Build Helix webpack
run: |
cd helix-web
wasm-pack build
wasm-pack pack

- name: Install node modules and build static app
run: |
cd helix-web/www
npm install ../pkg/helix-web-0.1.0.tgz
NODE_OPTIONS=--openssl-legacy-provider npm run build
cp node_modules/xterm/css/xterm.css dist/

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./helix-web/www/dist/
destination_dir: ./demo
force_orphan: true
Loading