Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

COMO CRIAR O TEU STARTUP PROJECT E SETUP DO TEU AMBIENTE DE DESENVOLVIMENTO DRUPAL

10 views

Published on

Esta apresentação tem como base o template composer recommended project, Lando e PHPStorm para te conduzir na aventura de criares um ambiente de desenvolvimento para ti e para a tua equipa.

Francisco Ribeiro

Published in: Software
  • Be the first to comment

  • Be the first to like this

COMO CRIAR O TEU STARTUP PROJECT E SETUP DO TEU AMBIENTE DE DESENVOLVIMENTO DRUPAL

  1. 1. Supercharge Your Dev environment November 2020 Francisco Ribeiro
  2. 2. Isobar map 2
  3. 3. Global clients 3
  4. 4. 4 My journey
  5. 5. 5 Where I was Windows Notepad++ FTP Xamp Css Internet Explorer Drupal 4.7
  6. 6. 6 Where I have been... Mac / Linux Coda / Atom / Visual Studio Code MAMP / Acquia Dev Desktop / Drupal VM LESS Grunt Vue.js / Angular drush patch drush make drush rsync git pull
  7. 7. 7 Where I am
  8. 8. 8 LAMP LEMP or whatever stack This is a label
  9. 9. 9 The Contenders
  10. 10. 10 Lando lando init lando start You are up and running You have mysql, apache, php, drush and composer name: drupalday recipe: drupal9 config: webroot: web
  11. 11. 11 Lando Apache Compose dotnet Elasticsearch Go MailHog MariaDB MySQL MSSQL nginx Node PHP PhpMyAdmin Postgres Python Redis Ruby Solr Tomcat Varnish
  12. 12. 12 name: drupalday recipe: drupal8 services: database: type: mariadb:10.1 node: type: node:10 --- place our service here------ appserver: overrides: environment: PHP_IDE_CONFIG: "serverName=localhost" tooling: node: service: node npm: service: node gulp: service: node config: php: 7.2 via: apache:2.4 webroot: web database: mariadb drush: 9 xdebug: false proxy: mailhog: - mail.drupalday.lndo.site pma: - pma.drupalday.lndo.site searchservic type: ela portforwa mem: 1025 pma: type: phpmyadmin hosts: - database Lando
  13. 13. 13 Drupal startup project
  14. 14. 14 Where I was drupal composer project drush, drupal console, composer-patches .gitignore drupal-composer/drupal-project
  15. 15. 15 Where I have been … Acquia Ligthning project Install npm and bower front end libraries with composer Lots of stuff to like media handling, workflow, landing pages …. that could save you a bunch of hours acquia/lightning-project
  16. 16. 16 Where I have been ….. drupal recommended project .gitignore drush drupal console Nice stuff file mapping [replace, append] "[web-root]/sites/default/settings.php": { "mode": "replace", "path": "assets/sites/default/settings.php", "overwrite": false }, "[web-root]/robots.txt": { "mode": "append", "prepend": "assets/robots-prequel.txt", "append": "assets/robots-append.txt" }, drupal/recommended-project
  17. 17. 17 Drupal recommended project On steroids
  18. 18. 18 Gizra ddev robo – task builder php based travis /Gizra/drupal-starter
  19. 19. 19 Wunder.io lando Grumphp Nice lando tooling (xdebug on and off for nginx) /wunderio/drupal-project
  20. 20. 20 Wunder.io lando Grumphp Nice lando tooling (xdebug on and off for nginx) /wunderio/drupal-project
  21. 21. 21 Create your own composer require --dev drupol/drupal-conventions It's based on GrumPHP and includes • Drupal coder code sniffer's checks • Custom PHP CS Fixer configuration • PHPLint • YAMLlint • JSONlint Include some nice tooling in your .lando.yml file reset: service: appserver description: ”base point drupal” cmd: - drush updb -y - drush cim -y - drush cr - drush uli xdebug-on: service: appserver description: Enable xdebug for apache. cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload" user: root xdebug-off: service: appserver description: Disable xdebug for apache. cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload" user: root
  22. 22. 22 IDEs
  23. 23. 23 The Contenders
  24. 24. 24 Use Xdebug
  25. 25. 25 Code style
  26. 26. 26 Code Sniffer
  27. 27. 27 Keymap E L B In context suggestions action Search everywhere Recent files popup Reformat code Go to last editing point Navigate to this implementation
  28. 28. 28 Git – resolve conflicts
  29. 29. 29
  30. 30. 30 Thank you!

×