Skip to content

LaTableRouge/Mappps

Repository files navigation

Mappps plugin

WordPress Version Node PHP

Mappps, is a plugin designed to display maps with the help of Leaflet. It's main purpose is to quickly make store locator for Wordpress webistes.

Development Guide

Installing Dependencies

If not already done, run npm install in this directory

🧙‍♂️ Development Scripts

We use vite.js and wp-scripts to facilitate and optimize our development.

The list of development scripts is listed below:

NPM Command Action
npm run prod compiles mappps plugin files (*.scss, *.js) and deploys static files to the build/ directory of the plugin.
npm run build lints, formats, and compiles mappps plugin files (*.php, *.scss, *.js) and deploys static files to the build/ directory of the plugin.
npm run watch starts a local development server accessible directly on local.your-host.com, compiles and reloads static files (*.scss, *.js) on each change.
npm run watch:blocks compiles blocks files (*.scss, *.js, *.jsx) and deploys static files to the build/ directory.
npm run build:blocks lints, formats, and compiles blocks files (*.scss, *.js, *.jsx) and deploys static files to the build/ directory.

Creating REACT Blocks

Blocks should be created and edited in the blocks/ directory (see README).

Translation

To generate the .pot file (from the plugin's directory):

wp i18n make-pot . lang/mappps.pot --domain=mappps --exclude=node_modules,vendor,lang --include=*.php,build

To generate the translation json files for JS (from the plugin's directory):

wp i18n make-json lang/ --no-purge

Roadmap

Documentation

Resources:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors