From f76bfbbe33c4e8e6ac8da9dccd29bd522d9b7e6f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 29 Aug 2023 15:58:56 -0400 Subject: refactor(init): simplify template (#20325) - Don't include benchmark file - most people won't need this. - Use deno.json instead of deno.jsonc, because it's a more common file format. --- cli/tools/init/mod.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cli/tools/init/mod.rs') diff --git a/cli/tools/init/mod.rs b/cli/tools/init/mod.rs index 7d1d123ed..f0da86006 100644 --- a/cli/tools/init/mod.rs +++ b/cli/tools/init/mod.rs @@ -40,10 +40,7 @@ pub async fn init_project(init_flags: InitFlags) -> Result<(), AnyError> { let main_test_ts = include_str!("./templates/main_test.ts") .replace("{CURRENT_STD_URL}", deno_std::CURRENT_STD_URL_STR); create_file(&dir, "main_test.ts", &main_test_ts)?; - let main_bench_ts = include_str!("./templates/main_bench.ts"); - create_file(&dir, "main_bench.ts", main_bench_ts)?; - - create_file(&dir, "deno.jsonc", include_str!("./templates/deno.jsonc"))?; + create_file(&dir, "deno.json", include_str!("./templates/deno.json"))?; info!("✅ {}", colors::green("Project initialized")); info!(""); @@ -64,8 +61,5 @@ pub async fn init_project(init_flags: InitFlags) -> Result<(), AnyError> { info!(""); info!(" {}", colors::gray("# Run the tests")); info!(" deno test"); - info!(""); - info!(" {}", colors::gray("# Run the benchmarks")); - info!(" deno bench"); Ok(()) } -- cgit v1.2.3