Make TypeScript modules globally available in Node environment.
This plugin requires Grunt
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-ts-globalizer --save-dev
The "tsGlobalizer" task
In your project's Gruntfile, add a section named
tsGlobalizer to the data object passed into
The wildcard selector
* is perfectly valid for selecting targets to globalize.
Globalize the file only if the pattern has group capture of the moduleName and has at least one match.
The global variable name to register the module on. By default its registers the module on the Node global variable.
Usage examples can be found inside
Gruntfile.js of the project.
grunt-ts-globalizer simply adds registration assignments to the head and the foot of the files that are specified by the array passed to
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.