@@ -28,15 +28,15 @@ module.exports = {
28
28
} ,
29
29
{
30
30
type :'confirm' ,
31
- name :'wantI18n ' ,
31
+ name :'wantSchema ' ,
32
32
default :true ,
33
- message :'Do you wanti18n messages (i.e. will this container use text) ?' ,
33
+ message :'Do you wantGraphQL schema ?' ,
34
34
} ,
35
35
{
36
36
type :'confirm' ,
37
- name :'wantLoadable ' ,
38
- default :false ,
39
- message :'Do you wantto load the containerasynchronously ?' ,
37
+ name :'wantI18n ' ,
38
+ default :true ,
39
+ message :'Do you wanti18n messages (i.e. will this containeruse text) ?' ,
40
40
} ,
41
41
] ,
42
42
actions :data => {
@@ -56,8 +56,8 @@ module.exports = {
56
56
} ,
57
57
{
58
58
type :'add' ,
59
- path :'../../../containers/{{properCase name}}/tests/index.test .js' ,
60
- templateFile :'./container/test .js.hbs' ,
59
+ path :'../../../containers/{{properCase name}}/store .js' ,
60
+ templateFile :'./container/store .js.hbs' ,
61
61
abortOnFail :true ,
62
62
} ,
63
63
{
@@ -66,24 +66,35 @@ module.exports = {
66
66
templateFile :'./container/styles.js.hbs' ,
67
67
abortOnFail :true ,
68
68
} ,
69
+ {
70
+ type :'add' ,
71
+ path :'../../../containers/{{properCase name}}/tests/index.test.js' ,
72
+ templateFile :'./container/test.js.hbs' ,
73
+ abortOnFail :true ,
74
+ } ,
75
+ {
76
+ type :'add' ,
77
+ path :'../../../containers/{{properCase name}}/tests/store.test.js' ,
78
+ templateFile :'./container/store.test.js.hbs' ,
79
+ abortOnFail :true ,
80
+ } ,
69
81
]
70
82
71
- // If they want a i18n messages file
72
- if ( data . wantI18n ) {
83
+ if ( data . wantSchema ) {
73
84
actions . push ( {
74
85
type :'add' ,
75
- path :'../../../containers/{{properCase name}}/lang .js' ,
76
- templateFile :'./container/lang .js.hbs' ,
86
+ path :'../../../containers/{{properCase name}}/schema .js' ,
87
+ templateFile :'./container/schema .js.hbs' ,
77
88
abortOnFail :true ,
78
89
} )
79
90
}
80
91
81
- // If wantLoadable.js to load the component asynchronously
82
- if ( data . wantLoadable ) {
92
+ // Ifthey wanta i18n messages file
93
+ if ( data . wantI18n ) {
83
94
actions . push ( {
84
95
type :'add' ,
85
- path :'../../../containers/{{properCase name}}/Loadable .js' ,
86
- templateFile :'./container/loadable .js.hbs' ,
96
+ path :'../../../containers/{{properCase name}}/lang .js' ,
97
+ templateFile :'./container/lang .js.hbs' ,
87
98
abortOnFail :true ,
88
99
} )
89
100
}