Update conf
This commit is contained in:
parent
eae044e1f4
commit
88f8d83317
6 changed files with 14 additions and 7 deletions
|
@ -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
1
.tool-versions
Normal file
|
@ -0,0 +1 @@
|
|||
nodejs 19.8.1
|
|
@ -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
7
build_css
Executable 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
3
rust-toolchain.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
[toolchain]
|
||||
channel = "1.68.2"
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue