Permalink
Browse files

Rename AngularFactory to lower case

  • Loading branch information...
1 parent 80e1f8c commit c90a9cb7a9d7a7e231398dd5c2d52ef9d9758be0 @peterblazejewicz peterblazejewicz committed Jul 24, 2016
Showing with 12 additions and 12 deletions.
  1. +3 −3 README.md
  2. +1 −1 {AngularFactory → angularfactory}/USAGE
  3. +1 −1 {AngularFactory → angularfactory}/index.js
  4. +1 −1 app/USAGE
  5. +6 −6 test/subgenerators.js
View
@@ -97,7 +97,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:angularcontroller](#angularcontroller)
* [aspnet:angularcontrolleras](#angularcontrolleras)
* [aspnet:angulardirective](#angulardirective)
-* [aspnet:AngularFactory](#angularfactory)
+* [aspnet:angularfactory](#angularfactory)
* [aspnet:AngularModule](#angularmodule)
* [aspnet:AppSettings](#appsettings)
* [aspnet:BowerJson](#bowerjson)
@@ -176,13 +176,13 @@ Produces `filename.js`
[Return to top](#top)
-### AngularFactory
+### angularfactory
Creates AngularJS factory file.
Example:
```
-yo aspnet:AngularFactory filename
+yo aspnet:angularfactory filename
```
Produces `filename.js`
@@ -2,7 +2,7 @@ Description:
Creates AngularJS factory file.
Example:
- yo aspnet:AngularFactory filename
+ yo aspnet:angularfactory filename
This will create:
filename.js
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'AngularFactory.js',
+ 'angularfactory.js',
'.js', {
namespace: this.namespace()
}
View
@@ -7,7 +7,7 @@ Subgenerators:
yo aspnet:angularcontroller [options] <name>
yo aspnet:angularcontrolleras [options] <name>
yo aspnet:angulardirective [options] <name>
- yo aspnet:AngularFactory [options] <name>
+ yo aspnet:angularfactory [options] <name>
yo aspnet:AngularModule [options] <name>
yo aspnet:AppSettings [options]
yo aspnet:BowerJson [options]
View
@@ -265,30 +265,30 @@ describe('Subgenerators with named arguments tests', function() {
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');
});
- describe('aspnet:AngularFactory without extension', function() {
+ describe('aspnet:angularfactory without extension', function() {
var arg = 'MyService';
var filename = 'MyService.js';
- util.goCreateWithArgs('AngularFactory', [arg]);
+ util.goCreateWithArgs('angularfactory', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /factory.\$inject/);
});
- describe('aspnet:AngularFactory with extension', function() {
+ describe('aspnet:angularfactory with extension', function() {
var filename = 'MyService.js';
- util.goCreateWithArgs('AngularFactory', [filename]);
+ util.goCreateWithArgs('angularfactory', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /factory.\$inject/);
});
- describe('aspnet:AngularFactory in cwd of project.json', function() {
+ describe('aspnet:angularfactory in cwd of project.json', function() {
var dir = util.makeTempDir();
util.goCreateApplication('classlibrary', 'emptyTest', dir);
var arg = 'MyService';
var filename = 'MyService.js';
console.log(arg, dir);
- util.goCreateWithArgs('AngularFactory', [arg], path.join(dir, 'emptyTest'));
+ util.goCreateWithArgs('angularfactory', [arg], path.join(dir, 'emptyTest'));
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /factory.\$inject/);
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');

0 comments on commit c90a9cb

Please sign in to comment.