Lux Energia - CO2 Calc Block GitLab
A plugin for WordPress to add a interactive CO2 Calculator.
by Robson H. Rodrigues · gitlab.com/robson16/luxenergia-co2calc-block · website
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://gitlab.com/robson16/luxenergia-co2calc-block/-/archive/main/luxenergia-co2calc-block-main.zipReadme
Lux Energia - CO2 Calc Block
- Contributors: Robson H. Rodrigues
- Tags: block
- Tested up to: 6.1
- Stable tag: 1.0.0
- License: MIT
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.