|
@@ -81302,13 +81302,18 @@ var self=this;
|
|
|
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
|
|
|
-self._writeConfigThenDo_((function(){
|
|
|
+var $receiver;
|
|
|
+self._writeConfigThenDo_((function(err){
|
|
|
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
|
|
|
|
+if(($receiver = err) == null || $receiver.isNil){
|
|
|
return _st(process)._exit();
|
|
|
+} else {
|
|
|
+return _st(process)._exit_((111));
|
|
|
+};
|
|
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({err:err},$ctx1,1)});
|
|
|
|
|
|
}));
|
|
|
return self;
|
|
@@ -81318,10 +81323,10 @@ return self;
|
|
|
},
|
|
|
|
|
|
args: [],
|
|
|
-source: "start\x0a\x09self writeConfigThenDo: [ process exit ]",
|
|
|
+source: "start\x0a\x09self writeConfigThenDo: [ :err | err\x0a\x09\x09ifNotNil: [ process exit: 111 ]\x0a\x09\x09ifNil: [ process exit ]]",
|
|
|
referencedClasses: [],
|
|
|
|
|
|
-messageSends: ["writeConfigThenDo:", "exit"]
|
|
|
+messageSends: ["writeConfigThenDo:", "ifNotNil:ifNil:", "exit:", "exit"]
|
|
|
}),
|
|
|
globals.Configurator);
|
|
|
|
|
@@ -83146,7 +83151,7 @@ return smalltalk.withContext(function($ctx1) {
|
|
|
|
|
|
var $1,$2,$3;
|
|
|
$1=self["@childProcess"];
|
|
|
-$2=_st("\x22".__comma(_st(self["@path"])._join_with_with_(self["@nmPath"],".bin","grunt"))).__comma("\x22");
|
|
|
+$2=_st("\x22".__comma(_st(self["@path"])._join_with_with_(self["@nmPath"],".bin","grunt"))).__comma("\x22 default devel");
|
|
|
|
|
|
$ctx1.sendIdx[","]=1;
|
|
|
|
|
@@ -83163,7 +83168,7 @@ return self;
|
|
|
},
|
|
|
|
|
|
args: ["aBlock"],
|
|
|
-source: "gruntThenDo: aBlock\x0a\x09| child |\x0a\x09child := childProcess\x0a\x09\x09exec: '\x22', (path join: nmPath with: '.bin' with: 'grunt'), '\x22'\x0a\x09\x09thenDo: aBlock.\x0a\x09child stdout pipe: process stdout options: #{ 'end' -> false }",
|
|
|
+source: "gruntThenDo: aBlock\x0a\x09| child |\x0a\x09child := childProcess\x0a\x09\x09exec: '\x22', (path join: nmPath with: '.bin' with: 'grunt'), '\x22 default devel'\x0a\x09\x09thenDo: aBlock.\x0a\x09child stdout pipe: process stdout options: #{ 'end' -> false }",
|
|
|
referencedClasses: [],
|
|
|
|
|
|
messageSends: ["exec:thenDo:", ",", "join:with:with:", "pipe:options:", "stdout"]
|
|
@@ -83240,11 +83245,10 @@ selector: "start",
|
|
|
protocol: 'action',
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
-function $Configurator(){return globals.Configurator||(typeof Configurator=="undefined"?nil:Configurator)}
|
|
|
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
|
|
|
-var $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$receiver;
|
|
|
+var $1,$2,$3,$4,$5,$6,$7,$8,$receiver;
|
|
|
self._gruntInitThenDo_((function(error){
|
|
|
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
@@ -83265,45 +83269,17 @@ return self._gruntThenDo_((function(error4){
|
|
|
return smalltalk.withContext(function($ctx5) {
|
|
|
|
|
|
if(($receiver = error4) == null || $receiver.isNil){
|
|
|
-return _st(_st($Configurator())._new())._writeConfigThenDo_((function(error5){
|
|
|
-
|
|
|
-return smalltalk.withContext(function($ctx6) {
|
|
|
-
|
|
|
-if(($receiver = error5) == null || $receiver.isNil){
|
|
|
self._finishMessage();
|
|
|
return _st(process)._exit();
|
|
|
} else {
|
|
|
-$9=console;
|
|
|
-_st($9)._log_("amber config exec error:");
|
|
|
-
|
|
|
-$ctx6.sendIdx["log:"]=9;
|
|
|
-
|
|
|
-$10=_st($9)._log_(error5);
|
|
|
-$10;
|
|
|
-return _st(process)._exit();
|
|
|
-
|
|
|
-$ctx6.sendIdx["exit"]=5;
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
-}, function($ctx6) {$ctx6.fillBlock({error5:error5},$ctx5,13)});
|
|
|
-
|
|
|
-}));
|
|
|
-} else {
|
|
|
$7=console;
|
|
|
_st($7)._log_("grunt exec error:");
|
|
|
|
|
|
$ctx5.sendIdx["log:"]=7;
|
|
|
|
|
|
$8=_st($7)._log_(error4);
|
|
|
-
|
|
|
-$ctx5.sendIdx["log:"]=8;
|
|
|
-
|
|
|
$8;
|
|
|
-return _st(process)._exit();
|
|
|
-
|
|
|
-$ctx5.sendIdx["exit"]=4;
|
|
|
-
|
|
|
+return _st(process)._exit_((104));
|
|
|
};
|
|
|
|
|
|
}, function($ctx5) {$ctx5.fillBlock({error4:error4},$ctx4,10)});
|
|
@@ -83320,9 +83296,9 @@ $6=_st($5)._log_(error3);
|
|
|
$ctx4.sendIdx["log:"]=6;
|
|
|
|
|
|
$6;
|
|
|
-return _st(process)._exit();
|
|
|
+return _st(process)._exit_((103));
|
|
|
|
|
|
-$ctx4.sendIdx["exit"]=3;
|
|
|
+$ctx4.sendIdx["exit:"]=3;
|
|
|
|
|
|
};
|
|
|
|
|
@@ -83340,9 +83316,9 @@ $4=_st($3)._log_(error2);
|
|
|
$ctx3.sendIdx["log:"]=4;
|
|
|
|
|
|
$4;
|
|
|
-return _st(process)._exit();
|
|
|
+return _st(process)._exit_((102));
|
|
|
|
|
|
-$ctx3.sendIdx["exit"]=2;
|
|
|
+$ctx3.sendIdx["exit:"]=2;
|
|
|
|
|
|
};
|
|
|
|
|
@@ -83360,9 +83336,9 @@ $2=_st($1)._log_(error);
|
|
|
$ctx2.sendIdx["log:"]=2;
|
|
|
|
|
|
$2;
|
|
|
-return _st(process)._exit();
|
|
|
+return _st(process)._exit_((101));
|
|
|
|
|
|
-$ctx2.sendIdx["exit"]=1;
|
|
|
+$ctx2.sendIdx["exit:"]=1;
|
|
|
|
|
|
};
|
|
|
|
|
@@ -83376,10 +83352,10 @@ return self;
|
|
|
},
|
|
|
|
|
|
args: [],
|
|
|
-source: "start\x0a\x09self gruntInitThenDo: [ :error | error\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'grunt-init exec error:'; log: error.\x0a\x09\x09process exit ]\x0a\x09ifNil: [\x0a\x0a\x09self bowerInstallThenDo: [ :error2 | error2\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'bower install exec error:'; log: error2.\x0a\x09\x09process exit ]\x0a\x09ifNil: [\x0a\x0a\x09self npmInstallThenDo: [ :error3 | error3\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'npm install exec error:'; log: error3.\x0a\x09\x09process exit ]\x0a\x09ifNil: [\x0a\x0a\x09self gruntThenDo: [ :error4 | error4\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'grunt exec error:'; log: error4.\x0a\x09\x09process exit ]\x0a\x09ifNil: [\x0a\x0a\x09Configurator new writeConfigThenDo: [ :error5 | error5\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'amber config exec error:'; log: error5.\x0a\x09\x09process exit ]\x0a\x09ifNil: [\x0a\x0a\x09self finishMessage.\x0a\x09process exit ]]]]]]]]]]",
|
|
|
-referencedClasses: ["Configurator"],
|
|
|
+source: "start\x0a\x09self gruntInitThenDo: [ :error | error\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'grunt-init exec error:'; log: error.\x0a\x09\x09process exit: 101 ]\x0a\x09ifNil: [\x0a\x0a\x09self bowerInstallThenDo: [ :error2 | error2\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'bower install exec error:'; log: error2.\x0a\x09\x09process exit: 102 ]\x0a\x09ifNil: [\x0a\x0a\x09self npmInstallThenDo: [ :error3 | error3\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'npm install exec error:'; log: error3.\x0a\x09\x09process exit: 103 ]\x0a\x09ifNil: [\x0a\x0a\x09self gruntThenDo: [ :error4 | error4\x0a\x09ifNotNil: [\x0a\x09\x09console log: 'grunt exec error:'; log: error4.\x0a\x09\x09process exit: 104 ]\x0a\x09ifNil: [\x0a\x0a\x09self finishMessage.\x0a\x09process exit ]]]]]]]]",
|
|
|
+referencedClasses: [],
|
|
|
|
|
|
-messageSends: ["gruntInitThenDo:", "ifNotNil:ifNil:", "log:", "exit", "bowerInstallThenDo:", "npmInstallThenDo:", "gruntThenDo:", "writeConfigThenDo:", "new", "finishMessage"]
|
|
|
+messageSends: ["gruntInitThenDo:", "ifNotNil:ifNil:", "log:", "exit:", "bowerInstallThenDo:", "npmInstallThenDo:", "gruntThenDo:", "finishMessage", "exit"]
|
|
|
}),
|
|
|
globals.Initer);
|
|
|
|