1.0.10 • Published 6 years ago

grunt-direct-tsickle v1.0.10

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
6 years ago

grunt-direct-tsickle

Grunt task to call tsickle, as from the command line, but without forking a new node instance.

Watchmode (-w) doesn't work yet, but if you file an issue, I will implement it in days.

Example:

module.exports = function(grunt) {
  'use strict';
  grunt.initConfig({

    tsickle : {
      dist : {
        options : {
          args : [ "--externs=dist/externs.js", "--", "-p", "src" ],
          debug : true
        }
      },
      test : {
        options : {
          args : [ "--externs=dist/externs-test.js", "--", "-p", "test/src" ],
          debug : true
        }
      }
    }

  });
  grunt.loadNpmTasks("grunt-direct-tsickle");
};

Here we can see multiple configurations in which we can call the typescript compiler. I think it is nearly self-explaining:

grunt tsickle:dist will be the equivalent of a ./node_modules/.bin/tsickle -p tsconfig-dist.json, while grunt tsickle:dev will do an equivalent of ./node_modules/.bin/tsickle -p tsconfig-test.json.

There are no more configuration options.

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago