woocommerce/docs/getting-started/developer-tools.md

86 lines
3.4 KiB
Markdown
Raw Normal View History

2023-11-29 18:48:05 +00:00
---
post_title: WooCommerce developer tools
---
This guide provides an overview of essential tools and libraries for WooCommerce development. It's intended for developers looking to enhance their WooCommerce projects efficiently.
2024-01-05 17:33:45 +00:00
## Productivity Tools
Use these resources to get a WooCommerce development environment up and running.
2024-01-05 17:33:45 +00:00
### [wp-cli](https://wp-cli.org/)
This is the command-line interface for [WordPress](https://wordpress.org/). You can update plugins, configure multisite installations and much more, without using a web browser.
2024-01-05 17:33:45 +00:00
### [wp-env](https://www.npmjs.com/package/@wordpress/env)
This command-line tool lets you easily set up a local WordPress environment for building and testing plugins and themes. It's simple to install and requires no configuration.
2024-01-05 17:33:45 +00:00
### [eslint-plugin](https://www.npmjs.com/package/@woocommerce/eslint-plugin)
This is an [ESLint](https://eslint.org/) plugin including configurations and custom rules for WooCommerce development.
2024-01-05 17:33:45 +00:00
### [e2e-environment](https://www.npmjs.com/package/@woocommerce/e2e-environment)
This is a reusable and extensible end-to-end testing environment for WooCommerce extensions. Additionally, it contains several files to serve as the base for a Docker container and Travis CI setup.
2024-01-05 17:33:45 +00:00
### [WordPress Scripts](https://www.npmjs.com/package/@wordpress/scripts)
This is a collection of reusable scripts tailored for WordPress development.
---
2024-01-05 17:33:45 +00:00
## Libraries
Use these resources to help take some of the heavy lifting off of fetching and transforming data as well as creating UI elements.
2024-01-05 17:33:45 +00:00
### API Clients
2024-01-05 17:33:45 +00:00
### [WooCommerce REST API - JavaScript](https://www.npmjs.com/package/@woocommerce/woocommerce-rest-api)
The official JavaScript library for working with the WooCommerce REST API.
2024-01-05 17:33:45 +00:00
### [api-fetch](https://www.npmjs.com/package/@wordpress/api-fetch)
This is a utility to make WordPress REST API requests. It's a wrapper around `window.fetch` that includes support for nonces, middleware, and custom fetch handlers.
2024-01-05 17:33:45 +00:00
### Components
2024-01-05 17:33:45 +00:00
### [WooCommerce Components](https://www.npmjs.com/package/@woocommerce/components)
This package includes a library of React components that can be used to create pages in the WooCommerce admin area.
2024-01-05 17:33:45 +00:00
### [WordPress Components](https://www.npmjs.com/package/@wordpress/components)
This packages 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.
---
2024-01-05 17:33:45 +00:00
## Utilities
2024-01-05 17:33:45 +00:00
### [CSV Export](https://www.npmjs.com/package/@woocommerce/csv-export)
A set of functions to convert data into CSV values, and enable a browser download of the CSV data.
2024-01-05 17:33:45 +00:00
### [Currency](https://www.npmjs.com/package/@woocommerce/currency)
A collection of utilities to display and work with currency values.
2024-01-05 17:33:45 +00:00
### [Data](https://www.npmjs.com/package/@woocommerce/data)
Utilities for managing the WooCommerce Admin data store.
2024-01-05 17:33:45 +00:00
### [Date](https://www.npmjs.com/package/@woocommerce/date)
A collection of utilities to display and work with date values.
2024-01-05 17:33:45 +00:00
### [Navigation](https://www.npmjs.com/package/@woocommerce/navigation)
A collection of navigation-related functions for handling query parameter objects, serializing query parameters, updating query parameters, and triggering path changes.
2024-01-05 17:33:45 +00:00
### [Number](https://www.npmjs.com/package/@woocommerce/number)
A collection of utilities to properly localize numerical values in WooCommerce.