diff --git a/.gitignore b/.gitignore index 974b7d9d7..9203b499f 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ vendor src/vendor node_modules npm-debug.log -src/assets/web-components.js \ No newline at end of file +src/assets/web-components.js +last-js-build.md5 \ No newline at end of file diff --git a/build.sh b/build.sh index e5428ea2e..aa06716ce 100755 --- a/build.sh +++ b/build.sh @@ -1,15 +1,24 @@ #!/bin/bash -#source build-config.cfg source build-config.cfg -#destination=~/devel/wordpress/wp-content/plugins/tainacan +## Only run npm build if there was a change in a .js or .vue file +current_md5=$( last-js-build.md5 +new_md5=$(