Go to repository

Function create

Create a new library project in a subfolder with the given name. This includes creating all the required and recommended style files define a package.json, git configuration files, visual studio code files, NPM configuration files, contribution guidelines, a readme, a license (MIT by default), install all dependencies, and initialize a git repository.

FileSystemError: If the argument for projectType or packageManager is invalid.

FileSystemError: If there's already a folder with the project name, or the folder is not empty.

Parameters

  • projectName: string

    The name of the project to be created.

  • Optional
    projectType: string

    The project type to create (Defaults to "library").

  • Optional
    packageManager: string

    The package manager to use when downloading dependencies.

  • Optional
    test: boolean

    Whether test information should be added to the .npmrc file.

Returns void