2.1.0 • Published 1 year ago

@amirsavand/ts-barrel v2.1.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
1 year ago

@amirsavand/ts-barrel

CLI tool to generate barrel files for TypeScript projects.

npm

Changelog

Installation

npm install --save-dev @amirsavand/ts-barrel

Usage

You can execute it in the terminal or import the module.

CLI

  • Create configuration file
    ts-barrel init
  • Start generating barrel files
    ts-barrel

Script

import { generateBarrelFiles } from '@amirsavand/ts-barrel';

// Start generating barrel files.
// Start from the "src/" directory.
// Ignore "foo/" and "bar/" directories.
generateBarrelFiles({
  // List of folders to process.
  root: ['src'],
  // List of folders to ignore from process (their
  // children are not ignored).
  ignore: ['foo', 'bar'],
});

Built With

About

Made with 💖 by Savand Bros © 2023-present.

1.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.1.0

1 year ago

1.0.1

3 years ago

1.0.0

3 years ago