From 1be73ee8d2206a7f1520257d81c8a5a4f3cc195e Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Tue, 13 Feb 2024 21:13:57 +0000 Subject: =?UTF-8?q?=F0=9F=9A=A7=20Begin=20working=20on=20CLI=20things.=20(?= =?UTF-8?q?#45)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :recycle: Rename http ffi to lustre_try_ffi. * :wrench: Add any files under lustre/cli as internal modules. * :recyle: Move lustre/try command into cli subdirectory. * :heavy_plus_sign: Add justin, simplifile, and tom as dependencies. * :sparkles: Write a 'lustre add' command for downloading esbuild. * :construction: Begin work on a 'lustre build' command for bundling apps and components. * :sparkles: Add 'main' function as CLI entrypoint to lustre. * :bug: Fix `no-styles` flag's name * :bug: Use consistent path for error reporting in lustre add * :construction: Project module * :truck: Move esbuild functions to their own module * :construction: Use a temporary file to bundle components * :construction: Build app and update to glint rc * :heavy_plus_sign: Add filepath dependency * :bug: Fix wrong paths in esbuild code --------- Co-authored-by: Giacomo Cavalieri --- src/lustre_build_ffi.erl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/lustre_build_ffi.erl (limited to 'src/lustre_build_ffi.erl') diff --git a/src/lustre_build_ffi.erl b/src/lustre_build_ffi.erl new file mode 100644 index 0000000..9a7e280 --- /dev/null +++ b/src/lustre_build_ffi.erl @@ -0,0 +1,9 @@ +-module(lustre_build_ffi). +-export([ + exec/1 +]). + +exec(Cmd) -> + Stdout = os:cmd(unicode:characters_to_list(Cmd)), + + unicode:characters_to_binary(Stdout). -- cgit v1.2.3