Create .web only after template selection (#2288)

This commit is contained in:
Elijah Ahianyo 2023-12-14 23:18:27 +00:00 committed by GitHub
parent caedda5c75
commit 70ac284370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,12 +80,6 @@ def _init(
prerequisites.check_latest_package_version(constants.Reflex.MODULE_NAME)
# Set up the web project.
prerequisites.initialize_frontend_dependencies()
# Migrate Pynecone projects to Reflex.
prerequisites.migrate_to_reflex()
# Set up the app directory, only if the config doesn't exist.
if not os.path.exists(constants.Config.FILE):
if template is None:
@ -96,6 +90,12 @@ def _init(
else:
telemetry.send("reinit")
# Set up the web project.
prerequisites.initialize_frontend_dependencies()
# Migrate Pynecone projects to Reflex.
prerequisites.migrate_to_reflex()
# Initialize the .gitignore.
prerequisites.initialize_gitignore()