Permalink
Browse files

Rename JSON to lower case

  • Loading branch information...
1 parent 1c66328 commit ddf5b8ea9e9715dc9f1cd4cfb08dde1c0183f92a @peterblazejewicz peterblazejewicz committed Jul 24, 2016
Showing with 13 additions and 13 deletions.
  1. +3 −3 README.md
  2. +1 −1 app/USAGE
  3. +1 −1 {JSON → json}/USAGE
  4. +1 −1 {JSON → json}/index.js
  5. 0 templates/{JSON.json → json.json}
  6. +7 −7 test/subgenerators.js
View
@@ -110,7 +110,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:htmlpage](#htmlpage)
* [aspnet:interface](#interface)
* [aspnet:JavaScript](#javascript)
-* [aspnet:JSON](#json)
+* [aspnet:json](#json)
* [aspnet:JSONSchema](#jsonschema)
* [aspnet:JSX](#jsx)
* [aspnet:Middleware](#middleware)
@@ -362,14 +362,14 @@ Produces `filename.js`
[Return to top](#top)
-### JSON
+### json
Creates a new JSON file
Example:
```
-yo aspnet:JSON filename
+yo aspnet:json filename
```
Produces `filename.json`
View
@@ -20,7 +20,7 @@ Subgenerators:
yo aspnet:htmlpage [options] <name>
yo aspnet:interface [options] <name>
yo aspnet:JavaScript [options] <name>
- yo aspnet:JSON [options] <name>
+ yo aspnet:json [options] <name>
yo aspnet:JSONSchema [options] <name>
yo aspnet:Middleware [options] <name>
yo aspnet:MvcController [options] <name>
@@ -2,7 +2,7 @@ Description:
Creates a new JSON file
Example:
- yo aspnet:JSON filename
+ yo aspnet:json filename
This will create:
filename.json
@@ -10,7 +10,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
this.generateTemplateFile(
- 'JSON.json',
+ 'json.json',
'.json'
);
};
File renamed without changes.
View
@@ -470,16 +470,16 @@ describe('Subgenerators with named arguments tests', function() {
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:JSON without extension', function() {
+ describe('aspnet:json without extension', function() {
var arg = 'file';
var filename = 'file.json';
- util.goCreateWithArgs('JSON', [arg]);
+ util.goCreateWithArgs('json', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:JSON with extension', function() {
+ describe('aspnet:json with extension', function() {
var filename = 'file.json';
- util.goCreateWithArgs('JSON', [filename]);
+ util.goCreateWithArgs('json', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
});
@@ -681,19 +681,19 @@ describe('Subgenerators with named arguments tests', function() {
describe('aspnet:TextFile creates config.development.json from config.development', function() {
var arg = 'config.development';
var filename = 'config.development.json';
- util.goCreateWithArgs('JSON', [arg]);
+ util.goCreateWithArgs('json', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
describe('aspnet:TextFile creates config.staging.json from config.staging', function() {
var arg = 'config.staging';
var filename = 'config.staging.json';
- util.goCreateWithArgs('JSON', [arg]);
+ util.goCreateWithArgs('json', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
describe('aspnet:TextFile creates config.staging.json from config.staging.json', function() {
var arg = 'config.staging.json';
var filename = 'config.staging.json';
- util.goCreateWithArgs('JSON', [arg]);
+ util.goCreateWithArgs('json', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
});

0 comments on commit ddf5b8e

Please sign in to comment.