afterForged
is a lifecycle function used for other step operations after file operations in generator plugin.
The APIs provided by the api
parameter will be introduced below.
Checks whether the current project is a git repository.
Initializes the current project as a git repository.
Commits changes to the current repository.
Parameters:
commitMessage
: commit message.Installs dependencies in the root directory of the project. The install
function will use the corresponding package manager according to the value of packageManager
to install dependencies.