-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4d6634
commit 0af2619
Showing
9 changed files
with
184 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# This file is distributed under the same license as the package. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: DePay WooCommerce Payments 0.0.11\n" | ||
"Project-Id-Version: DePay WooCommerce Payments 1.0.0\n" | ||
"Report-Msgid-Bugs-To: " | ||
"[email protected]\n" | ||
"MIME-Version: 1.0\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@depay/web3-woocommerce-depay-payments", | ||
"moduleName": "WooCommerceDePayPayments", | ||
"version": "0.0.11", | ||
"version": "1.0.0", | ||
"description": "WooCommerce DePay plugin to accept Web3 payments directly into your wallet with on-the-fly conversion.", | ||
"main": "./dist/umd/index.js", | ||
"module": "./dist/esm/index.js", | ||
|
@@ -10,13 +10,7 @@ | |
], | ||
"scripts": { | ||
"build": "rollup -c rollup.build.config.js", | ||
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", | ||
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix", | ||
"prepublishOnly": "yarn build", | ||
"test:jest": "npx jest --no-cache", | ||
"test:cypress": "yarn cypress run", | ||
"test:cypress:debug": "yarn cypress run --headed --no-exit", | ||
"test": "yarn test:cypress" | ||
"update:version": "node update-version.js" | ||
}, | ||
"repository": "[email protected]:DePayFi/web3-woocommerce-depay-payments.git", | ||
"keywords": [ | ||
|
@@ -57,10 +51,13 @@ | |
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"open-file-explorer": "^1.0.2", | ||
"prompt": "^1.3.0", | ||
"react": "^18", | ||
"react-dom": "^18", | ||
"react-test-renderer": "^18", | ||
"react-testing-library": "^8.0.1", | ||
"replace-in-file": "^6.3.5", | ||
"rollup": "^2.34.2", | ||
"rollup-plugin-livereload": "^2.0.0", | ||
"rollup-plugin-serve": "^1.1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const replace = require('replace-in-file') | ||
const prompt = require('prompt') | ||
const package = require('./package.json') | ||
const openExplorer = require('open-file-explorer') | ||
|
||
console.log(`Enter new version (current version ${package.version})`) | ||
prompt.start() | ||
prompt.get(['version'], async (err, result)=> { | ||
if(!result.version) { return } | ||
if(!result.version.match(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)){ | ||
console.log('WRONG VERSION FROMAT (see: https://semver.org)') | ||
return | ||
} | ||
|
||
await replace({ files: './package.json', from: `"version": "${package.version}",`, to: `"version": "${result.version}",`}) | ||
await replace({ files: './readme.txt', from: `== Changelog ==`, to: `== Changelog ==\n\n= ${result.version} =\n*`}) | ||
await replace({ files: './depay-woocommerce-payments.php', from: `* Version: ${package.version}`, to: `* Version: ${result.version}`}) | ||
await replace({ files: './depay-woocommerce-payments.php', from: `define( 'DEPAY_CURRENT_VERSION', '${package.version}' );`, to: `define( 'DEPAY_CURRENT_VERSION', '${result.version}' );`}) | ||
await replace({ files: './languages/depay-woocommerce-payments.pot', from: `Project-Id-Version: DePay WooCommerce Payments ${package.version}`, to: `Project-Id-Version: DePay WooCommerce Payments ${result.version}`}) | ||
|
||
console.log('Dont forget to add a changelog entry to readme.txt') | ||
openExplorer('./readme.txt') | ||
}) | ||
|
Oops, something went wrong.