matomo-for-wordpress icon indicating copy to clipboard operation
matomo-for-wordpress copied to clipboard

node_module folder must be excluded from repository and plugin releases

Open Klemart3D opened this issue 3 years ago • 0 comments

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

Klemart3D avatar Apr 05 '22 15:04 Klemart3D