Grunt task to generate a T4MVC C# class to strongly type static files
JavaScript C#
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tasks
test
.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

grunt-t4mvc-statics

Grunt task to generate a T4MVC C# class to strongly type your static folder(s)

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-t4mvc-statics --save-dev

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

grunt.loadNpmTasks('grunt-t4mvc-statics');

The "t4mvc_statics" task

Overview

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

grunt.initConfig({
  t4mvc_statics: {
    options: {
      // Task-specific options go here.
    },
    files: {
      'Generated Filepath here' : [ 'Static Folder Here']
    },
  },
})