Subgenerators have been merged to OmniSharp/generator-aspnet all future functionality and issues will be done in this repo.
Yeoman generator for creating ASP.NET vNext items
- Install:
npm install -g generator-aspnet-item
- Run:
yo aspnet-item:MvcController MyController
- or other options below
The following item types are currently supported
####BowerJson
yo aspnet-item:BowerJson
Outputs: bower.json
####Class
yo aspnet-item:Class filename
Outputs: filename.cs
####CoffeeScript
yo aspnet-item:CoffeeScript filename
Outputs: filename.coffee
####Config
yo aspnet-item:Config
Outputs: config.json
####GruntFile
yo aspnet-item:GruntFile filename
Outputs: filename.json
####HTMLPage
yo aspnet-item:HTMLPage filename
Outputs: filename.html
####Javascript
yo aspnet-item:JScript filename
Outputs: filename.js
####JSON
yo aspnet-item:JSON filename
Outputs: filename.json
####MvcController
yo aspnet-item:MvcController filename
Outputs: Controllers/filename.cs
####MvcView
yo aspnet-item:MvcView filename
Outputs: Views/filename.cshtml
####PackageJson
yo aspnet-item:PackageJson
Outputs: package.json
####StartupClass
yo aspnet-item:StartupClass
Outputs: Startup.cs
####TextFile
yo aspnet-item:TextFile filename
Outputs: filename.txt
####WebApiController
yo aspnet-item:WebApiController filename
Outputs: Controllers/filename.cs
yeoman has to be installed.
npm install -g yo bower
This is the first release and a work in progress. Critical issues:
- Little or no error handling.
- Want to add to be true subcommands to generator-aspnet
Apache 2.0