webpack: dynamic js build on update

This commit is contained in:
2021-08-25 03:35:51 +09:00
parent e5b51dcd16
commit 5b2b01328a
107 changed files with 288 additions and 419 deletions
+9 -9
View File
@@ -51,10 +51,10 @@ class che_발령 extends Command\NationCommand{
$this->setCity();
$this->setNation();
$this->minConditionConstraints=[
ConstraintHelper::BeChief(),
ConstraintHelper::NotBeNeutral(),
ConstraintHelper::NotBeNeutral(),
ConstraintHelper::OccupiedCity(),
ConstraintHelper::SuppliedCity(),
];
@@ -63,7 +63,7 @@ class che_발령 extends Command\NationCommand{
protected function initWithArg()
{
$this->setDestCity($this->arg['destCityID']);
$destGeneral = General::createGeneralObjFromDB($this->arg['destGeneralID'], null, 1);
$this->setDestGeneral($destGeneral);
@@ -76,7 +76,7 @@ class che_발령 extends Command\NationCommand{
$this->fullConditionConstraints=[
ConstraintHelper::BeChief(),
ConstraintHelper::NotBeNeutral(),
ConstraintHelper::NotBeNeutral(),
ConstraintHelper::OccupiedCity(),
ConstraintHelper::SuppliedCity(),
ConstraintHelper::ExistsDestGeneral(),
@@ -95,11 +95,11 @@ class che_발령 extends Command\NationCommand{
$destGeneralName = $this->destGeneralObj->getName();
return "{$failReason} <Y>{$destGeneralName}</> {$commandName} 실패.";
}
public function getCost():array{
return [0, 0];
}
public function getPreReqTurn():int{
return 0;
}
@@ -134,7 +134,7 @@ class che_발령 extends Command\NationCommand{
$destGeneral = $this->destGeneralObj;
$destGeneralName = $destGeneral->getName();
$logger = $general->getLogger();
$destGeneral->setVar('city', $destCityID);
@@ -156,11 +156,11 @@ class che_발령 extends Command\NationCommand{
return true;
}
public function getJSFiles(): array
{
return [
'js/defaultSelectCityByMap.js'
'dist_js/defaultSelectCityByMap.js'
];
}