Skip to content

Commit 21384f0

Browse files
committed
chore: modernize build and release pipeline
- Upgrade to Yarn 4.10.3 with node-modules linker - Consolidate build/package.json into root - Add automated changelog with generate-wp-readme - Setup commitlint + Husky for conventional commit enforcement - Update CI/CD workflows to use Yarn consistently - Update .gitignore to ignore built assets (public/css, public/js) - Delete build/ directory and package-lock.json
1 parent 707963a commit 21384f0

File tree

16 files changed

+17594
-47118
lines changed

16 files changed

+17594
-47118
lines changed

.distignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/build
21
/.github
32
/.git
43
composer.lock
@@ -12,6 +11,13 @@ docker_tag
1211
/node_modules
1312
/assets
1413
package.json
15-
package-lock.json
14+
yarn.lock
15+
.yarnrc.yml
16+
.yarn/
1617
webpack.config.js
17-
phpcs.xml
18+
phpcs.xml
19+
commitlint.config.js
20+
.husky/
21+
.readme-template
22+
CHANGELOG.md
23+
README.md

.github/workflows/create-package.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
with:
2424
node-version: '18'
2525

26-
- name: Install npm dependencies
27-
run: npm install
26+
- name: Enable Corepack
27+
run: corepack enable
2828

29-
- name: Build assets with wp-scripts
30-
run: npm run build
29+
- name: Install dependencies
30+
run: yarn install --immutable
31+
32+
- name: Build assets
33+
run: yarn build
3134

3235
- name: Exclude files listed in .distignore
3336
run: |

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
with:
2121
node-version: '18'
2222

23-
- name: Install npm dependencies
24-
run: npm install
23+
- name: Enable Corepack
24+
run: corepack enable
2525

26-
- name: Build assets with wp-scripts
27-
run: npm run build
26+
- name: Install dependencies
27+
run: yarn install --immutable
28+
29+
- name: Build assets
30+
run: yarn build
2831

2932
- name: WordPress Plugin Deploy
3033
id: deploy

.gitignore

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
.DS_Store
22
.idea
33
assets/.DS_Store
4-
build/node_modules
54
vendor
65
.php-version
76
.env
87
tests/playwright/playwright-report
98
tests/playwright/test-results
109

