diff --git a/.gitignore b/.gitignore index 552a0ab..fa58a3f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ public/js/**/*.js public/js/**/*.js.map node_modules +*.user diff --git a/.gitignore b/.gitignore index 552a0ab..fa58a3f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ public/js/**/*.js public/js/**/*.js.map node_modules +*.user diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..eca2bd0 --- /dev/null +++ b/publish.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +if ! test -f ./publish.config.user ; then + echo "scpTargetFolder=user@host.com:/path/to/folder/" > ./publish.config.user + echo "Missing config file 'publish.config.user' created." +else + webpack --mode production --devtool false + + # executes all variable definitions in the config file: + . publish.config.user + + scp -r public/* $scpTargetFolder +fi