Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitLab with WP-CLI:
wp plugin install https://gitlab.com/robson16/luxenergia-co2calc-block/-/archive/main/luxenergia-co2calc-block-main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A plugin for WordPress to add a interactive CO2 Calculator in Lux Energia web site.
🛠 Technologies
This project was developed with the following technologies
:floppy_disk: Installation
-
Upload the plugin files to the
/wp-content/plugins/luxenergia-co2calc-blockdirectory, or install the plugin through the WordPress plugins screen directly. -
Activate the plugin through the 'Plugins' screen in WordPress.
:closed_book: Getting Started
You need to have Node.js installed, then you can clone and run this project on your WordPress installation with the instructions below:
Below you will find some information on how to run scripts.
👉 npm start
- Use to compile and run the block in development mode.
- Watches for any changes and reports back any errors in your code.
👉 npm run build
- Use to build production code for your block inside
buildfolder. - Runs once and reports back the gzip file sizes of the produced code.
👉 npm format
- It helps to enforce coding style guidelines for your files (JavaScript, YAML) by formatting source code in a consistent way.
👉 npm lint:css
- Helps enforce coding style guidelines for your style files.
👉 npm lint:js
- Helps enforce coding style guidelines for your JavaScript files.