New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-ts-watch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-ts-watch

[![Build Status](https://travis-ci.org/noomorph/grunt-ts-watch.svg?branch=master)](https://travis-ci.org/noomorph/grunt-ts-watch) [![View this project on NPM](https://img.shields.io/npm/v/grunt-ts-watch.svg)](https://npmjs.org/package/grunt-ts-watch) [![V

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

grunt-ts-watch

Build Status View this project on NPM View this project on NPM

A bit hacky but also a bit smarter Grunt TypeScript task exploiting tsc --watch mode for faster execution between runs.

How to use?

Add a section for ts-watch with a target (e.g. app) in Gruntfile.js like below:

{
/* ... */
    'ts-watch': {
        'app': { /*** below are the default values: ***/
            compiler: './node_modules/.bin/tsc',
            compilerArgs: [],
            timeout: 30000,
        }
    }
/* ... */
}

Make sure you load it somewhere like this (or any other suitable way for you):

grunt.loadNpmTasks('grunt-ts-watch');

Check task's functioning by running in CLI:

grunt --verbose ts-watch:app

Credits

This solution originated in this StackOverflow discussion.

Many thanks to @unional who suggested to look here at his workaround.

I owe you my inspiration.

License

Copyright (c) 2017- Yaroslav Serhieiev @noomorph

Licensed under the MIT license.

FAQs

Package last updated on 13 Jun 2017

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