Update conf

This commit is contained in:
Florian RICHER 2023-04-02 14:47:50 +02:00
parent eae044e1f4
commit 88f8d83317
6 changed files with 14 additions and 7 deletions

View file

@ -1,10 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="CPP_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>

1
.tool-versions Normal file
View file

@ -0,0 +1 @@
nodejs 19.8.1

View file

@ -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"]
command = "./build_css"

7
build_css Executable file
View file

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

3
rust-toolchain.toml Normal file
View file

@ -0,0 +1,3 @@
[toolchain]
channel = "1.68.2"
targets = [ "wasm32-unknown-unknown" ]

View file

@ -3,7 +3,7 @@ use yew::{function_component, Html, html};
#[function_component(Test)]
pub fn test() -> Html {
html! {
<div class="bg-red-500">
<div class="bg-red-500 text-blue">
<h1>{"Test component"}</h1>
</div>
}