Novac Woo
The official WooCommerce Integration for Novac
by Novac · github.com/novac-finance/novac-woocommerce-plugin · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/novac-finance/novac-woocommerce-plugin/archive/refs/heads/main.zipNovac for WooCommerce
Requirements
- Node v20+
- pnpm
- WPCLI
- Webpack
Account Setup
- Setup for Account by entering your API key and Checkout preferences.
Build Process for Developers
Our plugin uses modern build tools, including Webpack and UglifyJS, to generate production-ready JavaScript and CSS. The following scripts define our build process:
{
"prebuild": "pnpm install && composer install",
"build": "pnpm run preuglify && pnpm run uglify && composer run makepot && pnpm run build:webpack && pnpm run plugin-zip",
"build:webpack": "wp-scripts build",
"start": "pnpm run start:webpack",
"start:webpack": "rimraf build/* && wp-scripts start",
"preuglify": "rm -f $pnpm_package_config_assets_js_min",
"uglify": "for f in $pnpm_package_config_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done"
}
Developers can reproduce the build by following these steps:
Steps to Reproducing the build process Plugin zip.
- git clone https://github.com/Novac-Finance/novac-woocommerce-plugin
- /bin/setup.sh
- pnpm install
- pnpm build
- Download the plugin zip from here: https://github.com/Novac-Finance/novac-woocommerce-plugin/releases
Links to unminified
- assets/js/checkout.js
- assets/blocks/index.js
- assets/admin/settings/index.js
- assets/editor/index.js