mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-29 13:11:10 +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
@@ -4,11 +4,11 @@ var EventEmitter = require('events').EventEmitter;
|
||||
var assign = require('object-assign');
|
||||
var <%= dispatcherName %> = require('../dispatcher/<%= dispatcherName %>');
|
||||
|
||||
var <%= classedName + 'Store' %> = assign({}, EventEmitter.prototype, {
|
||||
var <%= classedName %> = assign({}, EventEmitter.prototype, {
|
||||
|
||||
});
|
||||
|
||||
<%= classedName + 'Store' %>.dispatchToken = <%= dispatcherName %>.register(function(action) {
|
||||
<%= classedName %>.dispatchToken = <%= dispatcherName %>.register(function(action) {
|
||||
|
||||
switch(action.type) {
|
||||
default:
|
||||
@@ -16,5 +16,5 @@ var <%= classedName + 'Store' %> = assign({}, EventEmitter.prototype, {
|
||||
|
||||
});
|
||||
|
||||
<% if (es6) { %> export default <%= classedName + 'Store' %>; <% }
|
||||
else { %>module.exports = <%= classedName + 'Store' %>; <% } %>
|
||||
<% if (es6) { %> export default <%= classedName %>; <% }
|
||||
else { %>module.exports = <%= classedName %>; <% } %>
|
||||
Reference in new issue
Block a user