Skip to content

beytu/gulp-typescript-filesort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a gulp plugin to sort TypeScript files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published