2.1.1 • Published 6 years ago

@vlr/ts-reexports v2.1.1

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

ts-reexports

Mind the following 1) Regex is very simple, so if these lines are found inside comments, files gets reexportes just the same. Do not comment out your code. Never. Regardless of. 2) Inside string lines as well, so pay attention. 3) If anything other than reexport is found in index.ts, including comments and empty semicolons, file is considered off-limits, i.e. user managed.

const gulp = require('gulp');
const generator = require('@vlr/ts-reexports')

const options = { lineFeed: '\r\n', quotes: '"', typesOnly: true };

gulp.task('generate-reexports', function (done) {
  generator.generateReexports('./src', options)
    .then(done);
});

lineFeed and quotes are symbols used in corresponding places of generated file, types only = false will work with all .ts and .tsx files in specified folder, recursively, types only = true will only work with .type.ts files This option is meant for the projects where all the interfaces, enums and types are created in files having that extra extension

2.1.1

6 years ago

2.1.0

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago