0.0.4 • Published 9 years ago

gulp-typescript-filesort v0.0.4

Weekly downloads
16
License
MIT
Repository
github
Last release
9 years ago

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/"));
});