@autogen-export/core
TypeScript icon, indicating that this package has built-in type declarations

4.0.17 • Public • Published

THIS PLUGIN CURRENT NOT SUPPORT EXPORT DEFAULT

INSTALLATION: npm install --dev @autogenerate-export/core

yarn add --dev @autogenerate-export/core

EXAMPLE CODE:

const path = require("path");

const { recursiveGenerateExportFile } = require("@autogenerate-export/core");

recursiveGenerateExportFile({
  rootDirectory: path.resolve(__dirname, "./target"),
  fileExts: ["ts"],
  generatedFileExt: "ts",
  exclude: []
});

INTRODUCTION: This's a core package of Auto-Generate-Re-export-File package. This package provides core functionalities such as generateRexportFile of a specified folder.

Two primary exported APIs was: recursiveGenerateExportFile and generateExportFile.

The CLI package is located at: CLI PACKAGE

USAGE:

export interface RecursiveGenerateReexportIndex {
  rootDirectory: string;
  fileExts?: string[];
  stripFileExts?: string[];
  generatedFileExt?: string;
  exclude?: RegExp[];
  babelConfigPath?: string;
  ignoreDirectory?: boolean
}

PARAMETERS:

  • rootDirectory:string Directory to start generating re-export file
  • exclude: Folders whose name matched these regexes will be ignored when generating re-export file
  • generatedFileExt: Extension of generate re-exort file
  • fileExts: file extensions will be parsed (Re-export if It's
  • babelConfigPath: babel config path that will be used by babel core to parse It's syntanx. Not required
  • stripFileExts: file which extensions is specified in the list will be strip
  • ignoreDirectory: folder/directory will be skipped while parsing

MY MEDIUM POST: recursively-export-file-pattern-in-javascript-es6-application

EXAMPLE:

Package Sidebar

Install

npm i @autogen-export/core

Weekly Downloads

0

Version

4.0.17

License

MIT

Unpacked Size

677 kB

Total Files

259

Last publish

Collaborators

  • phmngocnghia