Permalink
Browse files

Rename JSX to lower case

  • Loading branch information...
1 parent 85c66d5 commit 6dac15d7409ed83262cf03ac10ec22ae67e3f7f5 @peterblazejewicz peterblazejewicz committed Jul 24, 2016
Showing with 9 additions and 9 deletions.
  1. +3 −3 README.md
  2. +1 −1 {JSX → jsx}/USAGE
  3. +1 −1 {JSX → jsx}/index.js
  4. 0 templates/{JSX.jsx → jsx.jsx}
  5. +4 −4 test/subgenerators.js
View
@@ -112,7 +112,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:JavaScript](#javascript)
* [aspnet:json](#json)
* [aspnet:jsonschema](#jsonschema)
-* [aspnet:JSX](#jsx)
+* [aspnet:jsx](#jsx)
* [aspnet:Middleware](#middleware)
* [aspnet:MvcController](#mvccontroller)
* [aspnet:MvcView](#mvcview)
@@ -390,14 +390,14 @@ Produces `filename.json`
[Return to top](#top)
-### JSX
+### jsx
Creates a new React JSX file
Example:
```
-yo aspnet:JSX filename
+yo aspnet:jsx filename
```
Produces `filename.jsx`
@@ -2,7 +2,7 @@ Description:
Creates a new React JSX file
Example:
- yo aspnet:JSX filename
+ yo aspnet:jsx filename
This will create:
filename.jsx
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'JSX.jsx',
+ 'jsx.jsx',
'.jsx'
);
};
File renamed without changes.
@@ -483,17 +483,17 @@ describe('Subgenerators with named arguments tests', function() {
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:JSX without extension', function() {
+ describe('aspnet:jsx without extension', function() {
var arg = 'file';
var filename = 'file.jsx';
- util.goCreateWithArgs('JSX', [arg]);
+ util.goCreateWithArgs('jsx', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:JSX with extension', function() {
+ describe('aspnet:jsx with extension', function() {
var arg = 'file';
var filename = 'file.jsx';
- util.goCreateWithArgs('JSX', [arg]);
+ util.goCreateWithArgs('jsx', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});

0 comments on commit 6dac15d

Please sign in to comment.