Vanilla / Available Templates
Available Templates
Lists available Vite project templates.
$
Terminal vanilla, vanilla-ts, vue, vue-ts, react, react-ts, react-swc, react-swc-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts. vanilla, vanilla-ts, vue, vue-ts, react, react-ts, react-swc, react-swc-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts. #!/bin/bash
# Available Templates
vanilla, vanilla-ts, vue, vue-ts, react, react-ts, react-swc, react-swc-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts. import subprocess
# Available Templates
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"vanilla",
"vanilla-ts,",
"vue,",
"vue-ts,",
"react,",
"react-ts,",
"react-swc,",
"react-swc-ts,",
"preact,",
"preact-ts,",
"lit,",
"lit-ts,",
"svelte,",
"svelte-ts."
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: vanilla not found. Please install it first.")
if __name__ == "__main__":
run_command() When To Use
When selecting a template for a new Vite project.
Pro Tip
Templates may require installing additional dependencies post-creation for specific frameworks.
Anatomy of Output
Understanding the result
Troubleshooting
Common pitfalls
Command Breakdown
What each part is doing
-
vanilla, - Base Command
- The executable that performs this operation. Here it runs Vanilla before the shell applies any redirect operators.
Alternative Approaches
Comparable commands in other tools
Alternative documentation tools for the same job.