Skip to content

Commit

Permalink
move netifly file
Browse files Browse the repository at this point in the history
  • Loading branch information
CrowdHailer committed Aug 13, 2023
1 parent 8119421 commit 58b989a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[build]
# use an eyg shell script here, install binary runner
# builds easel in the eyg directory
command = """
cd eyg &&
wget -c https://github.com/gleam-lang/gleam/releases/download/v0.30.5/gleam-v0.30.5-x86_64-unknown-linux-musl.tar.gz -O - | tar -xz -C . &&
./gleam --version &&
./gleam build &&
npm i
npx rollup -f iife -i ./public/easel.js -o ../website/build/easel.js &&
echo 'eyg built' &&
./gleam run cli cozo ./saved/saved.json &&
cd .. &&
mkdir cozy/build &&
cp wisdom/tmp.db.json cozy/build/db.json &&
(cd cozy;
npm i &&
npx rollup --config rollup.config.mjs &&
cp index.html build/index.html &&
cp node_modules/cozo-lib-wasm/cozo_lib_wasm_bg.wasm build
) &&
cd website &&
mkdir build/explore &&
cp -R ../cozy/build build/explore &&
cp -R public/* build/
"""
publish = "website/build"
1 change: 1 addition & 0 deletions website/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Having this file at the top means only a single application can be deployed
[build]
# use an eyg shell script here, install binary runner
# builds easel in the eyg directory
Expand Down

0 comments on commit 58b989a

Please sign in to comment.