Created
March 9, 2015 20:55
-
-
Save spboyer/ceb5d182d157294f7f6c to your computer and use it in GitHub Desktop.
gulpfile options for generator-aspnet, as well as the Web Starter Template for ASP.NET 5 in Visual Studio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var bower = require('gulp-bower'); | |
var del = require('del'); | |
var project = require('./project.json'); | |
var lib = project.webroot + '/lib'; | |
gulp.task('default', ['bower:install'], function () { | |
return; | |
}); | |
gulp.task('bower:install', ['clean'], function () { | |
return bower({ | |
directory: lib | |
}); | |
}); | |
gulp.task('clean', function (done) { | |
del(lib, done); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.0.0", | |
"name": "<%= applicationname %>", | |
"scripts": { | |
"init": "npm install", | |
"install": "gulp bower:install" | |
}, | |
"devDependencies": { | |
"del": "^1.1.1", | |
"gulp": "^3.8.10", | |
"gulp-bower": "0.0.10" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"webroot": "wwwroot", | |
"version": "1.0.0-*", | |
"dependencies": { | |
"EntityFramework.SqlServer": "7.0.0-beta3", | |
"EntityFramework.Commands": "7.0.0-beta3", | |
"Microsoft.AspNet.Mvc": "6.0.0-beta3", | |
"Microsoft.AspNet.Diagnostics": "1.0.0-beta3", | |
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta3", | |
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta3", | |
"Microsoft.AspNet.Security.Cookies": "1.0.0-beta3", | |
"Microsoft.AspNet.Server.IIS": "1.0.0-beta3", | |
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta3", | |
"Microsoft.AspNet.StaticFiles": "1.0.0-beta3", | |
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta3", | |
"Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta3", | |
"Microsoft.Framework.Logging": "1.0.0-beta3", | |
"Microsoft.Framework.Logging.Console": "1.0.0-beta3", | |
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-beta3", | |
"EntityFramework.InMemory": "7.0.0-beta3", | |
"Kestrel": "1.0.0-beta3" | |
}, | |
"commands": { | |
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5001", | |
"kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004", | |
"gen": "Microsoft.Framework.CodeGeneration", | |
"ef": "EntityFramework.Commands" | |
}, | |
"frameworks": { | |
"aspnet50": {}, | |
"aspnetcore50": {} | |
}, | |
"exclude": [ | |
"wwwroot", | |
"node_modules", | |
"bower_components" | |
], | |
"bundleExclude": [ | |
"node_modules", | |
"bower_components", | |
"**.kproj", | |
"**.user", | |
"**.vspscc" | |
], | |
"scripts": { | |
"postrestore": ["npm install"], | |
"prepare": ["gulp bower:install"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment