Skip to content

Commit

Permalink
rename composer vedor dir & kirki packages dir
Browse files Browse the repository at this point in the history
  • Loading branch information
contactjavas committed Feb 8, 2023
1 parent c173513 commit 0fcb8a1
Show file tree
Hide file tree
Showing 2,264 changed files with 233,467 additions and 239 deletions.
8 changes: 4 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ composer.json export-ignore
composer.lock export-ignore
Gruntfile.js export-ignore
package.json export-ignore
packages/**/installed.json export-ignore
packages/kirki-framework/**/.gitignore export-ignore
packages/kirki-framework/**/package.json export-ignore
packages/kirki-framework/**/Gruntfile.js export-ignore
kirki-composer/**/installed.json export-ignore
kirki-packages/**/.gitignore export-ignore
kirki-packages/**/package.json export-ignore
kirki-packages/**/Gruntfile.js export-ignore
*.map export-ignore
.sass-cache export-ignore
*.scss export-ignore
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ echo "Removing un-necessary files inside individual packages ..."

# Would you like to remove the CSS source files?
# If so, un-comment the following lines.
# rm -rf packages/**/src/*.scss
# rm -rf packages/**/src/scss/*.scss
# rm -rf kirki-packages/**/src/*.scss
# rm -rf kirki-packages/**/src/scss/*.scss

cd ../../

