Skip to content

assafBarash/node-package-bootstrapper

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published