Skip to content

Commit

Permalink
build site into /dist
Browse files Browse the repository at this point in the history
  • Loading branch information
delbetu committed Apr 30, 2024
1 parent 75dbf76 commit 585639c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/wasi-vfs
!/node_modules/@ruby/wasm-wasi/dist/browser.umd.js
/node_modules
./dist
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,12 @@ file "app.wasm" => ["Gemfile.lock", "wasi-vfs", "ruby.wasm"] do
end

task default: ["app.wasm"]

desc "Build site into /dist"
file :build_site => ["app.wasm"] do
rm_rf "dist"
mkdir "dist"
cp_r "assets", "dist"
cp "app.wasm", "dist"
cp "index.html", "dist"
end
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=5">
<title>Prawn Box</title>
<base href="/prawn_box/">
<style>
#controls {
display: flex;
Expand Down

0 comments on commit 585639c

Please sign in to comment.