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"}

}