Permalink
Browse files

Rename JavaScript to lower case

  • Loading branch information...
1 parent 6dac15d commit 6c96de185c971777ae21ae1eda7dc22b7e63acfc @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -109,7 +109,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:gulpfile](#gulpfile)
* [aspnet:htmlpage](#htmlpage)
* [aspnet:interface](#interface)
-* [aspnet:JavaScript](#javascript)
+* [aspnet:javascript](#javascript)
* [aspnet:json](#json)
* [aspnet:jsonschema](#jsonschema)
* [aspnet:jsx](#jsx)
@@ -348,14 +348,14 @@ Produces `/IContact.cs`
[Return to top](#top)
-### JavaScript
+### javascript
Creates a new JavaScript file
Example:
```
-yo aspnet:JavaScript filename
+yo aspnet:javascript filename
```
Produces `filename.js`
View
@@ -19,7 +19,7 @@ Subgenerators:
yo aspnet:gulpfile [options] <name>
yo aspnet:htmlpage [options] <name>
yo aspnet:interface [options] <name>
- yo aspnet:JavaScript [options] <name>
+ yo aspnet:javascript [options] <name>
yo aspnet:json [options] <name>
yo aspnet:jsonschema [options] <name>
yo aspnet:Middleware [options] <name>
@@ -2,7 +2,7 @@ Description:
Creates a new JavaScript file
Example:
- yo aspnet:JavaScript filename
+ yo aspnet:javascript filename
This will create:
filename.js
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'JavaScript.js',
+ 'javascript.js',
'.js'
);
};
File renamed without changes.
@@ -457,16 +457,16 @@ describe('Subgenerators with named arguments tests', function() {
util.fileContentCheck(filename, 'Check file content', 'namespace emptyTest');
});
- describe('aspnet:JavaScript without extension', function() {
+ describe('aspnet:javascript without extension', function() {
var arg = 'file';
var filename = 'file.js';
- util.goCreateWithArgs('JavaScript', [arg]);
+ util.goCreateWithArgs('javascript', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:JavaScript with extension', function() {
+ describe('aspnet:javascript with extension', function() {
var filename = 'file.js';
- util.goCreateWithArgs('JavaScript', [filename]);
+ util.goCreateWithArgs('javascript', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
});

0 comments on commit 6c96de1

Please sign in to comment.