https://github.com/gjermundgaraba/gulp-clean-compiled-typescript
Gulp plugin that cleans compiled output from typescript files (.js, js.map and d.ts files)
https://github.com/gjermundgaraba/gulp-clean-compiled-typescript
gulp-plugins javascript npm-package typescript
Last synced: 2 months ago
JSON representation
Gulp plugin that cleans compiled output from typescript files (.js, js.map and d.ts files)
- Host: GitHub
- URL: https://github.com/gjermundgaraba/gulp-clean-compiled-typescript
- Owner: gjermundgaraba
- License: mit
- Created: 2016-04-26T17:44:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-13T06:42:39.000Z (over 8 years ago)
- Last Synced: 2025-03-01T15:48:01.935Z (3 months ago)
- Topics: gulp-plugins, javascript, npm-package, typescript
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```js
var cleanCompiledTypeScript = require('gulp-clean-compiled-typescript');gulp.task('default', function () {
return gulp.src('./app/**/*.ts')
.pipe(cleanCompiledTypeScript());
});
```