From f43913f9d5c3e7bb30d9e10acd192105815da8a7 Mon Sep 17 00:00:00 2001 From: Randy Patterson Jr Date: Thu, 2 Jul 2015 09:26:42 -0400 Subject: [PATCH] Add Gruntfile for the websimple project template. --- templates/projects/websimple/gruntfile.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 templates/projects/websimple/gruntfile.js diff --git a/templates/projects/websimple/gruntfile.js b/templates/projects/websimple/gruntfile.js new file mode 100644 index 00000000..a3fef605 --- /dev/null +++ b/templates/projects/websimple/gruntfile.js @@ -0,0 +1,23 @@ +// This file in the main entry point for defining grunt tasks and using grunt plugins. +// Click here to learn more. http://go.microsoft.com/fwlink/?LinkID=513275&clcid=0x409 +module.exports = function(grunt) { + 'use strict'; + grunt.initConfig({ + bower: { + install: { + options: { + targetDir: "wwwroot/lib", + layout: "byComponent", + cleanTargetDir: false + } + } + } + }); + + // This command registers the default task which will install bower packages into wwwroot/lib + grunt.registerTask("default", ["bower:install"]); + + // The following line loads the grunt plugins. + // This line needs to be at the end of this this file. + grunt.loadNpmTasks("grunt-bower-task"); +};