GithubHelp home page GithubHelp logo

isabella232 / pinterest-for-woocommerce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from woocommerce/pinterest-for-woocommerce

0.0 0.0 0.0 3.34 MB

A native Pinterest integration for WooCommerce.

License: GNU General Public License v3.0

PHP 84.68% JavaScript 13.44% SCSS 1.28% Shell 0.61%

pinterest-for-woocommerce's Introduction

Pinterest for WooCommerce

A native integration which allows you to market your store on Pinterest, including:

Status - in development

Pinterest for WooCommerce is under development. To find out more about availability and release, refer to WooCommerce.com.

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests.

Requirements

Pinterest for WooCommerce requires recent versions of PHP (7.3 or newer), and WordPress and WooCommerce (we recommend the latest, and support the last two versions, a.k.a. L-2).

See pinterest-for-woocommerce.php for current required versions.

Supported browsers

As per WordPress Core Handbook we currently support:

  • Last 1 Android versions.
  • Last 1 ChromeAndroid versions.
  • Last 2 Chrome versions.
  • Last 2 Firefox versions.
  • Last 2 Safari versions.
  • Last 2 iOS versions.
  • Last 2 Edge versions.
  • Last 2 Opera versions.
  • Browsers with > 1% usage based on can I use browser usage table

โš ๏ธ We do not support Internet Explorer.

Development

After cloning the repo. Remember to use the appropiate node version

  • nvm use to autoselect the node version based on .nvmrc file.

Then, install dependencies:

  • npm install to install JavaScript dependencies.
  • composer install to gather PHP dependencies.

Now you can build the plugin using one of these commands:

  • npm start: Build a development version and watch files for changes.
  • npm build: Build a production version.
  • npm build:zip: Build and production version and package as a zip file.

Branches

  • develop branch is the most up to date code.

Development tools

There are a number of development tools available as npm scripts. Check the package.json file for more.

  • npm run lint:js: Run eslint to validate JavaScript code style.
  • npm run lint:css: Run stylelint to validate CSS code style.
  • npm run lint:php: Run phpcs to validate PHP code style.

Please use these tools to ensure your code changes are consistent with the rest of the code base. This code follows WooCommerce and WordPress standards.

This repository includes an EditorConfig to automate basic code formatting. Please install the appropriate plugin for your editor.

PHPUnit

Prerequisites

Install composer, git, svn, and either wget or curl.

Change to the plugin root directory and type:

$ composer install

Install Test Dependencies

To run the unit tests you need WordPress, WooCommerce, and the WordPress Unit Test lib (included in the core development repository).

Install them using the install-wp-tests.sh script:

$ ./bin/install-wp-tests.sh <db-name> <db-user> <db-pass> <db-host>

Example:

$ ./bin/install-wp-tests.sh wordpress_tests root root localhost

This script installs the test dependencies into your system's temporary directory and also creates a test database.

You can also specify the path to their directories by setting the following environment variables:

  • WP_TESTS_DIR: WordPress Unit Test lib directory
  • WP_CORE_DIR: WordPress core directory
  • WC_DIR: WooCommerce directory

Running Tests

Change to the plugin root directory and type:

$ vendor/bin/phpunit

The tests will execute and you'll be presented with a summary.

Unit Tests and PHP 8

We currently do not support running unit tests on PHP 8..



Made with ๐Ÿ’œ by WooCommerce.
We're hiring! Come work with us!

pinterest-for-woocommerce's People

Contributors

achalj avatar alexiglesias-saucal avatar alexiglesias31 avatar budzanowski avatar eason9487 avatar ecgan avatar fellyph avatar haszari avatar ianlin avatar jconroy avatar jorgemd24 avatar jpry avatar ksere avatar mikkamp avatar msaggiorato avatar nima-karimi avatar pauloiankoski avatar puntope avatar rawdreeg avatar sc-ecolasurdo avatar tomalec 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.