Expand Down
102 changes: 51 additions & 51 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"config": {
"vendor-dir": "vendor",
"vendor-dir": "kirki-composer",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
Expand All @@ -29,68 +29,68 @@
"autoload": {
"psr-4": {
"Kirki\\Compatibility\\": [
"packages/compatibility/src"
"kirki-packages/compatibility/src"
],
"Kirki\\Data\\": [
"packages/data-option/src"
"kirki-packages/data-option/src"
],
"Kirki\\Field\\": [
"packages/field/src/Field",
"packages/field-background/src",
"packages/field-dimensions/src",
"packages/field-fontawesome/src",
"packages/field-multicolor/src/Field",
"packages/field-multicolor/src",
"packages/field-typography/src/Field",
"packages/field-typography/src"
"kirki-packages/field/src/Field",
"kirki-packages/field-background/src",
"kirki-packages/field-dimensions/src",
"kirki-packages/field-fontawesome/src",
"kirki-packages/field-multicolor/src/Field",
"kirki-packages/field-multicolor/src",
"kirki-packages/field-typography/src/Field",
"kirki-packages/field-typography/src"
],
"Kirki\\Module\\": [
"packages/module-css/src",
"packages/module-editor-styles/src",
"packages/module-field-dependencies/src",
"packages/module-postmessage/src",
"packages/module-preset/src",
"packages/module-section-icons/src",
"packages/module-selective-refresh/src",
"packages/module-tooltips/src",
"packages/module-webfonts/src"
"kirki-packages/module-css/src",
"kirki-packages/module-editor-styles/src",
"kirki-packages/module-field-dependencies/src",
"kirki-packages/module-postmessage/src",
"kirki-packages/module-preset/src",
"kirki-packages/module-section-icons/src",
"kirki-packages/module-selective-refresh/src",
"kirki-packages/module-tooltips/src",
"kirki-packages/module-webfonts/src"
],
"Kirki\\Util\\": [
"packages/util/src"
"kirki-packages/util/src"
],
"Kirki\\Settings\\": [
"packages/settings/src"
"kirki-packages/settings/src"
],
"Kirki\\": [
"packages/control-base/src",
"packages/control-checkbox/src",
"packages/control-code/src",
"packages/control-color/src",
"packages/control-color-palette/src",
"packages/control-cropped-image/src",
"packages/control-custom/src",
"packages/control-dashicons/src",
"packages/control-date/src",
"packages/control-dimension/src",
"packages/control-editor/src",
"packages/control-generic/src",
"packages/control-image/src",
"packages/control-multicheck/src",
"packages/control-palette/src",
"packages/control-radio/src",
"packages/control-react-colorful/src",
"packages/control-react-select/src",
"packages/control-repeater/src",
"packages/control-select/src",
"packages/control-slider/src",
"packages/control-sortable/src",
"packages/control-upload/src",
"packages/field/src",
"packages/googlefonts/src",
"packages/l10n/src",
"packages/module-panels/src",
"packages/module-sections/src",
"packages/url-getter/src"
"kirki-packages/control-base/src",
"kirki-packages/control-checkbox/src",
"kirki-packages/control-code/src",
"kirki-packages/control-color/src",
"kirki-packages/control-color-palette/src",
"kirki-packages/control-cropped-image/src",
"kirki-packages/control-custom/src",
"kirki-packages/control-dashicons/src",
"kirki-packages/control-date/src",
"kirki-packages/control-dimension/src",
"kirki-packages/control-editor/src",
"kirki-packages/control-generic/src",
"kirki-packages/control-image/src",
"kirki-packages/control-multicheck/src",
"kirki-packages/control-palette/src",
"kirki-packages/control-radio/src",
"kirki-packages/control-react-colorful/src",
"kirki-packages/control-react-select/src",
"kirki-packages/control-repeater/src",
"kirki-packages/control-select/src",
"kirki-packages/control-slider/src",
"kirki-packages/control-sortable/src",
"kirki-packages/control-upload/src",
"kirki-packages/field/src",
"kirki-packages/googlefonts/src",
"kirki-packages/l10n/src",
"kirki-packages/module-panels/src",
"kirki-packages/module-sections/src",
"kirki-packages/url-getter/src"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php → kirki-composer/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitc56aa391ac498061f8d648878e0e6144::getLoader();
return ComposerAutoloaderInit734b74506bf23405b8270b65bdba2dd6::getLoader();
120 changes: 120 additions & 0 deletions kirki-composer/bin/phpcbf
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
#!/usr/bin/env php
<?php

/**
* Proxy PHP file generated by Composer
*
* This file includes the referenced bin path (../squizlabs/php_codesniffer/bin/phpcbf)
* using a stream wrapper to prevent the shebang from being output on PHP<8
*
* @generated
*/

namespace Composer;

$GLOBALS['_composer_bin_dir'] = __DIR__;
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php';

if (PHP_VERSION_ID < 80000) {
if (!class_exists('Composer\BinProxyWrapper')) {
/**
* @internal
*/
final class BinProxyWrapper
{
private $handle;
private $position;
private $realpath;

public function stream_open($path, $mode, $options, &$opened_path)
{
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
$opened_path = substr($path, 17);
$this->realpath = realpath($opened_path) ?: $opened_path;
$opened_path = $this->realpath;
$this->handle = fopen($this->realpath, $mode);
$this->position = 0;

return (bool) $this->handle;
}

public function stream_read($count)
{
$data = fread($this->handle, $count);

if ($this->position === 0) {
$data = preg_replace('{^#!.*\r?\n}', '', $data);
}

$this->position += strlen($data);

return $data;
}

public function stream_cast($castAs)
{
return $this->handle;
}

public function stream_close()
{
fclose($this->handle);
}

public function stream_lock($operation)
{
return $operation ? flock($this->handle, $operation) : true;
}

public function stream_seek($offset, $whence)
{
if (0 === fseek($this->handle, $offset, $whence)) {
$this->position = ftell($this->handle);
return true;
}

return false;
}

public function stream_tell()
{
return $this->position;
}

public function stream_eof()
{
return feof($this->handle);
}

public function stream_stat()
{
return array();
}

public function stream_set_option($option, $arg1, $arg2)
{
return true;
}

public function url_stat($path, $flags)
{
$path = substr($path, 17);
if (file_exists($path)) {
return stat($path);
}

return false;
}
}
}

if (
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
) {
include("phpvfscomposer://" . __DIR__ . '/..'.'/squizlabs/php_codesniffer/bin/phpcbf');
exit(0);
}
}

include __DIR__ . '/..'.'/squizlabs/php_codesniffer/bin/phpcbf';
5 changes: 5 additions & 0 deletions kirki-composer/bin/phpcbf.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/phpcbf
SET COMPOSER_RUNTIME_BIN_DIR=%~dp0
php "%BIN_TARGET%" %*
Loading

0 comments on commit 0fcb8a1

Please sign in to comment.