As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow the WordPress Code of Conduct.
The Fast Smooth Scroll plugin is licensed under the GPLv2 (or later), and all contributions will be released under the GPLv2 license. You maintain copyright over any contribution you make, and by submitting a pull request, you are agreeing to release that contribution under the GPLv2 license.
In general, all code must follow the WordPress Coding Standards and best practices. All code must furthermore satisfy the following minimum requirements:
- WordPress: The plugin's minimum required WordPress version is 5.0.
- PHP: The plugin's minimum required PHP version is 5.2.
- Node.js
- Docker
- Git
- Composer (if you prefer to run the Composer tools locally)
- Install and configure the prerequisites noted above.
- Clone the repository (or a fork of it) into your local machine, e.g. using
git clone https://github.com/felixarntz/fast-smooth-scroll.git
. - Install local development dependencies by first running
npm install
(and optionallycomposer install
) in the project folder. - Start the local development environment via
npm run wp-env start
. The WordPress development site will be available athttp://localhost:8888
and WP admin will be available athttp://localhost:8888/wp-admin/
. You can log in to the WP Admin interface using the usernameadmin
and passwordpassword
.
npm install
: Installs local development dependenciesnpm run wp-env start
: Starts the local development environmentnpm run wp-env stop
: Stops the local development environmentnpm run lint-php
: Lints all PHP codenpm run format-php
: Formats all PHP codenpm run test-php
: Runs PHPUnit tests for all PHP codenpm run test-php-multisite
: Runs PHPUnit tests in multisite for all PHP codenpm run lint-js
: Lints all JavaScript codenpm run format-js
: Formats all JavaScript codenpm run build
: Builds the JavaScript code fromsrc
into thebuild
directory