mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-30 13:20:15 +08:00
Switch the generation of everything so we generate tests and they can actually pass.
This commit is contained in:
1 parent
3cf4d739e3
commit
53b262ae3c
11 files changed
+70
-26
No files matched your search
+2
-10
@@ -88,16 +88,8 @@ Generator.prototype.htmlTemplate = function (src, dest) {
|
||||
]);
|
||||
};
|
||||
|
||||
Generator.prototype.generateSourceAndTest = function (appTemplate, testTemplate, stylesTemplate, targetDirectory) {
|
||||
Generator.prototype.generateSourceAndTest = function (appTemplate, testTemplate, stylesTemplate, targetDirectory, includeStyles) {
|
||||
this.appTemplate(appTemplate, path.join(targetDirectory, this._.capitalizeFile(this.name)));
|
||||
this.testTemplate(testTemplate, path.join(targetDirectory, this._.capitalizeFile(this.name)));
|
||||
this.stylesTemplate(stylesTemplate, path.join(this._.capitalizeFile(this.name)));
|
||||
if(includeStyles) this.stylesTemplate(stylesTemplate, path.join(this._.capitalizeFile(this.name)));
|
||||
};
|
||||
|
||||
Generator.prototype.generateAction = function() {
|
||||
this.appTemplate('Action', path.join('actions', this._.capitalizeFile(this.name) + 'ActionCreators'));
|
||||
}
|
||||
|
||||
Generator.prototype.generateStore = function() {
|
||||
this.appTemplate('Store', path.join('stores', this._.capitalizeFile(this.name) + 'Store'));
|
||||
}
|
||||
Reference in new issue
Block a user