jekyll: move jekyll back to root, but simpler setup, exclude via _config.yml

app: bundle jekyll docs into app, add 'yarn run docs' to build
ui: add back/forward arrows for app only, adjust responsiveness for app, add IS_APP flag injected via preload
ui: add animated logo, friendly message on empty replay frame
app: improve serve logic:
- serve static files from static root
- serve replay from http localhost instead to avoid proxying https for remote requests
- serve local lookup from http prefix also
- catch any fallthrough from replay as 404
- add timestamp to response channels to ensure uniqness
This commit is contained in:
Ilya Kreymer
2020-05-21 18:49:26 -07:00
parent da1e5c03df
commit 220d14aea3
29 changed files with 528 additions and 304 deletions
+15 -7
View File
@@ -11,10 +11,10 @@
"bulma": "^0.8.2",
"lit-element": "^2.3.1",
"marked": "^1.0.0",
"mime-types": "^2.1.27",
"pretty-bytes": "^5.3.0",
"register-service-worker": "^1.7.1",
"wabac": "github:https://github.com/webrecorder/wabac.js",
"wombat": "github:https://github.com/webrecorder/wombat"
"wabac": "github:https://github.com/webrecorder/wabac.js"
},
"devDependencies": {
"css-loader": "^3.5.3",
@@ -39,7 +39,9 @@
"pack": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --publish never",
"dist": "electron-builder",
"start-electron": "NODE_ENV=development electron ./dist/electron.js",
"build-electron": "yarn run build && yarn run pack"
"build-electron": "yarn run build && yarn run pack",
"docs": "bundle exec jekyll build",
"all": "yarn run build && yarn run docs && yarn run pack"
},
"build": {
"afterSign": "build/notarize.js",
@@ -48,12 +50,18 @@
"appId": "net.webrecorder.replaywebpage",
"artifactName": "${name}-${version}.${ext}",
"files": [
"!**/*",
"!**/node_modules/**/*",
"package.json",
"dist/*.js",
"docs/*.js",
"docs/index.html"
"*.js",
"*.html",
{
"from": "_site/docs",
"to": "docs"
},
{
"from": "_site/assets",
"to": "assets"
}
],
"extraResources": [
"plugins"