grunt-tsfmt

2.0.0 • Public • Published

Getting Started

This plugin requires Grunt ~0.4.1

npm install grunt-tsfmt --save-dev

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

grunt.loadNpmTasks('grunt-tsfmt');

The "tsfmt" task

Overview

In your project's Gruntfile, add a section named tsfmt to the data object passed into grunt.initConfig().

grunt.initConfig({
  tsfmt: {
    options: {
	  // Task-specific options go here.
    },
    files: {
	  // Files to format go here
    },
  },
})

Options

options.configuration

Type: Object

A JSON configuration object passed into tsfmt.

Usage Example

grunt.initConfig({
  tsfmt: {
    files: {
      src: ['src/file1.ts', 'src/file2.ts']
    }
  }
})

Readme

Keywords

Package Sidebar

Install

npm i grunt-tsfmt

Weekly Downloads

51

Version

2.0.0

License

none

Last publish

Collaborators

  • noesis
  • padenportillo