File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ module.exports = Command.extend({
130
130
131
131
logger . info ( 'ember-cordova: Building app' ) ;
132
132
133
- return this . startValidators ( project , options )
134
- . then ( hook . prepare ( 'beforeBuild' , options ) )
133
+ return hook . run ( 'beforeBuild' , options )
134
+ . then ( this . startValidators . bind ( this , project , options ) )
135
135
. then ( function ( ) {
136
136
if ( options . skipEmberBuild !== true ) {
137
137
return emberBuild . run ( ) ;
Original file line number Diff line number Diff line change @@ -108,10 +108,10 @@ describe('Build Command', function() {
108
108
. then ( function ( ) {
109
109
//h-t ember-electron for the pattern
110
110
expect ( tasks ) . to . deep . equal ( [
111
+ 'hook beforeBuild' ,
111
112
'validate-root-url' ,
112
113
'validate-allow-navigation' ,
113
114
'validate-platform' ,
114
- 'hook beforeBuild' ,
115
115
'ember-build' ,
116
116
'cordova-build' ,
117
117
'hook afterBuild' ,
@@ -127,10 +127,10 @@ describe('Build Command', function() {
127
127
. then ( function ( ) {
128
128
//h-t ember-electron for the pattern
129
129
expect ( tasks ) . to . deep . equal ( [
130
+ 'hook beforeBuild' ,
130
131
'validate-root-url' ,
131
132
'validate-allow-navigation' ,
132
133
'validate-platform' ,
133
- 'hook beforeBuild' ,
134
134
'cordova-build' ,
135
135
'hook afterBuild' ,
136
136
'lint-index'
@@ -145,9 +145,9 @@ describe('Build Command', function() {
145
145
. then ( function ( ) {
146
146
//h-t ember-electron for the pattern
147
147
expect ( tasks ) . to . deep . equal ( [
148
+ 'hook beforeBuild' ,
148
149
'validate-root-url' ,
149
150
'validate-allow-navigation' ,
150
- 'hook beforeBuild' ,
151
151
'ember-build' ,
152
152
'hook afterBuild' ,
153
153
'lint-index'
You can’t perform that action at this time.
0 commit comments