Socket
Socket
Sign inDemoInstall

grunt-ts

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-ts

compile typescript files to javascript using tsc command


Version published
Weekly downloads
16K
increased by1.89%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-ts

A written from scratch TypeScript compiler task for GruntJS.

It differs from grunt-typescript and grunt-type in two key ways:

  • This is written in TypeScript 0.9
  • It is super easy to extend and update
  • it simply uses tsc on the commandline.
  • Super short and clear typescript code.

Check out the complete code: https://github.com/basarat/grunt-ts/blob/master/tasks/ts.ts

Compiles all files. Stops on a compilation error reporting it on the console. Makes for easier view.

Documentation

You'll need to install grunt-ts first:

npm install grunt-ts

Then modify your grunt.js file by adding the following line:

grunt.loadNpmTasks('grunt-ts');

Then add some configuration for the plugin like so:

grunt.initConfig({
    ...
    ts: {
      base: {
        src: ['path/to/typescript/files/**/*.ts']            
      }
    },
    ...
});

Keywords

FAQs

Package last updated on 10 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc