4.0.17 • Published 4 years ago

@autogen-export/core v4.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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:

4.0.17

4 years ago

4.0.16

4 years ago

4.0.15

4 years ago

4.0.14

4 years ago

4.0.13

4 years ago

4.0.12

5 years ago

4.0.11

5 years ago

4.0.10

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.0

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago