From 209934d4c3878bbc14592cbd4b8c3b25ec52a659 Mon Sep 17 00:00:00 2001 From: brandonocasey Date: Tue, 7 Jan 2020 16:34:44 -0500 Subject: [PATCH 1/6] chore: update netlify/stats to show bug --- index.html | 1 + scripts/netlify.js | 16 +++++++++------- utils/stats/index.html | 18 ++++++++++-------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 2f2b3bb2f..e2832a90b 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,7 @@
  • Run unit tests in browser.
  • Read generated docs.
  • Browse Examples
  • +
  • Stats
  • diff --git a/scripts/netlify.js b/scripts/netlify.js index 86f9fc996..3bd36d8dd 100644 --- a/scripts/netlify.js +++ b/scripts/netlify.js @@ -1,12 +1,14 @@ const path = require('path'); const sh = require('shelljs'); -const fs = require('fs'); - -const vjs = 'node_modules/video.js/dist/alt/video.core.js'; -const vjsCss = 'node_modules/video.js/dist/video-js.css'; -const eme = 'node_modules/videojs-contrib-eme/dist/videojs-contrib-eme.js'; const deployDir = 'deploy'; -const files = [vjs, vjsCss, eme]; + +const files = [ + 'node_modules/video.js/dist/video-js.css', + 'node_modules/video.js/dist/alt/video.core.js', + 'node_modules/videojs-contrib-eme/dist/videojs-contrib-eme.js', + 'node_modules/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels.js', + 'node_modules/d3/d3.min.js' +]; // cleanup previous deploy sh.rm('-rf', deployDir); @@ -20,5 +22,5 @@ files // copy over files, dist, and html files files -.concat('dist', 'index.html', 'index.min.html') +.concat('dist', 'index.html', 'index.min.html', 'utils') .forEach((file) => sh.cp('-r', file, path.join(deployDir, file))); diff --git a/utils/stats/index.html b/utils/stats/index.html index ea3173757..6597ae974 100644 --- a/utils/stats/index.html +++ b/utils/stats/index.html @@ -20,7 +20,7 @@ - +