From 88f8d83317c0f7c31ffe33110c6f6f9b026bcc58 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 2 Apr 2023 14:47:50 +0200 Subject: [PATCH] Update conf --- .idea/portfolio.iml | 5 +---- .tool-versions | 1 + Trunk.toml | 3 +-- build_css | 7 +++++++ rust-toolchain.toml | 3 +++ src/components/test.rs | 2 +- 6 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .tool-versions create mode 100755 build_css create mode 100644 rust-toolchain.toml diff --git a/.idea/portfolio.iml b/.idea/portfolio.iml index c254557..bc2cd87 100644 --- a/.idea/portfolio.iml +++ b/.idea/portfolio.iml @@ -1,10 +1,7 @@ - - - - + diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..603e4f0 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 19.8.1 \ No newline at end of file diff --git a/Trunk.toml b/Trunk.toml index 8d20d6e..01dea1c 100644 --- a/Trunk.toml +++ b/Trunk.toml @@ -4,5 +4,4 @@ dist = "dist" [[hooks]] stage = "build" -command = "sh" -command_arguments = ["-c", "npx tailwindcss -i stylesheets/index.css -o $TRUNK_STAGING_DIR/tailwind.css --minify"] \ No newline at end of file +command = "./build_css" \ No newline at end of file diff --git a/build_css b/build_css new file mode 100755 index 0000000..153ae80 --- /dev/null +++ b/build_css @@ -0,0 +1,7 @@ +#!/usr/bin/env nu +if $env.TRUNK_PROFILE == "debug" { + npx tailwindcss -i stylesheets/index.css -o $"($env.TRUNK_STAGING_DIR)/tailwind.css" +} else { + npx tailwindcss -i stylesheets/index.css -o $"($env.TRUNK_STAGING_DIR)/tailwind.css" --minify +} + diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..8fbdf36 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.68.2" +targets = [ "wasm32-unknown-unknown" ] \ No newline at end of file diff --git a/src/components/test.rs b/src/components/test.rs index c408cfc..79759e2 100644 --- a/src/components/test.rs +++ b/src/components/test.rs @@ -3,7 +3,7 @@ use yew::{function_component, Html, html}; #[function_component(Test)] pub fn test() -> Html { html! { -
+

{"Test component"}

}