package-bootstrapper
v1.0.21
Published
Bootstraps node projects by given config
Downloads
5
Readme
Node Package Bootstrapper
Bootstraps node projects by given config
Getting Started
import { Bootstrapper } from 'package-bootstrapper';
const appName = 'test-app';
Bootstrapper(appName).bootstrap();
API
.bootstrap(options:BootstrapOptions)
Options
type BootstrapOptions = Partial<{
packageJson: Partial<{
scripts: Record<string, string>;
dependencies: string[];
devDependencies: string[];
params: Record<string, any>;
}>;
files: Record<string, string>;
postScripts: string[];
}>;
packageJson
scripts
: override default scriptsdependencies
: an array of dependencies to installdevDependencies
: an array of devDependencies to installparams
: additional params to attach topackage.json
files
defines files to be created on bootstrap. each key is a file path and each value is the corresponding file content
postScripts
scripts to run post initialization