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.

搭建高品質開源項目的應用實踐

88 views

Published on

打造高品質的開源項目並非易事,從搭建開發環境、調試除錯、持續整合及文件部署都有不少魔鬼細節。本議題將會以開發一個開源項目為情境,實際介紹如何整合 PHP 社群工具及 DevOps 工具鍵,讓開發者更輕鬆且更有效率的完成代碼,同時產出高品質的成果。

Published in: Software
  • Be the first to comment

  • Be the first to like this

搭建高品質開源項目的應用實踐

  1. 1. 2018/12/16 (Shengyou Fan) OSC Photo by Émile Perron on Unsplash
  2. 2. • • Laravel • JetBrains •
  3. 3. https://opensource.laravel-dojo.com
  4. 4. Photo by Randy Fath on Unsplash
  5. 5. # $ git clone ... $ cd {project} $ php prefill.php $ rm prefill.php $ rm -rf .git $ git init $ git add . $ git commit -m "{message}" $ composer install # $ pstorm .
  6. 6. Photo by Markus Spiske on Unsplash
  7. 7. • • / • •
  8. 8. # This file is for unifying the coding style for different editors and IDEs # editorconfig.org root = true [*.php] charset = utf-8 indent_size = 4 indent_style = space end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true
  9. 9. if ($var) { // } else { // } if( $var ) { // } else { // }
  10. 10. # grumphp $ composer require --dev phpro/grumphp # grumphp # grumphp.yml parameters: git_dir: . bin_dir: vendor/bin tasks: phpcs: ~ phpcsfixer2: ~ phpcpd: ~ phpmd: ~ phan: ~ phpunit: ~ grumphp PHP pre-commit https://github.com/phpro/grumphp
  11. 11. Photo by kinsey on Unsplash
  12. 12. • - - - - -
  13. 13. Build Steps
  14. 14. Build Chain
  15. 15. (Shengyou Fan) shengyoufan@theqwan.com OSC

×