11-
# Yarn
12-
/build/.yarn/*
13-
!/build/.yarn/patches
14-
!/build/.yarn/plugins
15-
!/build/.yarn/releases
16-
!/build/.yarn/sdks
17-
!/build/.yarn/versions
10+
# Node & Yarn
11+
node_modules/
12+
.yarn/*
13+
!.yarn/patches
14+
!.yarn/plugins
15+
!.yarn/releases
16+
!.yarn/sdks
17+
!.yarn/versions
18+
.pnp.*
19+
20+
# Built assets (generated by webpack from assets/)
21+
/public/css/
22+
/public/js/
23+
24+
# Husky
25+
.husky/_/
1826

1927
# Playwright
20-
node_modules/
2128
/test-results/
2229
/playwright-report/
2330
/blob-report/

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn commitlint --edit $1

.readme-template

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
=== MONEI Payments for WooCommerce ===
2+
Tags: woocommerce, credit card, payment gateway, payments, ecommerce
3+
Contributors: monei, furi3r
4+
Requires at least: 5.0
5+
Tested up to: 6.8
6+
Stable tag: {{__PLUGIN_VERSION__}}
7+
Requires PHP: 7.2
8+
License: GPLv2 or later
9+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10+
WC requires at least: 3.0
11+
WC tested up to: 9.8
12+
13+
Accept Card, Apple Pay, Google Pay, Bizum, PayPal and many more payment methods in your WooCommerce store using MONEI payment gateway.
14+
15+
== Description ==
16+
17+
= ACCEPT ONLINE PAYMENTS WITH MONEI =
18+
MONEI is an e-commerce payment gateway for WooCommerce (and other e-commerce platforms).
19+
20+
21+
Its payment gateway is the choice of many Spain and Andorra based e-commerce businesses. Use MONEI's technology to accept and manage all major and alternative payment methods in a single platform.
22+
23+
24+
MONEI is dedicated to helping you simplify your digital payments so you can focus on growing your online business.
25+
26+
= PAYMENT METHODS =
27+
Use MONEI's payment gateway to accept debit and credit card payments from customers worldwide in 230+ currencies.
28+
29+
30+
Let shoppers pay from the convenience of their smartphone with digital wallets like Apple Pay, Google Pay, and PayPal. And accept local payment methods such as Bizum (Spain) and SEPA Direct Debit (EU).
31+
32+
33+
Offering customers [many payment methods](https://monei.com/es/online-payment-methods/) leads to an increase in sales and customer satisfaction. 🚀
34+
35+
= WHY TO USE MONEI'S PAYMENT PLUGIN FOR WOOCOMMERCE =
36+
37+
MONEI's serverless architecture allows you to scale and process a high volume of transactions. Its dynamic pricing model means as you sell more your transaction fees decrease. Once you're an approved merchant, enjoy 1-day payment settlements.
38+
39+
40+
Payment security is crucial. MONEI is PCI DSS compliant, 3D Secure, and uses payment tokenization to make sure sensitive payment information is never compromised.
41+
42+
43+
Connect your custom domain to MONEI and customize the appearance of your checkout page to build trust and brand awareness.
44+
45+
46+
With MONEI's payment gateway for e-commerce, get real-time sales analytics via your customer dashboard.
47+
48+
49+
Please go to the 👉 [signup page](https://dashboard.monei.com/?action=signUp) 👈 to create a new MONEI account. Contact support@monei.com if you have any questions or feedback about this plugin.
50+
51+
52+
= PAYMENT GATEWAY FEATURES =
53+
* Merchant support for all available MONEI payment methods
54+
* Accept and manage all major and alternative payment methods in a single platform
55+
* Quickly and easily integrate with your WooCommerce website using MONEI's API
56+
* Connect your custom domain to MONEI and customize the appearance of your checkout page
57+
* Scale and process a high volume of transactions
58+
* Dynamic pricing model — as you sell more your transaction fees decrease
59+
* Verified merchants enjoy 1-day payment settlements
60+
* PCI-DSS compliant
61+
* Self-hosted flexible input fields
62+
* Supports 3D Secure and 3D Secure exemptions
63+
* Tokenization for deep integration of recurring billing + usage-based charges
64+
* Subscriptions support for various payment methods via WooCommerce Subscriptions
65+
* 13 languages available with auto-detection based on browser language
66+
* Capture pre-authorized payments and process refunds within your WooCommerce admin Dashboard
67+
* Notifications via email or SMS for customer information and monitoring your store
68+
* Get real-time sales analytics via your customer dashboard
69+
70+
71+
= GETTING STARTED WITH MONEI =
72+
1. How do I open my MONEI account so I can plug in with WooCommerce?
73+
Learn how to [get started with MONEI here ››](https://support.monei.com/hc/en-us/articles/360017801677-Get-started-with-MONEI)
74+
2. What countries does MONEI support?
75+
Currently, MONEI is available in Spain and Andorra, but our global expansion is happening fast. [Join our newsletter here](https://client.moonmail.io/ac8e391c-8cfb-46e3-aed9-e7a84d0fd830/forms/6bafcdbf-442a-4e3b-874f-7e2ed30ee001) to get notified once we support your country!
76+
3. I have different questions about this plugin.
77+
Please contact support@monei.com with your MONEI ID. Describe your problem in detail and include screenshots when necessary.
78+
79+
== Installation ==
80+
* Go to wp-admin > Plugins
81+
* Click Add new
82+
* Search for MONEI
83+
* Press Install
84+
* Press Activate now
85+
* Go to WooCommerce > Settings > Payments > MONEI
86+
* Add your API Key.
87+
88+
= If you don't have API Key =
89+
90+
* Go to [MONEI Dashboard > Settings > API Access](https://dashboard.monei.com/settings/api)
91+
* Click on "Create API Key"
92+
93+
= Use of 3rd Party Services =
94+
This plugin is using [MONEI API](https://docs.monei.com/api/) to process payments as well as
95+
[MONEI UI Components](https://docs.monei.com/docs/monei-js/overview/) to securely collect sensitive payment information during checkout.
96+
97+
By using this plugin you agree with MONEI [Terms of Service](https://monei.com/legal-notice/) and [Privacy Policy](https://monei.com/privacy-policy/)
98+
99+
== Screenshots ==
100+
101+
1. Apple Pay, Bizum, PayPal, credit Card
102+
2. Google Pay, Bizum, PayPal, credit Card
103+
104+
== Changelog ==
105+
106+
{{__CHANGELOG__}}

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

0 commit comments

Comments
 (0)