Browse Source

* deactivate unnecessary plugins script moved to local dir

+ bump script with yarn build example in theme
- remove unnecessary ignores
master
dimti 1 year ago
parent
commit
8d69b8c11d
  1. 7
      .gitignore-example
  2. 24
      quick/bump.sh.example
  3. 0
      quick/local/deactivate-unnecessary-plugins.sh.example
  4. 2
      quick/settings.sh.example
  5. 2
      wp-content/uploads/.gitignore

7
.gitignore-example

@ -41,9 +41,4 @@
/.htaccess
# Custom ignores
/*.txt
/serap*
/wp-content/gallery
/antibot8
/.tmb
/wp-config.bak.php

24
quick/bump.sh.example

@ -0,0 +1,24 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $SCRIPT_DIR/settings.sh || {
echo "no settings" && exit 1
}
VER=$1
if [[ -z "$VER" ]]; then
echo "Version not defined in first argument."
exit
fi
cd "${SCRIPT_DIR}/.."
git fetch && git checkout $VER
if [[ `echo $?` -ne 0 ]]; then
echo "Unable to checkout choose tag or branch or error in submodule update command."
exit 1
fi
cd "${SCRIPT_DIR}/../wp-content/themes/$THEME/" && yarn && yarn build

0
quick/deactivate-unnecessary-plugins-on-local-env.sh.example → quick/local/deactivate-unnecessary-plugins.sh.example

2
quick/settings.sh.example

@ -8,3 +8,5 @@ export TABLE_PREFIX="wp_"
export PROD_DOMAIN=wpstudio.ru
export LOCAL_DOMAIN=wpstudio.local.wpstudio.ru
export THEME=nicol

2
wp-content/uploads/.gitignore

@ -0,0 +1,2 @@
*
!.gitignore
Loading…
Cancel
Save