package-bootstrapper
TypeScript icon, indicating that this package has built-in type declarations

1.0.21 • Public • Published

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 scripts
  • dependencies: an array of dependencies to install
  • devDependencies: an array of devDependencies to install
  • params: additional params to attach to package.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

Readme

Keywords

none

Package Sidebar

Install

npm i package-bootstrapper

Weekly Downloads

0

Version

1.0.21

License

ISC

Unpacked Size

23.9 kB

Total Files

14

Last publish

Collaborators

  • assafbarash