Update to Snowpack 3
This commit is contained in:
1
build/javascript/.gitignore
vendored
Normal file
1
build/javascript/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build/
|
||||||
2994
build/javascript/package-lock.json
generated
2994
build/javascript/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -20,25 +20,27 @@
|
|||||||
"postcss-cli": "^9.0.1"
|
"postcss-cli": "^9.0.1"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"install": [
|
"packageOptions": {
|
||||||
"video.js/core.js",
|
"knownEntrypoints": [
|
||||||
"@videojs/themes/fantasy/*",
|
"video.js/core.js",
|
||||||
"@videojs/http-streaming/dist/videojs-http-streaming.min.js",
|
"@videojs/themes/fantasy/*",
|
||||||
"video.js/dist/video-js.min.css",
|
"@videojs/http-streaming/dist/videojs-http-streaming.min.js",
|
||||||
"@joeattardi/emoji-button",
|
"video.js/dist/video-js.min.css",
|
||||||
"htm",
|
"@joeattardi/emoji-button",
|
||||||
"preact",
|
"htm",
|
||||||
"mark.js/dist/mark.es6.min.js",
|
"preact",
|
||||||
"tailwindcss/dist/tailwind.min.css",
|
"mark.js/dist/mark.es6.min.js",
|
||||||
"micromodal/dist/micromodal.min.js"
|
"tailwindcss/dist/tailwind.min.css",
|
||||||
],
|
"micromodal/dist/micromodal.min.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
"alias": {
|
"alias": {
|
||||||
"video.js": "video.js/core.js"
|
"video.js": "video.js/core.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "npm install && npx snowpack@2.18.4 install && cp node_modules/video.js/dist/video-js.min.css web_modules/videojs && rm -rf ../../webroot/js/web_modules && cp -R web_modules ../../webroot/js"
|
"build": "rm -rf build && npx snowpack build && rm -rf ../../webroot/js/web_modules && cp -R build/web_modules ../../webroot/js"
|
||||||
},
|
},
|
||||||
"author": "Owncast",
|
"author": "Owncast",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
2
webroot/js/web_modules/htm.js
vendored
2
webroot/js/web_modules/htm.js
vendored
@@ -1,3 +1,3 @@
|
|||||||
var n=function(t,s,r,e){var u;s[0]=0;for(var h=1;h<s.length;h++){var p=s[h++],a=s[h]?(s[0]|=p?1:2,r[s[h++]]):s[++h];3===p?e[0]=a:4===p?e[1]=Object.assign(e[1]||{},a):5===p?(e[1]=e[1]||{})[s[++h]]=a:6===p?e[1][s[++h]]+=a+"":p?(u=t.apply(a,n(t,a,r,["",null])),e.push(u),a[0]?s[0]|=2:(s[h-2]=0,s[h]=u)):e.push(a);}return e},t=new Map;function htm_module(s){var r=t.get(this);return r||(r=new Map,t.set(this,r)),(r=n(this,r.get(s)||(r.set(s,r=function(n){for(var t,s,r=1,e="",u="",h=[0],p=function(n){1===r&&(n||(e=e.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?h.push(0,n,e):3===r&&(n||e)?(h.push(3,n,e),r=2):2===r&&"..."===e&&n?h.push(4,n,0):2===r&&e&&!n?h.push(5,0,!0,e):r>=5&&((e||!n&&5===r)&&(h.push(r,0,e,s),r=6),n&&(h.push(r,n,0,s),r=6)),e="";},a=0;a<n.length;a++){a&&(1===r&&p(),p(a));for(var l=0;l<n[a].length;l++)t=n[a][l],1===r?"<"===t?(p(),h=[h],r=3):e+=t:4===r?"--"===e&&">"===t?(r=1,e=""):e=t+e[0]:u?t===u?u="":e+=t:'"'===t||"'"===t?u=t:">"===t?(p(),r=1):r&&("="===t?(r=5,s=e,e=""):"/"===t&&(r<5||">"===n[a][l+1])?(p(),3===r&&(h=h[0]),r=h,(h=h[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(p(),r=2):e+=t),3===r&&"!--"===e&&(r=4,h=h[0]);}return p(),h}(s)),r),arguments,[])).length>1?r:r[0]}
|
var n=function(t,s,r,e){var u;s[0]=0;for(var h=1;h<s.length;h++){var p=s[h++],a=s[h]?(s[0]|=p?1:2,r[s[h++]]):s[++h];3===p?e[0]=a:4===p?e[1]=Object.assign(e[1]||{},a):5===p?(e[1]=e[1]||{})[s[++h]]=a:6===p?e[1][s[++h]]+=a+"":p?(u=t.apply(a,n(t,a,r,["",null])),e.push(u),a[0]?s[0]|=2:(s[h-2]=0,s[h]=u)):e.push(a);}return e},t=new Map;function htm_module(s){var r=t.get(this);return r||(r=new Map,t.set(this,r)),(r=n(this,r.get(s)||(r.set(s,r=function(n){for(var t,s,r=1,e="",u="",h=[0],p=function(n){1===r&&(n||(e=e.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?h.push(0,n,e):3===r&&(n||e)?(h.push(3,n,e),r=2):2===r&&"..."===e&&n?h.push(4,n,0):2===r&&e&&!n?h.push(5,0,!0,e):r>=5&&((e||!n&&5===r)&&(h.push(r,0,e,s),r=6),n&&(h.push(r,n,0,s),r=6)),e="";},a=0;a<n.length;a++){a&&(1===r&&p(),p(a));for(var l=0;l<n[a].length;l++)t=n[a][l],1===r?"<"===t?(p(),h=[h],r=3):e+=t:4===r?"--"===e&&">"===t?(r=1,e=""):e=t+e[0]:u?t===u?u="":e+=t:'"'===t||"'"===t?u=t:">"===t?(p(),r=1):r&&("="===t?(r=5,s=e,e=""):"/"===t&&(r<5||">"===n[a][l+1])?(p(),3===r&&(h=h[0]),r=h,(h=h[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(p(),r=2):e+=t),3===r&&"!--"===e&&(r=4,h=h[0]);}return p(),h}(s)),r),arguments,[])).length>1?r:r[0]}
|
||||||
|
|
||||||
export { htm_module as default };
|
export default htm_module;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
webroot/js/web_modules/preact.js
vendored
4
webroot/js/web_modules/preact.js
vendored
File diff suppressed because one or more lines are too long
2
webroot/js/web_modules/videojs/core.js
vendored
2
webroot/js/web_modules/videojs/core.js
vendored
@@ -30771,4 +30771,4 @@ videojs.addLanguage('en', {
|
|||||||
|
|
||||||
var core = videojs;
|
var core = videojs;
|
||||||
|
|
||||||
export { core as default };
|
export default core;
|
||||||
|
|||||||
Reference in New Issue
Block a user