/** * @param Package $p * @param ResourceCollection $collection * @return array */ public function getCommand(Package $p, ResourceCollection $collection) { $resources = $collection->get($this->filter); $data = ['action' => $this->getActionType(), 'source' => $collection->get($this->filter)]; if ($this->getActionType() == GulpActionType::CONCATENATE) { $data['target'] = $this->generateSingleFileName($p, $resources); } return $data; }
/** * @param Package $p * @param ResourceCollection $collection * @return array */ public function getCommand(Package $p, ResourceCollection $collection) { $resources = $collection->get(self::FILTER); $filePath = $this->getPath($p); return ['action' => $this->getActionType(), 'source' => $resources, 'target' => $filePath]; }