Move vendor libraries to /vendors folder and exclude from LGTM

This commit is contained in:
John McLear 2021-02-21 15:07:39 +00:00 committed by GitHub
parent 0bb3e65020
commit 1b8cd0747d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 79 additions and 75 deletions

View file

@ -7,7 +7,7 @@ const helper = {};
const jsLibraries = {};
helper.init = (cb) => {
$.get('/static/js/jquery.js').done((code) => {
$.get('/static/js/vendors/jquery.js').done((code) => {
// make sure we don't override existing jquery
jsLibraries.jquery = `if(typeof $ === 'undefined') {\n${code}\n}`;

View file

@ -9,8 +9,8 @@
<div id="mocha"></div>
<div id="iframe-container"></div>
<script src="/static/js/jquery.js"></script>
<script src="/static/js/browser.js"></script>
<script src="/static/js/vendors/jquery.js"></script>
<script src="/static/js/vendors/browser.js"></script>
<script src="lib/underscore.js"></script>
<script src="lib/mocha.js"></script>
@ -20,7 +20,7 @@
<script src="helper.js"></script>
<script src="helper/methods.js"></script>
<script src="helper/ui.js"></script>
<script src="specs_list.js"></script>
<script src="runner.js"></script>
</html>