Skip to content

Commit

Permalink
Merge pull request #388 from magento-performance/MAGETWO-57895
Browse files Browse the repository at this point in the history
Fixed issue:
 - MAGETWO-57895 [Backport] Port Deploy Asset optimizations to 2.0.x
  • Loading branch information
Oleksii Korshenko authored Sep 14, 2016
2 parents 5c2f645 + f743880 commit 37c230b
Show file tree
Hide file tree
Showing 47 changed files with 3,268 additions and 449 deletions.
364 changes: 339 additions & 25 deletions app/code/Magento/Deploy/Console/Command/DeployStaticContentCommand.php

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Deploy\Console\Command;

interface DeployStaticOptionsInterface
{
/**
* Key for dry-run option
*/
const DRY_RUN = 'dry-run';

/**
* Key for languages parameter
*/
const LANGUAGE = 'language';

/**
* Key for exclude languages parameter
*/
const EXCLUDE_LANGUAGE = 'exclude-language';

/**
* Key for javascript option
*/
const NO_JAVASCRIPT = 'no-javascript';

/**
* Key for css option
*/
const NO_CSS = 'no-css';

/**
* Key for less option
*/
const NO_LESS = 'no-less';

/**
* Key for images option
*/
const NO_IMAGES = 'no-images';

/**
* Key for fonts option
*/
const NO_FONTS = 'no-fonts';

/**
* Key for misc option
*/
const NO_MISC = 'no-misc';

/**
* Key for html option
*/
const NO_HTML = 'no-html';

/**
* Key for html option
*/
const NO_HTML_MINIFY = 'no-html-minify';

/**
* Key for theme option
*/
const THEME = 'theme';

/**
* Key for exclude theme option
*/
const EXCLUDE_THEME = 'exclude-theme';

/**
* Key for area option
*/
const AREA = 'area';

/**
* Key for exclude area option
*/
const EXCLUDE_AREA = 'exclude-area';

/**
* Jey for jobs option
*/
const JOBS_AMOUNT = 'jobs';

/**
* Symlink locale if it not customized
*/
const SYMLINK_LOCALE = 'symlink-locale';
}
23 changes: 23 additions & 0 deletions app/code/Magento/Deploy/Model/Deploy/DeployInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Deploy\Model\Deploy;

interface DeployInterface
{
/**
* Base locale option without customizations
*/
const DEPLOY_BASE_LOCALE = 'deploy_base_locale';

/**
* @param string $area
* @param string $themePath
* @param string $locale
* @return int
*/
public function deploy($area, $themePath, $locale);
}
Loading

0 comments on commit 37c230b

Please sign in to comment.