0.1.0 • Published 10 years ago

grunt-clean-ts-extends v0.1.0

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

grunt-clean-ts-extends

npm.io   npm.io

In compiled TypeScript files remove all __extends declarations except the first one

If you first compile all your TypeScript sources and then concatenate them into one file you might get quite a lot of __extends declarations. This plugin leaves the first one and removes all following.

Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-clean-ts-extends --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-clean-ts-extends');

cleanTsExtends task

Task targets, files and options may be specified according to the grunt Configuring tasks guide.

Task must be used on non-minified JavaScript!

Usage Example

cleanTsExtends: {
  clean: {
    src: './dist/concat.ts'
  }
}

Release History

  • 0.1.0 / 2014-10-04
    • First version.