Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Rename MvcView to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
peterblazejewicz committed Jul 24, 2016
1 parent 9fc7fe4 commit 9d6c038
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -115,7 +115,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:jsx](#jsx) * [aspnet:jsx](#jsx)
* [aspnet:middleware](#middleware) * [aspnet:middleware](#middleware)
* [aspnet:mvccontroller](#mvccontroller) * [aspnet:mvccontroller](#mvccontroller)
* [aspnet:MvcView](#mvcview) * [aspnet:mvcview](#mvcview)
* [aspnet:nuget](#nuget) * [aspnet:nuget](#nuget)
* [aspnet:PackageJson](#packagejson) * [aspnet:PackageJson](#packagejson)
* [aspnet:Program](#program) * [aspnet:Program](#program)
Expand Down Expand Up @@ -434,14 +434,14 @@ Produces `/ContactController.cs`


[Return to top](#top) [Return to top](#top)


### MvcView ### mvcview


Creates a new ASP.NET Core MvcView page file Creates a new ASP.NET Core MvcView page file


Example: Example:


``` ```
yo aspnet:MvcView ContactView yo aspnet:mvcview ContactView
``` ```


Produces `/ContactView.cshtml` Produces `/ContactView.cshtml`
Expand Down
2 changes: 1 addition & 1 deletion app/USAGE
Expand Up @@ -24,7 +24,7 @@ Subgenerators:
yo aspnet:jsonschema [options] <name> yo aspnet:jsonschema [options] <name>
yo aspnet:middleware [options] <name> yo aspnet:middleware [options] <name>
yo aspnet:mvccontroller [options] <name> yo aspnet:mvccontroller [options] <name>
yo aspnet:MvcView [options] <name> yo aspnet:mvcview [options] <name>
yo aspnet:nuget [options] yo aspnet:nuget [options]
yo aspnet:PackageJson [options] yo aspnet:PackageJson [options]
yo aspnet:Program [options] yo aspnet:Program [options]
Expand Down
2 changes: 1 addition & 1 deletion MvcView/USAGE → mvcview/USAGE
Expand Up @@ -2,7 +2,7 @@ Description:
Creates a new MvcView Creates a new MvcView


Example: Example:
yo aspnet:MvcView filename yo aspnet:mvcview filename


This will create: This will create:
filename.cshtml filename.cshtml
2 changes: 1 addition & 1 deletion MvcView/index.js → mvcview/index.js
Expand Up @@ -13,7 +13,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() { NamedGenerator.prototype.createNamedItem = function() {
var extension = '.cshtml'; var extension = '.cshtml';
this.generateTemplateFile( this.generateTemplateFile(
'MvcView.cshtml', 'mvcview.cshtml',
extension, { extension, {
pagename: this.classNameWithoutExtension(extension) pagename: this.classNameWithoutExtension(extension)
} }
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions test/subgenerators.js
Expand Up @@ -521,26 +521,26 @@ describe('Subgenerators with named arguments tests', function() {
util.fileCheck('should create Controllers/' + filename + ' file', filename); util.fileCheck('should create Controllers/' + filename + ' file', filename);
}); });


describe('aspnet:MvcView without extension', function() { describe('aspnet:mvcview without extension', function() {
var arg = 'file'; var arg = 'file';
var filename = 'file.cshtml'; var filename = 'file.cshtml';
util.goCreateWithArgs('MvcView', [arg]); util.goCreateWithArgs('mvcview', [arg]);
util.fileCheck('should create ' + filename + ' file', filename); util.fileCheck('should create ' + filename + ' file', filename);
}); });


describe('aspnet:MvcView with extension', function() { describe('aspnet:mvcview with extension', function() {
var filename = 'file.cshtml'; var filename = 'file.cshtml';
util.goCreateWithArgs('MvcView', [filename]); util.goCreateWithArgs('mvcview', [filename]);
util.fileCheck('should create ' + filename + ' file', 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 arg = 'file';
var filename = 'file.cshtml'; var filename = 'file.cshtml';
var dir = util.makeTempDir(); var dir = util.makeTempDir();


util.goCreateApplication('web', 'webTest', dir); 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); util.fileCheck('should create Views/' + filename + ' file', filename);
}); });


Expand Down

0 comments on commit 9d6c038

Please sign in to comment.