@screencloud/finalize-build-cli
v1.2.4
Published
Finalize CLI for regex replacement of template variables in a prepared build folder
Downloads
521
Readme
@screencloud/finalize-build-cli
A simple cli utility to replace template variables in a prepared build.
CLI
Install
run npm i -g @screencloud/finalize-build-cli
.
Usage
Usage: finalize-build [options]
Options:
-V, --version output the version number
-e, --env-files <file> A list of .env files to load (default: [])
-i, --input <path> Set the input path of the prepared build to be used (default: "builds/prepared-development")
-o, --output <path> output path for the finalized builds (default: "builds/development")
-m, --metadata <path> path to metadata json file (default: "builds/prepared-development-metadata.json")
-f, --files <files> A list of globs for files to be replaced, (defaults to all json,js,css,html files) (default: ["*.html","*.json","*.js","*.css","**/*.html","**/*.json","**/*.js","**/*.css"])
-p, --path <path> Set the current working directory (default: "C:\\git\\screencloud\\finalize-build-cli")
-h, --help output usage information
Metadata
The metadata json needs to be of the following format
export interface IMetadata {
templateVars: string[];
}