matomo-for-wordpress
matomo-for-wordpress copied to clipboard
node_module folder must be excluded from repository and plugin releases
node_module is a dependency folder so it will not be available neither in this repository nor in the plugin releases.
You can reference the .gitignore template: Node.gitignore
node_modules/ must be in .gitignore like for any other plugin node based like Gutenberg:
https://github.com/WordPress/gutenberg/blob/trunk/.gitignore#L6
If chart.js dependency is required, it must be compiled in another folder.
Steps to remove node_modules
echo 'node_modules/' >> .gitignore
git rm -r --cached node_modules
git commit -m 'Remove node_modules'
git push origin develop