Réglage du problème du mauvais nom de projet #4

Merged
tipragot merged 7 commits from fix-project into main 2024-02-03 13:43:13 +00:00
Showing only changes of commit 55baadf979 - Show all commits

View file

@ -7,16 +7,16 @@ pub use dioxus_fullstack::prelude::*;
#[cfg(all(not(target_arch = "wasm32"), debug_assertions))] #[cfg(all(not(target_arch = "wasm32"), debug_assertions))]
/// Compile le site en webassembly et génaire le fichier de style avec tailwind. /// Compile le site en webassembly et génaire le fichier de style avec tailwind.
fn build_app() { fn build_app() {
use std::fs;
use std::io::{BufRead, BufReader}; use std::io::{BufRead, BufReader};
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use std::{env, fs};
use dioxus_cli::{CrateConfig, ExecutableType}; use dioxus_cli::{CrateConfig, ExecutableType};
use railwind::{CollectionOptions, SourceOptions}; use railwind::{CollectionOptions, SourceOptions};
use regex::Regex; use regex::Regex;
use walkdir::WalkDir; use walkdir::WalkDir;
let project_folder = Path::new(env!("CARGO_MANIFEST_DIR")); let project_folder = env::current_dir().expect("unable to get current directory");
let output_folder = project_folder.join("web"); let output_folder = project_folder.join("web");
// Get the project name // Get the project name