Permalink
Browse files

Rename AngularModule to lower case

  • Loading branch information...
1 parent c90a9cb commit 8b901a4bf56157dc442c464f1743813953ba46ac @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -98,7 +98,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:angularcontrolleras](#angularcontrolleras)
* [aspnet:angulardirective](#angulardirective)
* [aspnet:angularfactory](#angularfactory)
-* [aspnet:AngularModule](#angularmodule)
+* [aspnet:angularmodule](#angularmodule)
* [aspnet:AppSettings](#appsettings)
* [aspnet:BowerJson](#bowerjson)
* [aspnet:Class](#class)
@@ -189,13 +189,13 @@ Produces `filename.js`
[Return to top](#top)
-### AngularModule
+### angularmodule
Creates AngularJS module file
Example:
```
-yo aspnet:AngularModule filename
+yo aspnet:angularmodule filename
```
Produces `filename.js`
@@ -2,7 +2,7 @@ Description:
Creates AngularJS module file
Example:
- yo aspnet:AngularModule filename
+ yo aspnet:angularmodule filename
This will produce:
filename.js
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'AngularModule.js',
+ 'angularmodule.js',
'.js', {
namespace: this.namespace()
}
View
@@ -8,7 +8,7 @@ Subgenerators:
yo aspnet:angularcontrolleras [options] <name>
yo aspnet:angulardirective [options] <name>
yo aspnet:angularfactory [options] <name>
- yo aspnet:AngularModule [options] <name>
+ yo aspnet:angularmodule [options] <name>
yo aspnet:AppSettings [options]
yo aspnet:BowerJson [options]
yo aspnet:Class [options] <name>
File renamed without changes.
View
@@ -294,30 +294,30 @@ describe('Subgenerators with named arguments tests', function() {
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');
});
- describe('aspnet:AngularModule without extension', function() {
+ describe('aspnet:angularmodule without extension', function() {
var arg = 'MyApplication';
var filename = 'MyApplication.js';
- util.goCreateWithArgs('AngularModule', [arg]);
+ util.goCreateWithArgs('angularmodule', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /angular.module/);
});
- describe('aspnet:AngularModule with extension', function() {
+ describe('aspnet:angularmodule with extension', function() {
var filename = 'MyApplication.js';
- util.goCreateWithArgs('AngularModule', [filename]);
+ util.goCreateWithArgs('angularmodule', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /angular.module/);
});
- describe('aspnet:AngularModule in cwd of project.json', function() {
+ describe('aspnet:angularmodule in cwd of project.json', function() {
var dir = util.makeTempDir();
util.goCreateApplication('classlibrary', 'emptyTest', dir);
var arg = 'MyApplication';
var filename = 'MyApplication.js';
console.log(arg, dir);
- util.goCreateWithArgs('AngularModule', [arg], path.join(dir, 'emptyTest'));
+ util.goCreateWithArgs('angularmodule', [arg], path.join(dir, 'emptyTest'));
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /angular.module/);
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\'');

0 comments on commit 8b901a4

Please sign in to comment.