Table of Contents
Developer tools
このガイドでは、WooCommerceの開発に不可欠なツールとライブラリの概要を説明します。WooCommerceプロジェクトを効率的に強化したい開発者を対象としています。
Productivity Tools
これらのリソースを使用して、WooCommerceの開発ワークフローを強化しましょう。
Development
wp-cli
This is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.
wc-cli
WooCommerceがWordPressインストール上で実行されている場合、WP-CLIはストアデータを管理するための追加機能で拡張されます。
wp-env
このコマンドラインツールを使うと、プラグインやテーマのビルドとテストのために、ローカルのWordPress Docker環境を簡単にセットアップできます。インストールは簡単で、設定も不要です。
woocommerce/eslint-plugin
This is an ESLint plugin including configurations and custom rules for WooCommerce development.
WordPress Scripts
wordpress/scriptsパッケージは、WordPressプロジェクトの開発プロセス、特にブロック開発とカスタムGutenberg統合を合理化するために設計されたツールとスクリプトのセットです。このパッケージには、Webpack のビルドプロセスと、リンティング、スタイリング、テストなどのタスクの設定が含まれています。
It also includes the Dependency Extraction Webpack Plugin, which allows JavaScript bundles produced by webpack to leverage WordPress style dependency sharing without an error-prone process of manually maintaining a dependency list.
Testing
Smooth Generator
A plugin to help you generate WooCommerce-related data for testing. Use the WP Admin interface for basic operations, or the CLI tool for more advanced features. Download and install the latest version from the Releases page and review the documentation on GitHub.
WooCommerce Dummy Payments Gateway
サブスクリプションとブロックベースのチェックアウトをサポートした、WooCommerce開発のためのダミー決済ゲートウェイです。
QIT
QITは、マネージドテスト、E2Eテスト、使い捨てのローカルテスト環境を備えたWooCommerceプラグインとテーマのためのテストプラットフォームです。
Libraries
これらのリソースを使用することで、データの取得や変換、UI 要素の作成などの手間を省くことができます。
API Clients
WooCommerce REST API – JavaScript
WooCommerce REST APIを使用するための公式JavaScriptライブラリです。
WooCommerce Store API
Store API は、顧客向けのカート、チェックアウト、商品機能を開発するためのパブリックな Rest API エンドポイントを提供します。WordPress REST API で使用されているパターンの多くに従っています。
WooCommerce REST APIとは対照的に、Store APIは認証されておらず、機密性の高い店舗データやその他の顧客情報へのアクセスを提供しません。
wordpress/api-fetch
The @wordpress/api-fetch package is a utility that simplifies AJAX requests to the WordPress REST API. It's a wrapper around window.fetch that provides a consistent interface for handling authentication, settings, and errors, allowing developers to easily interact with WordPress backend services.
Components
WooCommerce Components
This package includes a library of React components that can be used to create pages in the WooCommerce admin area. To preview these components, review the Woo Storybook.
WordPress Components
This package includes a library of generic WordPress components that can be used for creating common UI elements shared between screens and features of the WordPress dashboard. To preview these components, review the Gutenberg Storybook.
JavaScript Utility Packages
CSV Export
データをCSV値に変換し、CSVデータのブラウザダウンロードを可能にする関数群。
Currency
通貨値を表示したり操作したりするためのユーティリティ集。
Data
WooCommerce Adminデータストアを管理するユーティリティです。
Date
日付の値を表示したり操作したりするためのユーティリティ集。
Navigation
クエリパラメータオブジェクトの処理、クエリパラメータのシリアライズ、クエリパラメータの更新、パス変更のトリガを行うナビゲーション関連関数のコレクション。
Number
WooCommerceで数値を適切にローカライズするためのユーティリティ集です。