Git Product home page Git Product logo

guide-contribute-core-cli's Introduction

[WordPress] CoreとCLIのコントリビュートの仕方

Core

ローカル開発環境を用意

VVV (varyingvagrantvagrants)

https://varyingvagrantvagrants.org/

インストールの仕方

配布したフォルダ内の instructions.htmlを参照。

Ticketを探す

https://make.wordpress.org/core/reports/

https://core.trac.wordpress.org/tickets/good-first-bugs

パッチを送る

修正

cd ./WCTOKYO2019/vvv/www/wordpress-develop/public_html/src/

バグを修正。

テスト

vagrant ssh
cd /srv/www/wordpress-develop/public_html/

//gruntが使えることを確かめる
grunt --help

cp wp-tests-config-sample.php wp-tests-config.php

//wp-config.phpの設定値をコピー&ペースト
vi wp-tests-config.php

grunt test

コーディング規約チェック

phpcs ./target-file.php
phpcs ./target-directory/*

パッチを作成

変更をadd

svn add /src/modified-file.php

パッチを作成

svn diff /src/modified-file.php > 00000.diff

パッチファイルをTicketにアップロード + コメントを書く。

参考

始め方

https://make.wordpress.org/core/handbook/tutorials/getting-started/

テスト

https://make.wordpress.org/core/handbook/testing/patch/

パッチを作成

https://make.wordpress.org/core/handbook/tutorials/working-with-patches/#creating-and-applying-patches-withthe-command-line

パッチをアップロード

https://make.wordpress.org/core/handbook/tutorials/trac/submitting-a-patch/

WP-CLI

参考

コントリビュートの仕方

https://make.wordpress.org/cli/handbook/contributing/

プルリクエスト

https://make.wordpress.org/cli/handbook/pull-requests/

Good First Issue

https://github.com/wp-cli/wp-cli/labels/good-first-issue

guide-contribute-core-cli's People

Contributors

naogify avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.