mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Fix client build
This commit is contained in:
parent
bb6e1a7c07
commit
0dcdb9261d
5 changed files with 20 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
|
app/
|
||||||
# Created by https://www.gitignore.io/api/git
|
# Created by https://www.gitignore.io/api/git
|
||||||
# Edit at https://www.gitignore.io/?templates=git
|
# Edit at https://www.gitignore.io/?templates=git
|
||||||
|
|
||||||
|
|
7
build
7
build
|
@ -16,7 +16,7 @@ lantern_path="./lantern-build-engine";
|
||||||
###
|
###
|
||||||
|
|
||||||
# Put any custom settings here.
|
# Put any custom settings here.
|
||||||
build_output_folder="./dist";
|
build_output_folder="./app";
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
@ -129,11 +129,12 @@ function task_client {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
task_begin "Copying html";
|
task_begin "Copying html";
|
||||||
cp index.html "${build_output_folder}";
|
cp client_src/index.html "${build_output_folder}";
|
||||||
task_end $?;
|
task_end $?;
|
||||||
|
|
||||||
task_begin "Copying css";
|
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 $?;
|
task_end $?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
0
client_src/css/main.css
Normal file
0
client_src/css/main.css
Normal file
14
client_src/index.html
Normal file
14
client_src/index.html
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8' />
|
||||||
|
<title>Air Quality Map | ConnectedHumber</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
content here
|
||||||
|
|
||||||
|
<!---------------->
|
||||||
|
<link rel="stylesheet" href="/css/main.css" />
|
||||||
|
<script src="app.js" charset="utf-8"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -2,7 +2,7 @@ import resolve from 'rollup-plugin-node-resolve';
|
||||||
import commonjs from 'rollup-plugin-commonjs';
|
import commonjs from 'rollup-plugin-commonjs';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: 'client_src/index.mjs',
|
input: 'client_src/js/index.mjs',
|
||||||
output: {
|
output: {
|
||||||
file: 'app/client.js',
|
file: 'app/client.js',
|
||||||
format: 'es'
|
format: 'es'
|
||||||
|
|
Loading…
Reference in a new issue