public function indexAction()
 {
     $options = array('types' => $this->_getParam('type'), 'output' => true, 'refresh' => true);
     if (is_string($this->_getParam('exclude-type'))) {
         $options['excludeTypes'] = $this->_getParam('exclude-type');
     }
     Kwf_Util_Build::getInstance()->build($options);
     exit;
 }
 public function indexAction()
 {
     if (file_exists(VENDOR_PATH . '/koala-framework/koala-framework/node_modules')) {
         throw new Kwf_Exception('Please delete node_modules folder from koala-framework/koala-framework. All node packages has moved into ./node_modules');
     }
     $options = array('types' => $this->_getParam('type'), 'output' => true, 'refresh' => true);
     if (is_string($this->_getParam('exclude-type'))) {
         $options['excludeTypes'] = $this->_getParam('exclude-type');
     }
     if (!Kwf_Util_Build::getInstance()->build($options)) {
         exit(1);
     } else {
         exit;
     }
 }