Svelixir.Parse.Base.Template (svelixir v0.1.0)

Copy Markdown

Creates the base project structure using Mix generators.

Runs mix new for OTP projects or mix phx.new for web projects. Validates that the current directory matches the project name, otherwise creates a new directory for the project.

Summary

Functions

Creates the base project structure in the appropriate directory.

Functions

execute(config)

@spec execute(Svelixir.Config.t()) :: :ok | {:error, String.t()}

Creates the base project structure in the appropriate directory.

Validates the current directory name against project name:

  • If current dir name == project name: generates in current directory
  • Otherwise: creates project name directory and generates inside it