Skip to content
This repository was archived by the owner on Apr 5, 2021. It is now read-only.

Commit fab0038

Browse files
authored
Merge pull request #37 from A-Tokyo/development
documentation is now beautified
2 parents b55cf09 + 648fa1e commit fab0038

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

generators/component/src/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = function(AngularATGenerator) {
115115
};
116116
docsJSON.components[jsonQuery('components[path=' + pathAsArray.slice(0, -1).join('/') + ']', {data: docsJSON}).key].components.push(componentDocForeignKeyJSON);
117117
}
118-
jsonfile.writeFile(file, docsJSON, function(err) {}.bind(this));
118+
jsonfile.writeFile(file, docsJSON, {spaces: 2}, function(err) {}.bind(this));
119119
}.bind(this));
120120
}
121121
};

generators/directive/src/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = function(AngularATGenerator) {
9797
};
9898
docsJSON.components[jsonQuery('components[path=' + parentPath + ']', {data: docsJSON}).key].directives.push(directiveDocForeignKeyJSON);
9999
}
100-
jsonfile.writeFile(file, docsJSON, function(err) {}.bind(this));
100+
jsonfile.writeFile(file, docsJSON, {spaces: 2}, function(err) {}.bind(this));
101101
}.bind(this));
102102
}
103103

generators/page/src/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = function(AngularATGenerator) {
5959
"description": descriptionForDocs
6060
};
6161
docsJSON.pages.push(pageDocJSON);
62-
jsonfile.writeFile(file, docsJSON, function(err) {}.bind(this));
62+
jsonfile.writeFile(file, docsJSON, {spaces: 2}, function(err) {}.bind(this));
6363
}.bind(this));
6464
}
6565
};

generators/service/src/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = function(AngularATGenerator) {
8888
};
8989
docsJSON.components[jsonQuery('components[path=' + parentPath + ']', {data: docsJSON}).key].services.push(serviceDocForeignKeyJSON);
9090
}
91-
jsonfile.writeFile(file, docsJSON, function(err) {}.bind(this));
91+
jsonfile.writeFile(file, docsJSON, {spaces: 2}, function(err) {}.bind(this));
9292
}.bind(this));
9393
}
9494
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-at-angular",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Yeoman angular application generator thet uses Webpack, SASS, UI router, Karma and Jasmine for testing, and auto generated docs.",
55
"homepage": "http://a-tokyo.github.io/generator-at-angular/",
66
"author": {

0 commit comments

Comments
 (0)