Permalink
Browse files

Rename Class to lower case

  • Loading branch information...
1 parent 76af63d commit d1e28414e3576046afa39784b27ba51493f31c6a @peterblazejewicz peterblazejewicz committed Jul 24, 2016
Showing with 15 additions and 15 deletions.
  1. +4 −4 README.md
  2. +1 −1 app/USAGE
  3. +2 −2 {Class → class}/USAGE
  4. 0 {Class → class}/index.js
  5. +8 −8 test/subgenerators.js
View
@@ -101,7 +101,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:angularmodule](#angularmodule)
* [aspnet:appsettings](#appsettings)
* [aspnet:bowerjson](#bowerjson)
-* [aspnet:Class](#class)
+* [aspnet:class](#class)
* [aspnet:CoffeeScript](#coffeescript)
* [aspnet:Dockerfile](#dockerfile)
* [aspnet:gitignore](#gitignore)
@@ -230,14 +230,14 @@ Produces `bower.json` and `.bowerrc`
[Return to top](#top)
-### Class
+### class
-Creates a new ASP.NET Core Class
+Creates a new ASP.NET Core class
Example:
```
-yo aspnet:Class Contact
+yo aspnet:class Contact
```
Produces `/Contact.cs`
View
@@ -11,7 +11,7 @@ Subgenerators:
yo aspnet:angularmodule [options] <name>
yo aspnet:appsettings [options]
yo aspnet:bowerjson [options]
- yo aspnet:Class [options] <name>
+ yo aspnet:class [options] <name>
yo aspnet:CoffeeScript [options] <name>
yo aspnet:Dockerfile [options]
yo aspnet:gitignore [options]
@@ -1,8 +1,8 @@
Description:
- Creates a new C# Class file
+ Creates a new C# class file
Example:
- yo aspnet:Class filename
+ yo aspnet:class filename
This will create:
filename.cs
File renamed without changes.
View
@@ -323,22 +323,22 @@ describe('Subgenerators with named arguments tests', function() {
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\'');
});
- describe('aspnet:Class without extension', function() {
+ describe('aspnet:class without extension', function() {
var arg = 'MyClass';
var filename = 'MyClass.cs';
- util.goCreateWithArgs('Class', [arg]);
+ util.goCreateWithArgs('class', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /[ ]*public[ ]*class[ ]*MyClass/);
});
- describe('aspnet:Class with extension', function() {
+ describe('aspnet:class with extension', function() {
var filename = 'MyClass.cs';
- util.goCreateWithArgs('Class', [filename]);
+ util.goCreateWithArgs('class', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /[ ]*public[ ]*class[ ]*MyClass/);
});
- describe('aspnet:Class in cwd of project.json', function() {
+ describe('aspnet:class in cwd of project.json', function() {
var dir = util.makeTempDir();
util.goCreateApplication('classlibrary', 'emptyTest', dir);
@@ -347,7 +347,7 @@ describe('Subgenerators with named arguments tests', function() {
var filename = 'MyClass.cs';
console.log(arg, dir);
- util.goCreateWithArgs('Class', [arg], path.join(dir, 'emptyTest'));
+ util.goCreateWithArgs('class', [arg], path.join(dir, 'emptyTest'));
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /[ ]*public[ ]*class[ ]*MyClass/);
util.fileContentCheck(filename, 'Check file content', 'namespace emptyTest');
@@ -544,15 +544,15 @@ describe('Subgenerators with named arguments tests', function() {
util.fileCheck('should create Views/' + filename + ' file', filename);
});
- describe('aspnet:Class without extension', function() {
+ describe('aspnet:class without extension', function() {
var arg = 'CartTagHelper';
var filename = 'CartTagHelper.cs';
util.goCreateWithArgs('TagHelper', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /[ ]*public[ ]*class[ ]*CartTagHelper/);
});
- describe('aspnet:Class with extension', function() {
+ describe('aspnet:class with extension', function() {
var filename = 'CartTagHelper.cs';
util.goCreateWithArgs('TagHelper', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);

0 comments on commit d1e2841

Please sign in to comment.