- Add ESLint configuration for Next.js and TypeScript support. - Create Next.js configuration file with standalone output option. - Initialize package.json with scripts for development, build, and linting. - Set up PostCSS configuration for Tailwind CSS. - Add SVG assets for UI components. - Create TypeScript configuration for strict type checking and module resolution.
23 lines
566 B
Rust
23 lines
566 B
Rust
use std::process::Command;
|
|
|
|
fn touch(file_name: &str) {
|
|
if cfg!(target_os = "windows") {
|
|
Command::new("cmd")
|
|
.args(["/C", &format!("type nul >> {}", file_name)])
|
|
.output()
|
|
.expect("failed to execute touch");
|
|
} else {
|
|
Command::new("touch")
|
|
.arg(file_name)
|
|
.output()
|
|
.expect("failed to execute touch");
|
|
}
|
|
}
|
|
|
|
pub fn create_dev_db(db_url: &str) {
|
|
let prefix = "sqlite://";
|
|
if let Some(file_name) = db_url.strip_prefix(prefix) {
|
|
touch(file_name);
|
|
}
|
|
}
|