chore: rename directory for project templates

This commit is contained in:
anatawa12 2025-04-25 22:58:40 +09:00
commit 24e701a040
No known key found for this signature in database
GPG key ID: 9CA909848B8E4EA6
163 changed files with 6 additions and 5 deletions

View file

@ -31,7 +31,7 @@
/*.md
# template
/templates/**
/project-templates/**
# icons
/app-icon.afdesign

View file

@ -2,7 +2,7 @@
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": [
"templates",
"project-templates",
"node_modules",
".next",
"out",

View file

@ -12,7 +12,8 @@ fn main() {
fn build_templates() {
let out_dir = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap());
let templates = std::fs::read_to_string(std::path::Path::new("templates/list.txt")).unwrap();
let templates =
std::fs::read_to_string(std::path::Path::new("project-templates/list.txt")).unwrap();
struct GzLoader<'a>(&'a str);
@ -55,7 +56,7 @@ fn build_templates() {
list.push((id, name, Variable(ident)));
let tar_file = out_dir.join(format!("{id}.tgz"));
let dir = std::path::Path::new("templates").join(id);
let dir = std::path::Path::new("project-templates").join(id);
threads.push(std::thread::spawn(move || build_tar(tar_file, dir)));
}

Some files were not shown because too many files have changed in this diff Show more