Permalink
Browse files

Rename MvcView to lower case

  • Loading branch information...
1 parent 9fc7fe4 commit 9d6c03890c2847f818b53e0f0d8c6639736ec9d0 @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -115,7 +115,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:jsx](#jsx)
* [aspnet:middleware](#middleware)
* [aspnet:mvccontroller](#mvccontroller)
-* [aspnet:MvcView](#mvcview)
+* [aspnet:mvcview](#mvcview)
* [aspnet:nuget](#nuget)
* [aspnet:PackageJson](#packagejson)
* [aspnet:Program](#program)
@@ -434,14 +434,14 @@ Produces `/ContactController.cs`
[Return to top](#top)
-### MvcView
+### mvcview
Creates a new ASP.NET Core MvcView page file
Example:
```
-yo aspnet:MvcView ContactView
+yo aspnet:mvcview ContactView
```
Produces `/ContactView.cshtml`
View
@@ -24,7 +24,7 @@ Subgenerators:
yo aspnet:jsonschema [options] <name>
yo aspnet:middleware [options] <name>
yo aspnet:mvccontroller [options] <name>
- yo aspnet:MvcView [options] <name>
+ yo aspnet:mvcview [options] <name>
yo aspnet:nuget [options]
yo aspnet:PackageJson [options]
yo aspnet:Program [options]
@@ -2,7 +2,7 @@ Description:
Creates a new MvcView
Example:
- yo aspnet:MvcView filename
+ yo aspnet:mvcview filename
This will create:
filename.cshtml
@@ -13,7 +13,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
var extension = '.cshtml';
this.generateTemplateFile(
- 'MvcView.cshtml',
+ 'mvcview.cshtml',
extension, {
pagename: this.classNameWithoutExtension(extension)
}
File renamed without changes.
View
@@ -521,26 +521,26 @@ describe('Subgenerators with named arguments tests', function() {
util.fileCheck('should create Controllers/' + filename + ' file', filename);
});
- describe('aspnet:MvcView without extension', function() {
+ describe('aspnet:mvcview without extension', function() {
var arg = 'file';
var filename = 'file.cshtml';
- util.goCreateWithArgs('MvcView', [arg]);
+ util.goCreateWithArgs('mvcview', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:MvcView with extension', function() {
+ describe('aspnet:mvcview with extension', function() {
var filename = 'file.cshtml';
- util.goCreateWithArgs('MvcView', [filename]);
+ util.goCreateWithArgs('mvcview', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:MvcView in cwd of project.json', function() {
+ describe('aspnet:mvcview in cwd of project.json', function() {
var arg = 'file';
var filename = 'file.cshtml';
var dir = util.makeTempDir();
util.goCreateApplication('web', 'webTest', dir);
- util.goCreateWithArgs('MvcView', [arg], path.join(dir, 'webTest'));
+ util.goCreateWithArgs('mvcview', [arg], path.join(dir, 'webTest'));
util.fileCheck('should create Views/' + filename + ' file', filename);
});

0 comments on commit 9d6c038

Please sign in to comment.