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.
If not already done, run npm install in this directory
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. |
Blocks should be created and edited in the blocks/ directory (see README).
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,buildTo generate the translation json files for JS (from the plugin's directory):
wp i18n make-json lang/ --no-purge-
Translation (English/French)
-
Edit part
-
Save part
-
Style desktop
-
Style mobile
-
React 19 optimization update (waiting for @wordpress/scripts package dependencies to be updated)
-
all blocks typescript conversion
- filters
- filters-toggle
- loader
- map
- mappps
- mappps-blocks
- markers
- mobile-toggles
- post-details
- post-template
- search-bar
- sidebar
Resources: