From 441a0e2ebd5cadf28ab487007c47831cff7b8686 Mon Sep 17 00:00:00 2001 From: Michael Wyraz Date: Tue, 2 Nov 2021 22:01:59 +0100 Subject: [PATCH 1/3] Add some build instructions to README --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 0c3d60ad..f84fd9ad 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,26 @@ Standalone: https://regensburg.freifunk.net/meshviewer/ - [POEditor](https://poeditor.com/join/project/VZBjPNNic9) for providing an easy non-developer translation environment These tools need a lot of infrastructures and provide a free account for open source software. + +## Building / Running + +Required tools: +* yarn +* gulp + +1st install the dependencies by running +``` +yarn +``` + +Then you can start a development server with +``` +gulp serve +``` + +To build a release, run +``` +gulp +``` + +The result will be in the "build" folder afterwards. \ No newline at end of file From 5232d57d081fbd074ea01d95f9ad415f5555d503 Mon Sep 17 00:00:00 2001 From: Michael Wyraz Date: Tue, 2 Nov 2021 22:03:48 +0100 Subject: [PATCH 2/3] Better embeding support + example --- gulp/tasks/copy.js | 2 +- html/embed.html | 6 ++++++ html/embed.js | 24 ++++++++++++++++++++++++ lib/main.js | 4 ++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 html/embed.html create mode 100644 html/embed.js diff --git a/gulp/tasks/copy.js b/gulp/tasks/copy.js index 885522cb..323c6b1d 100644 --- a/gulp/tasks/copy.js +++ b/gulp/tasks/copy.js @@ -1,6 +1,6 @@ module.exports = function (gulp, plugins, config) { return function copy() { - gulp.src(['html/*.html', 'assets/favicon/*']) + gulp.src(['html/*.html', 'html/*.js', 'assets/favicon/*']) .pipe(gulp.dest(config.build)); gulp.src(['assets/logo.svg', 'service-worker.js']) .pipe(gulp.dest(config.build)); diff --git a/html/embed.html b/html/embed.html new file mode 100644 index 00000000..a0113c3b --- /dev/null +++ b/html/embed.html @@ -0,0 +1,6 @@ + + + +