Home > @ricado/version-file > VersionFileGenerator

VersionFileGenerator class

Generates a verson file with based on a package.json file. Usually used during the build stage of an App release to a public assets folder.

Signature:

export declare class VersionFileGenerator 

Constructors

Constructor Modifiers Description
(constructor)(options)   Constructs a new instance of the VersionFileGenerator class

Methods

Method Modifiers Description
generate()   Generate a version file from the IVersionFileConfigOptions. If we are given a template string in the config, then use it directly. But if we get a file path, fetch the content then use it.