-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from magento-performance/MAGETWO-57895
Fixed issue: - MAGETWO-57895 [Backport] Port Deploy Asset optimizations to 2.0.x
- Loading branch information
Showing
47 changed files
with
3,268 additions
and
449 deletions.
There are no files selected for viewing
364 changes: 339 additions & 25 deletions
364
app/code/Magento/Deploy/Console/Command/DeployStaticContentCommand.php
Large diffs are not rendered by default.
Oops, something went wrong.
95 changes: 95 additions & 0 deletions
95
app/code/Magento/Deploy/Console/Command/DeployStaticOptionsInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.