Changes the directory of sass cache and removes uncessary files from vendor dir when is building

This commit is contained in:
weryques 2018-05-23 11:17:14 -03:00
parent 45dd78f524
commit ebeecf2e3b
6 changed files with 2526 additions and 2524 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ cypress/screenshots
.vscode .vscode
src/pdf-viewer/pdfjs-dist src/pdf-viewer/pdfjs-dist
report.txt report.txt
.tmp

View File

@ -62,9 +62,13 @@ fi
echo "Updating files in $wp_plugin_dir" echo "Updating files in $wp_plugin_dir"
rm -rf $wp_plugin_dir rm -rf $wp_plugin_dir
mkdir $wp_plugin_dir mkdir $wp_plugin_dir
cp -R src/* $wp_plugin_dir/
rsync -axz --exclude='vendor/bin/phpc*' --exclude='vendor/squizlabs' --exclude='vendor/wimg' src/* $wp_plugin_dir/
rm -rf $wp_plugin_dir/scss rm -rf $wp_plugin_dir/scss
echo "Build complete!" echo "Build complete!"

View File

@ -10,10 +10,10 @@ command -v sass >/dev/null 2>&1 || {
echo "Compilando Sass..." echo "Compilando Sass..."
cd src/scss cd src/scss
sass -E 'UTF-8' style.scss:../style.css sass -E 'UTF-8' --cache-location ../../.tmp/sass-cache-1 style.scss:../style.css
cd ../admin/scss cd ../admin/scss
sass -E 'UTF-8' tainacan-admin.scss:../../assets/css/tainacan-admin.css sass -E 'UTF-8' --cache-location ../../../.tmp/sass-cache-2 tainacan-admin.scss:../../assets/css/tainacan-admin.css
echo "Compilação do Sass Concluído!" echo "Compilação do Sass Concluído!"

26
composer.lock generated
View File

@ -1,23 +1,23 @@
{ {
"_readme": [ "_readme": [
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "b5a7a81dd7eed9bc122ee36e472c6430", "content-hash": "b5a7a81dd7eed9bc122ee36e472c6430",
"packages": [ "packages": [
{ {
"name": "respect/validation", "name": "respect/validation",
"version": "1.1.x-dev", "version": "1.1.16",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Respect/Validation.git", "url": "https://github.com/Respect/Validation.git",
"reference": "22f1f14430155c21c1d6ba271a652f28c5057851" "reference": "020ea1ebb5dc626bb7f1958ff49f69172ff589cc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Respect/Validation/zipball/22f1f14430155c21c1d6ba271a652f28c5057851", "url": "https://api.github.com/repos/Respect/Validation/zipball/020ea1ebb5dc626bb7f1958ff49f69172ff589cc",
"reference": "22f1f14430155c21c1d6ba271a652f28c5057851", "reference": "020ea1ebb5dc626bb7f1958ff49f69172ff589cc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -26,7 +26,6 @@
}, },
"require-dev": { "require-dev": {
"egulias/email-validator": "~1.2", "egulias/email-validator": "~1.2",
"malkusch/bav": "~1.0",
"mikey179/vfsstream": "^1.5", "mikey179/vfsstream": "^1.5",
"phpunit/phpunit": "~4.0", "phpunit/phpunit": "~4.0",
"symfony/validator": "~2.6.9", "symfony/validator": "~2.6.9",
@ -37,7 +36,6 @@
"ext-bcmath": "Arbitrary Precision Mathematics", "ext-bcmath": "Arbitrary Precision Mathematics",
"ext-mbstring": "Multibyte String Functions", "ext-mbstring": "Multibyte String Functions",
"fabpot/php-cs-fixer": "Fix PSR2 and other coding style issues", "fabpot/php-cs-fixer": "Fix PSR2 and other coding style issues",
"malkusch/bav": "German bank account validation",
"symfony/validator": "Use Symfony validator through Respect\\Validation", "symfony/validator": "Use Symfony validator through Respect\\Validation",
"zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation" "zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation"
}, },
@ -69,20 +67,20 @@
"validation", "validation",
"validator" "validator"
], ],
"time": "2017-10-17T10:15:51+00:00" "time": "2018-05-19T14:26:44+00:00"
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "dev-master", "version": "v1.8.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" "reference": "3296adf6a6454a050679cde90f95350ad604b171"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/3296adf6a6454a050679cde90f95350ad604b171",
"reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", "reference": "3296adf6a6454a050679cde90f95350ad604b171",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -94,7 +92,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.6-dev" "dev-master": "1.8-dev"
} }
}, },
"autoload": { "autoload": {
@ -128,7 +126,7 @@
"portable", "portable",
"shim" "shim"
], ],
"time": "2017-10-11T12:05:26+00:00" "time": "2018-04-26T10:06:28+00:00"
} }
], ],
"packages-dev": [ "packages-dev": [

5010
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -198,7 +198,6 @@ class Entity {
* *
* *
* @param string $prop id of the property * @param string $prop id of the property
* @param mixed $value the value to be setted
* @return null|mixed Null on failure, the value that was set on success * @return null|mixed Null on failure, the value that was set on success
*/ */
public function get($prop) { public function get($prop) {