diff options
author | Jan Raasch <jan@janraasch.com> | 2020-08-17 13:56:05 +0300 |
---|---|---|
committer | Jan Raasch <jan@janraasch.com> | 2020-09-07 12:20:21 +0300 |
commit | 9f00958a5c8a48670b109d0d184576bf53906c39 (patch) | |
tree | 9ddceda1b76e22a5b83b7652ef6f0ad3b392ecd5 /scripts |
chore: initial commit 🧗🏼♂️
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/generate_resources.sh | 8 | ||||
-rw-r--r-- | scripts/manual_setup.sh | 33 |
2 files changed, 41 insertions, 0 deletions
diff --git a/scripts/generate_resources.sh b/scripts/generate_resources.sh new file mode 100644 index 0000000..42a645f --- /dev/null +++ b/scripts/generate_resources.sh @@ -0,0 +1,8 @@ +# Remove (--gc) exiting resources and generate for GitHub pages build +hugo --minify --gc -s exampleSite --themesDir=../.. --baseURL https://janraasch.github.io/hugo-product-launch/ + +# Generate "production"-environment resources +hugo --minify -s exampleSite --themesDir=../.. + +# Generate "development"-environment resources +hugo server -s exampleSite --themesDir=../.. diff --git a/scripts/manual_setup.sh b/scripts/manual_setup.sh new file mode 100644 index 0000000..a9207f1 --- /dev/null +++ b/scripts/manual_setup.sh @@ -0,0 +1,33 @@ +# +# This script is meant to be run form within a hugo site's root +# with hugo-product-launch installed under ./themes/hugo-product-launch +# +echo 'ExampleSite: Copy contents of exampleSite into root' +cp -v -r themes/hugo-product-launch/exampleSite/ ./ + +echo 'NodeJS: Copy package.json' +cp -v themes/hugo-product-launch/package.json . +cp -v themes/hugo-product-launch/package-lock.json . + +echo 'Git: Copy .gitignore' +cp -v themes/hugo-product-launch/.gitignore . + +echo 'NodeJS: Install dependencies' +echo 'NodeJS Version:' +node -v +echo 'NPM Version:' +npm -v +npm install +npm install postcss-cli -g + +echo 'Custom CSS: Copy main.css into local "assets/css"-directory' +cp -v -r themes/hugo-product-launch/assets ./ + +echo 'Custom CSS: Copy tailwind.config.js into root' +cp -v themes/hugo-product-launch/tailwind.config.js . + +# +# Optional - For taking over postcss completely +# +# echo 'Custom CSS: Copy postcss.config.js into root' +# cp -v themes/hugo-product-launch/postcss.config.js . |