This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
For Developers
Jen Baumann edited this page Apr 26, 2023
·
2 revisions
- Install Node.js, which also gives you the Node Package Manager (npm).
- Clone this repo into your
wp-content/plugins/
directory. - On the command line in the plugin directory, run
npm install
. - Once installation is complete, run
npm run dev
to watch JS and CSS files for changes and build them using webpack.
Scripts are provided to help with code linting. You can use these commands:
-
npm run lint:css
to generate a report of style violations for CSS/SCSS. -
npm run lint:css:fix
to fix any style violations that can be corrected automatically. -
npm run lint:js
to generate a report of style violations for script files. -
npm run lint:js:fix
to fix any script violations that can be corrected automatically. -
npm run lint:php
to generate a report of style violations for script files. -
npm run lint:php:fix
to fix any php violations that can be corrected automatically. -
npm run zip
to create apattern-manager.zip
file.
All external contributors to WP Engine products must have a signed Contributor License Agreement (CLA) in place before the contribution may be accepted into any WP Engine codebase.
- Submit your name and email
- 📝 Sign the CLA emailed to you
- 📥 Receive copy of signed CLA
❤️ Thank you for helping us fulfill our legal obligations in order to continue empowering builders through WordPress.
See the package.json file for more commands.