From 72e05d9cea878ca4e2315dd6acced09556aabbad Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Fri, 31 May 2019 11:06:32 +0200 Subject: [PATCH] Minify subworker polyfill and add blockstack.js --- Makefile | 3 +++ src/Javascript/Workers/brain.js | 2 +- src/Static/Html/Application.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 547750f4..710a1ef2 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ doc-tests: install: @echo "> Downloading & minifying dependencies" @mkdir -p $(VENDOR_DIR) + @curl https://unpkg.com/blockstack@19.1.0/dist/blockstack.js -o $(VENDOR_DIR)/blockstack.min.js @curl https://unpkg.com/lunr@2.3.6/lunr.js -o $(VENDOR_DIR)/lunr.js @curl https://unpkg.com/remotestoragejs@1.2.2/release/remotestorage.js -o $(VENDOR_DIR)/remotestorage.min.js @curl https://unpkg.com/fast-text-encoding@1.0.0/text.min.js -o $(VENDOR_DIR)/text-encoding-polyfill.min.js @@ -74,8 +75,10 @@ install: @curl https://raw.githubusercontent.com/dmihal/Subworkers/6c3a57953615b26cd82fd39894b947f2b954fcfd/subworkers.js -o $(VENDOR_DIR)/subworkers-polyfill.js @# Minify non-minified dependencies + @closure-compiler --js=$(VENDOR_DIR)/subworkers-polyfill.js --js_output_file=$(VENDOR_DIR)/subworkers-polyfill.min.js @closure-compiler --js=$(VENDOR_DIR)/lunr.js --js_output_file=$(VENDOR_DIR)/lunr.min.js @closure-compiler --js=$(VENDOR_DIR)/pep.js --js_output_file=$(VENDOR_DIR)/pep.min.js + @rm $(VENDOR_DIR)/subworkers-polyfill.js @rm $(VENDOR_DIR)/lunr.js @rm $(VENDOR_DIR)/pep.js diff --git a/src/Javascript/Workers/brain.js b/src/Javascript/Workers/brain.js index de8b7eff..f36b9936 100644 --- a/src/Javascript/Workers/brain.js +++ b/src/Javascript/Workers/brain.js @@ -5,7 +5,7 @@ // This worker is responsible for everything non-UI. importScripts("/vendor/musicmetadata.min.js") -importScripts("/vendor/subworkers-polyfill.js") +importScripts("/vendor/subworkers-polyfill.min.js") importScripts("/brain.js") importScripts("/encryption.js") diff --git a/src/Static/Html/Application.html b/src/Static/Html/Application.html index f41c14bb..e1238259 100644 --- a/src/Static/Html/Application.html +++ b/src/Static/Html/Application.html @@ -85,7 +85,7 @@ - + -- knotmirror 0.0.1