Copy pages and assets to dist folder
This commit is contained in:
parent
69db824ae1
commit
177dffc681
23 changed files with 114 additions and 83 deletions
|
@ -1,2 +1,2 @@
|
|||
FROM nginx
|
||||
COPY . /usr/share/nginx/html
|
||||
COPY dist /usr/share/nginx/html
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base bar stats</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base bar status</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
h2 {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-lab</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-lab</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base event calendar</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="https://www.c-base.org/calendar/exported/events.js"></script>
|
||||
<script src="../dist/calendar.js"></script>
|
||||
<script src="../lib/calendar.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
#events {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base he2</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-flo info display</title>
|
||||
<script src="/dist/infodisplay.js" type="text/javascript"></script>
|
||||
<script src="../lib/infodisplay.js" type="text/javascript"></script>
|
||||
<style>
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base network traffic</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base life support</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base mainhall</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base mainhall</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base nerdarea</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base nerdarea</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"scripts": {
|
||||
"build": "webpack",
|
||||
"pretest": "eslint index.js lib/*.js elements/*.js infodisplay/*.js events/*.js",
|
||||
"start": "http-server . -p 3000 -s -c-1",
|
||||
"start": "http-server dist/ -p 3000 -s -c-1",
|
||||
"test": "npm run build"
|
||||
},
|
||||
"author": "Henri Bergius <henri.bergius@iki.fi>",
|
||||
|
@ -26,6 +26,7 @@
|
|||
"babel-eslint": "^8.0.2",
|
||||
"babel-loader": "^8.0.0-beta.0",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"copy-webpack-plugin": "^4.6.0",
|
||||
"eslint": "^4.12.0",
|
||||
"eslint-config-airbnb-base": "^12.1.0",
|
||||
"eslint-plugin-import": "^2.8.0",
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base robolab</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base robolab</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base soundlab</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
infoscreens: './index.js',
|
||||
|
@ -6,7 +8,7 @@ module.exports = {
|
|||
},
|
||||
output: {
|
||||
path: __dirname,
|
||||
filename: 'dist/[name].js',
|
||||
filename: 'dist/lib/[name].js',
|
||||
library: '[name]',
|
||||
libraryTarget: 'umd',
|
||||
},
|
||||
|
@ -20,11 +22,39 @@ module.exports = {
|
|||
options: {
|
||||
presets: ['@babel/preset-env'],
|
||||
plugins: ['transform-class-properties'],
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: '**/index.html',
|
||||
to: 'dist/',
|
||||
},
|
||||
{
|
||||
from: '**/*.svg',
|
||||
to: 'dist/',
|
||||
},
|
||||
{
|
||||
from: 'theme/*',
|
||||
to: 'dist/',
|
||||
},
|
||||
{
|
||||
from: 'node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js',
|
||||
to: 'dist/vendor/webcomponentsjs/webcomponents-lite.js',
|
||||
},
|
||||
{
|
||||
from: 'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js',
|
||||
to: 'dist/vendor/webcomponentsjs/custom-elements-es5-adapter.js',
|
||||
},
|
||||
{
|
||||
from: 'node_modules/plotly.js/dist/plotly.min.js',
|
||||
to: 'dist/vendor/plotly.js/plotly.min.js',
|
||||
},
|
||||
]),
|
||||
],
|
||||
externals: {
|
||||
newrelic: 'commonjs newrelic',
|
||||
tv4: 'commonjs tv4',
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base weltenbaulab</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base weltenbaulab</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base workshop</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base workshop</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../vendor/plotly.js/plotly.min.js"></script>
|
||||
<script src="../lib/infoscreens.js"></script>
|
||||
<link rel="stylesheet" href="../theme/c-base.css">
|
||||
<style>
|
||||
main {
|
||||
|
|
Loading…
Reference in a new issue