gulp-typescript-filesort

0.0.4 • Public • Published

Gulp TypeScript Filesort

This is a simple gulp plugin which sort TS files using the Typescript compiler API. Don't use it in production environment since it has not been battle tested and only respond to a simple use case.

Installing

npm install gulp-typescript-filesort

Options

  • options.verbose : The plugin will output which files it encoutered and whih file it emit (including the order)
  • options.compiler : you can provide options to the Typescript compiler

Usage

The file list as a json format

Use with gulp-filelist, you can produce a file containing a list of ordered TS files :

var gulp = require('gulp');

var filesort = require('gulp-typescript-filesort');
var filelist = require('gulp-filelist');


gulp.task('ts-filelist', function() {
	return gulp.src("src/**/*.ts")
	.pipe(filesort())
	.pipe(filelist('filelist.json'))
	.pipe(gulp.dest("tmp/"));
});

Package Sidebar

Install

npm i gulp-typescript-filesort

Weekly Downloads

21

Version

0.0.4

License

MIT

Last publish

Collaborators

  • beytu