From 1cbcce1ab12c21408299833d3a51b979af6967c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Thor=C3=A9n?= Date: Mon, 30 Oct 2017 11:10:27 -0500 Subject: [PATCH] Basic build/link landing page script --- README.md | 7 ++++++- build-landing-page.sh | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 build-landing-page.sh diff --git a/README.md b/README.md index a8d3388..6f852c5 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,12 @@ Open http://localhost:3449/cards.html ### Update landing page -Landing page is static and different CSS and JS due to time constraints. Update `static_landing_page` and then copy `dest` dir to `resources/public` and `index.html` to `resources/templates/` . Also need to put `assets` inside `resources/public.` +Landing page is static and different CSS and JS due to time constraints. + +- Build CSS with Gulp (see `static_landing_page/README.md` +- Make changes and `./build-landing-page.sh` + +This copies over necessary artifacts to `resources` dir. ## License diff --git a/build-landing-page.sh b/build-landing-page.sh new file mode 100755 index 0000000..6eeb295 --- /dev/null +++ b/build-landing-page.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +# TODO: Gulp etc pipeline, for now just HTML tweaks + +echo "Copying index.html, dest, and assets to resources/{templates,public}." +cp static_langing_page/index.html resources/templates/index.html +cp -r static_langing_page/dest/ resources/public/dest/ +cp -r static_langing_page/assets/ resources/public/assets/ + + +