Creating separate exports file

This commit is contained in:
Jonathan Putney
2019-11-18 13:45:59 -05:00
parent bbc5af424e
commit 28e3279830
5 changed files with 18 additions and 6 deletions

11
index.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Page</title>
<script src="dist/scorm-again.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@@ -61,5 +61,3 @@ export default class AICC extends Scorm12API {
this.nav = newAPI.nav; this.nav = newAPI.nav;
} }
} }
window.AICC = AICC;

View File

@@ -292,5 +292,3 @@ export default class Scorm12API extends BaseAPI {
} }
} }
} }
window.Scorm12API = Scorm12API;

View File

@@ -523,5 +523,3 @@ export default class Scorm2004API extends BaseAPI {
} }
} }
} }
window.Scorm2004API = Scorm2004API;

7
src/exports.js Normal file
View File

@@ -0,0 +1,7 @@
import Scorm2004API from './Scorm2004API';
import Scorm12API from './Scorm12API';
import AICC from './AICC';
window.Scorm12API = Scorm12API;
window.Scorm2004API = Scorm2004API;
window.AICC = AICC;