Skip to content

Gulp plugin that cleans compiled output from typescript files (.js + js.map files)

License

Notifications You must be signed in to change notification settings

fredrik-smedberg/gulp-clean-compiled-typescript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-clean-compiled-typescript

Gulp plugin that cleans compiled output from typescript files (.js + js.map files)

It also supports .tsx files.

Install

$ npm install --save-dev gulp-clean-compiled-typescript

What it deletes

The plugin only supports deleting compiled files with the same name as the TypeScript file that are adjacent to said file.

That means that if you send in a file with the following filename:

/some/path/some-file.ts

The following files will be deleted:

/some/path/some-file.js
/some/path/some-file.js.map

If you by accident send in non-TypeScript files, they will completely ignored.

Example

You send in the typescript files which have compiled files.

var cleanCompiledTypeScript = require('gulp-clean-compiled-typescript');

gulp.task('default', function () {
	return gulp.src('./app/**/*.ts')
        .pipe(cleanCompiledTypeScript());
});

About

Gulp plugin that cleans compiled output from typescript files (.js + js.map files)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%