Fix layout issues in web-ui
This commit is contained in:
parent
86205b9e6d
commit
0d913dec65
2 changed files with 9 additions and 4 deletions
|
|
@ -9,14 +9,14 @@ bundle exec ruby <<RUBY &
|
|||
require "listen"
|
||||
|
||||
def copy_wasm_files
|
||||
`cp $root/target/release/*.{js,wasm} $root/docs/assets/js/`
|
||||
`cp $root/lib/binding_web/tree-sitter.{js,wasm} $root/docs/assets/js/`
|
||||
end
|
||||
|
||||
puts "Copying WASM files to docs folder..."
|
||||
copy_wasm_files
|
||||
|
||||
puts "Watching release directory"
|
||||
listener = Listen.to("$root/target/release", only: /^tree-sitter\.(js|wasm)$/, wait_for_delay: 2) do
|
||||
listener = Listen.to("$root/lib/binding_web", only: /^tree-sitter\.(js|wasm)$/, wait_for_delay: 2) do
|
||||
puts "WASM files updated. Copying new files to docs folder..."
|
||||
copy_wasm_files
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue