From b822a255c054fa2f8564d69d2232f3118a9ad43d Mon Sep 17 00:00:00 2001 From: integrating-magic Date: Tue, 16 Jul 2024 10:40:10 -0400 Subject: [PATCH] added additional node scripts --- .DS_Store | Bin 8196 -> 8196 bytes jsDev.fmp12 | Bin 716800 -> 724992 bytes package.json | 8 ++++++-- scripts/start-fm-dev.js | 14 ++++++++++++++ widget.config.js | 1 + 5 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 scripts/start-fm-dev.js diff --git a/.DS_Store b/.DS_Store index 3cc4b06fe84d734722163c4f1e8ce4c8504edcb7..e1850ba8d8eff658bb98cf73e26a8e9835367d0c 100644 GIT binary patch delta 97 zcmZp1XmQwJCBU4K%R1RsK!PoCiIU#ECzGQEq+rZy0coa!g2^)k_A&mSyjxICC^z55 gB`GIAiGhKEL)Yqn22lA|^{pdAFdPP;S19 hOHxjL5(5JRhx7g&T|nhK1r>n8DQLo*cM5v*0RVlQB6R=& diff --git a/jsDev.fmp12 b/jsDev.fmp12 index af88833bebc321b5a4568b99c94e9d39665c5d8e..e324820ecdbb42987864f7eb27a3310c3b95b096 100755 GIT binary patch delta 2622 zcmZ`*3s6+o89wKpb02&6!QH!yEGx)a!OWrrwpHT;l`FFtq$tEjC8oBH*49dWO>i2) z!D~@LJ7Xl<=BUvQ#?)yiXj_um1)et*bbhM6R#-4K*D4OY= zJ&*m*f4={}XTSeDYbK_dZ3S^f5t7F{hTpn}&bXY|5eHDc4&2G(F~1gxCS(Kw0IQJ5 z`o&0L{cq2!tbdVgC1OH7?`HGjgqzJBe+AriNkTp^urZ$4Hqkbm?r6}O(k9Piw)YtB z>n0IQglgB-Z4g9xvm_OQKMD`fZs}6&X_7AwEz>JbEz?^=1majDDRDtn4bQCKP+PaL zt~T~5c?Y7{{?JqfO11U1o9nj3{t!BnwP)7_h7O!-fBt}vE?Qf~NB+2DFHP=pLdS;M zjT_l#%a1x{<@UN-Bkm44B5RT`2e@xt?eH6-f@KU_VmXmXSOEvVA8U^UuoE1vj4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Tl>q0JRvJ%5GTdX55z}~iA&fbdnxH7mhHL`ZFaMKS!K}S zGiai9qaWu$fBdDd9a@7G9Ke$VS?}P7>!jcN3JWS1g zEK_tD|HYZ3NE!@gs#poqB1uTs0`p5l;{}mkY8KN+U|lI#M<4boEQhHa+G5aM@M}0Z zPvCHgdo=n$5!1*OTsX_V@wr9?KoSUCqwGHswgncabc|C7q%0i(a~}`gb_HjLQ=2_0 zuhc$I$|1GIlTtkoJ$41>O-RY%h_`NIGH<$|MVvtU7#wtPO;PMJdb!Q8LObwB(tiQ5 C>W2*g delta 1172 zcmZ8fU1(fI6rPzgvom*Yw!7VI{><9UrdE^Gri&Q0#G0!pn9ABHNTU*oEz~qilU4#s zD)pKck_VNxR~db<)FO(IhTU$nH-hNaSj5(c)qsWu%8I59O`u7j(HFtlq(X4uJ9o~U zbNSBC=bpLWEpAN|b!8rmLeYi(>BEd4mpwI)-T%w{qU1YBF_$3Bv!m@R*xQ>d_l_i$etd$evJbDg?8SE1X>c#QKAyo> z=rP_g%sa3F@p%XE?pmlt!TD>7DyF(rP=O+x;0FW^yHx+4g9`uW9GhkOyRX^bI=&>k zbk#SksVZogfnY|kB-nPGwHjE0Y%yz36DWd>-7|6`R3 zTzzXvUiG(3z-Fi@$!4d)Bc`z>Mbt0{nA7iEg4n5T!guoUOGwV&UJY;)IC>E}b^m3E z`6mi66p{;Z6B^+J=Dc`g)K3(lPvUwVpNBgAo=+|Rhnw)s7BYLokA`WE;CuC}f5`j% zwjitOux}dtMpqLx{*6TO@TsxmZ8mhF+)4` zE9dDLu3X2`lBM0$KQKX0^GsqF_IaMtu+@o-dQkAvkd7AU4J@@P(5w3WDJsf&2gfic zECE7B=BdD8sn1Or#_P?Fl^b2+xxA9C5d z+ap%eEOYXXN;#KiZ}GFN#@~@ 0.5%, last 2 versions, not dead", "devDependencies": { diff --git a/scripts/start-fm-dev.js b/scripts/start-fm-dev.js new file mode 100644 index 0000000..6a26456 --- /dev/null +++ b/scripts/start-fm-dev.js @@ -0,0 +1,14 @@ +#!/usr/bin/env node +const config = require("../widget.config"); + +const { widgetName, startDevScript, file, server } = config; + +const open = require("open"); +const path = require("path"); + +const fileUrl = `fmp://${server}/${file}?script=${startDevScript}¶m=turnOn`; + +// const thePath = path.join(__dirname, "../", "dist", "index.html"); +// const params = { widgetName, thePath }; +const url = fileUrl; +open(url); diff --git a/widget.config.js b/widget.config.js index 412ff0d..4234911 100644 --- a/widget.config.js +++ b/widget.config.js @@ -4,4 +4,5 @@ module.exports = { file: "jsDev", uploadScript: "UploadToHTML", reloadScript: "Load Widget", + startDevScript: "Set to Dev Mode", };