Remove old Symfony server files
This commit is contained in:
parent
b1537dc0a8
commit
27cc670152
|
@ -1 +0,0 @@
|
|||
7.4
|
55
Makefile
55
Makefile
|
@ -1,55 +0,0 @@
|
|||
SHELL=/bin/bash -e -o pipefail
|
||||
|
||||
THEME_PATH:=web/themes/custom/opdavies
|
||||
|
||||
.PHONY: *
|
||||
|
||||
clean: theme-clean
|
||||
|
||||
phpcs:
|
||||
@vendor/bin/phpcs -s --warning-severity=6
|
||||
|
||||
phpstan:
|
||||
vendor/bin/phpstan analyze
|
||||
|
||||
phpunit:
|
||||
vendor/bin/phpunit web/modules/custom
|
||||
|
||||
pull-from-prod:
|
||||
# Download and import the database.
|
||||
ansible-playbook tools/ansible/download-database.yml
|
||||
zcat < dump.sql.gz | bin/drush.sh sql-cli
|
||||
rm dump.sql.gz
|
||||
|
||||
# Post import steps.
|
||||
bin/drush.sh sql-sanitize -y --sanitize-password=password
|
||||
bin/drush.sh updatedb -y
|
||||
bin/drush.sh cache-rebuild
|
||||
bin/drush.sh user-login 1
|
||||
|
||||
start:
|
||||
docker-compose up -d
|
||||
symfony server:start -d
|
||||
|
||||
stop:
|
||||
symfony server:stop
|
||||
docker-compose down
|
||||
|
||||
test: phpstan phpunit phpcs
|
||||
|
||||
theme-build: theme-install-dependencies
|
||||
cd ${THEME_PATH} && npm run dev
|
||||
|
||||
theme-build-prod: theme-install-dependencies
|
||||
bin/drush.sh opdavies:export-body-values-for-theme-purging
|
||||
cd ${THEME_PATH} && npm run prod
|
||||
|
||||
theme-clean: ${THEME_PATH}/build ${THEME_PATH}/node_modules
|
||||
rm -fr ${THEME_PATH}/build
|
||||
rm -fr ${THEME_PATH}/node_modules
|
||||
|
||||
theme-install-dependencies: ${THEME_PATH}/package.json ${THEME_PATH}/package-lock.json
|
||||
cd ${THEME_PATH} && npm install
|
||||
|
||||
theme-watch: theme-build
|
||||
cd ${THEME_PATH} && npm run watch
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
theme_path="web/themes/custom/opdavies"
|
||||
|
||||
function run_command {
|
||||
title=$1
|
||||
command=$2
|
||||
|
||||
echo -e "\e[32m$title\e[0m"
|
||||
echo -e "\e[33mExecuting: \e[0m$command"
|
||||
$command
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
symfony composer "$@"
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
cd web
|
||||
|
||||
symfony php ../vendor/bin/drush config-export -y
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd web
|
||||
|
||||
symfony php ../vendor/bin/drush "$@"
|
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
. $(dirname "$0")/common.sh
|
||||
|
||||
run_command "Install Composer dependencies" "symfony composer install"
|
||||
|
||||
pushd $theme_path
|
||||
run_command "Install theme dependencies" "symfony run npm install"
|
||||
popd
|
||||
|
||||
pushd web
|
||||
run_command "Install Drupal" "symfony php ../vendor/bin/drush site-install -y --existing-config"
|
||||
popd
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
./bin/drush.sh site:install -y \
|
||||
--existing-config \
|
||||
--account-pass=admin123
|
|
@ -1,21 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
symfony php vendor/bin/phpcs -n \
|
||||
--standard="Drupal,DrupalPractice" \
|
||||
--extensions="php,module,inc,install,test,profile,theme" \
|
||||
--ignore=*/tests/* \
|
||||
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.FunctionComment" \
|
||||
web/modules/custom
|
||||
|
||||
symfony php vendor/bin/phpcs -n \
|
||||
--standard="Drupal,DrupalPractice" \
|
||||
--extensions="php,module,inc,install,test,profile,theme" \
|
||||
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.DocComment,Drupal.Commenting.FunctionComment,Drupal.NamingConventions.ValidFunctionName" \
|
||||
web/modules/custom/**/tests
|
||||
|
||||
vendor/bin/phpstan analyze
|
||||
|
||||
symfony php vendor/bin/phpunit \
|
||||
"$@"
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
. $(dirname "$0")/common.sh
|
||||
|
||||
cd $theme_path
|
||||
|
||||
npm run development
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
. $(dirname "$0")/common.sh
|
||||
|
||||
cd $theme_path
|
||||
|
||||
npm run prod
|
|
@ -1,13 +0,0 @@
|
|||
version: '2.1'
|
||||
|
||||
services:
|
||||
database:
|
||||
image: mysql:5.7
|
||||
ports: [3306]
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: secret
|
||||
volumes:
|
||||
- mysql-data:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
mysql-data:
|
Loading…
Reference in a new issue