grunt-typescript-formatter

0.4.1 • Public • Published

grunt-typescript-formatter NPM version

A grunt plugin for typescript-formatter.

Getting Started

This plugin requires Grunt ~0.4.1

npm install grunt-typescript-formatter --save-dev

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

grunt.loadNpmTasks('grunt-typescript-formatter');

The "tsfmt" task

Overview

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

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

Options

options.configuration

Type: Object

A JSON configuration object passed into typescript-formatter.

Usage Example

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

Readme

Keywords

Package Sidebar

Install

npm i grunt-typescript-formatter

Weekly Downloads

1

Version

0.4.1

License

none

Last publish

Collaborators

  • park9140