this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add bun build script

nnuuvv 31d70942 4fd65e3a

+15 -4
+9
build.sh
··· 1 + #!/usr/bin/env bash 2 + 3 + rm ./build/bin -rf 4 + 5 + gleam build 6 + 7 + bun build --compile --target=bun-linux-x64 ./build/dev/javascript/condition_overload/gleam.main.mjs --outfile ./build/bin/condition_overload 8 + 9 + bun build --compile --target=bun-windows-x64 ./build/dev/javascript/condition_overload/gleam.main.mjs --outfile ./build/bin/condition_overload
+6 -4
src/condition_overload.gleam
··· 1 1 import argv 2 2 import gleam/fetch 3 3 import gleam/http/request 4 + import gleam/io 4 5 import gleam/javascript/promise 5 6 import gleam/list 6 7 import gleam/pair ··· 8 9 import gleam/string 9 10 import splitter 10 11 11 - pub fn main() { 12 + pub fn main() -> promise.Promise(Result(Row, Nil)) { 12 13 let assert Ok(search) = 13 14 argv.load().arguments 14 15 |> list.first() 15 16 as "search has to be supploed as argument" 16 17 let search = string.lowercase(search) 17 - 18 - echo search 19 18 20 19 let _ = 21 20 [ ··· 35 34 }) 36 35 }), 37 36 ) 38 - |> promise.map(fn(x) { echo x }) 37 + |> promise.map(fn(x) { 38 + io.print(string.inspect(x)) 39 + x 40 + }) 39 41 } 40 42 41 43 // do request and return Row if successful