Permalink
Browse files

Rename AngularDirective to lower case

  • Loading branch information...
1 parent 8d61331 commit 80e1f8cb1f59396d9c3f54b4948ee0edfd398481 @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -96,7 +96,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:angularcontroller](#angularcontroller)
* [aspnet:angularcontrolleras](#angularcontrolleras)
-* [aspnet:AngularDirective](#angulardirective)
+* [aspnet:angulardirective](#angulardirective)
* [aspnet:AngularFactory](#angularfactory)
* [aspnet:AngularModule](#angularmodule)
* [aspnet:AppSettings](#appsettings)
@@ -163,13 +163,13 @@ Produces `filename.js`
[Return to top](#top)
-### AngularDirective
+### angulardirective
Creates AngularJS directive file.
Example:
```
-yo aspnet:AngularDirective filename
+yo aspnet:angulardirective filename
```
Produces `filename.js`
@@ -2,7 +2,7 @@ Description:
Creates a new AngularJS directive file.
Example:
- yo aspnet:AngularDirective filename
+ yo aspnet:angulardirective filename
This will create:
filename.js
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'AngularDirective.js',
+ 'angulardirective.js',
'.js', {
namespace: this.namespace()
}
View
@@ -6,7 +6,7 @@ Subgenerators:
yo aspnet:angularcontroller [options] <name>
yo aspnet:angularcontrolleras [options] <name>
- yo aspnet:AngularDirective [options] <name>
+ yo aspnet:angulardirective [options] <name>
yo aspnet:AngularFactory [options] <name>
yo aspnet:AngularModule [options] <name>
yo aspnet:AppSettings [options]
View
@@ -236,30 +236,30 @@ describe('Subgenerators with named arguments tests', function() {
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');
});
- describe('aspnet:AngularDirective without extension', function() {
+ describe('aspnet:angulardirective without extension', function() {
var arg = 'HomeComponentDirective';
var filename = 'HomeComponentDirective.js';
- util.goCreateWithArgs('AngularDirective', [arg]);
+ util.goCreateWithArgs('angulardirective', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /directive.\$inject/);
});
- describe('aspnet:AngularDirective with extension', function() {
+ describe('aspnet:angulardirective with extension', function() {
var filename = 'HomeComponentDirective.js';
- util.goCreateWithArgs('AngularDirective', [filename]);
+ util.goCreateWithArgs('angulardirective', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /directive.\$inject/);
});
- describe('aspnet:AngularDirective in cwd of project.json', function() {
+ describe('aspnet:angulardirective in cwd of project.json', function() {
var dir = util.makeTempDir();
util.goCreateApplication('classlibrary', 'emptyTest', dir);
var arg = 'HomeComponentDirective';
var filename = 'HomeComponentDirective.js';
console.log(arg, dir);
- util.goCreateWithArgs('AngularDirective', [arg], path.join(dir, 'emptyTest'));
+ util.goCreateWithArgs('angulardirective', [arg], path.join(dir, 'emptyTest'));
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /directive.\$inject/);
util.fileContentCheck(filename, 'Check file content', '.module(\'emptyTest\')');

0 comments on commit 80e1f8c

Please sign in to comment.