Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NewProjectMaker

Creates a new project under a directory named after the project passed as a CLI argument.

Hierarchy

  • NewProjectMaker

Index

Constructors

constructor

Properties

Private projectName

projectName: string

the name of the project, to be used for naming the container folder and the project name in package.json.

Methods

Private createConfigDir

  • createConfigDir(): void

Private createFile

  • createFile(fileRelativePath: string, fileContents: string): void
  • Creates a file in the provided relative path with the contents passed.

    Parameters

    • fileRelativePath: string

      relative path to base.

    • fileContents: string

      contents of the file to write.

    Returns void

init

  • init(): void

Private loopFiles

  • loopFiles(): void

Private normalizeName

  • normalizeName(): void

Private setDirs

  • setDirs(): void
  • Calls workingDirSetter passing the projectName as the base name. Because workingDirSetter creates the folders if none is found, in this way the whole project structure is automaticlly created.

    Returns void