From 0dcdb9261de78f4180f64b3d82a5fc9330bcd962 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 13 Jan 2019 13:22:13 +0000 Subject: [PATCH] Fix client build --- .gitignore | 2 +- build | 7 ++++--- client_src/css/main.css | 0 client_src/index.html | 14 ++++++++++++++ rollup.config.js | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 client_src/css/main.css create mode 100644 client_src/index.html diff --git a/.gitignore b/.gitignore index 22e44f3..4fd4f52 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ - +app/ # Created by https://www.gitignore.io/api/git # Edit at https://www.gitignore.io/?templates=git diff --git a/build b/build index d7153ca..1475ca8 100755 --- a/build +++ b/build @@ -16,7 +16,7 @@ lantern_path="./lantern-build-engine"; ### # Put any custom settings here. -build_output_folder="./dist"; +build_output_folder="./app"; ############################################################################### @@ -129,11 +129,12 @@ function task_client { fi task_begin "Copying html"; - cp index.html "${build_output_folder}"; + cp client_src/index.html "${build_output_folder}"; task_end $?; task_begin "Copying css"; - cp theme.css "${build_output_folder}"; + # FUTURE: Package this up too? + cp -r client_src/css/ "${build_output_folder}"; task_end $?; } diff --git a/client_src/css/main.css b/client_src/css/main.css new file mode 100644 index 0000000..e69de29 diff --git a/client_src/index.html b/client_src/index.html new file mode 100644 index 0000000..76b852d --- /dev/null +++ b/client_src/index.html @@ -0,0 +1,14 @@ + + + + + Air Quality Map | ConnectedHumber + + + content here + + + + + + diff --git a/rollup.config.js b/rollup.config.js index 6d9322a..763c997 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,7 +2,7 @@ import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; export default { - input: 'client_src/index.mjs', + input: 'client_src/js/index.mjs', output: { file: 'app/client.js', format: 'es'