Skip to content

gjermundgaraba/gulp-clean-compiled-typescript

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

gulp-clean-compiled-typescript

Gulp plugin that cleans compiled output from typescript files (generated .js, js.map and .d.ts files)

The plugin supports .ts and .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.

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

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

/some/path/some-file.ts

The following files will be deleted (if they exist):

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

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 and d.ts files)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published