Migrate tween.js to npm package

This commit is contained in:
Andrei Andreev 2022-02-05 21:14:04 +03:00
parent d8896dfd0c
commit 521d1e24c9
8 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,5 @@
import TWEEN from "tween.js";
Vue.component("blob-snowflake", {
props: {
bounds: Object
@ -83,4 +85,4 @@ Vue.component("blob-snowflake", {
},
template:
`<text class="o-blob-snowflake"></text>`
});
});

View File

@ -1,3 +1,5 @@
import TWEEN from "tween.js";
Vue.component("tachyon-particle", {
props: {
bounds: {

View File

@ -1,6 +1,7 @@
import { playFabLogin } from "./core/playfab.js";
import { DC } from "./core/constants.js";
import { SpeedrunMilestones } from "./core/speedrun.js";
import TWEEN from "tween.js";
if (GlobalErrorHandler.handled) {
throw new Error("Initialization failed");

5
package-lock.json generated
View File

@ -10073,6 +10073,11 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"tween.js": {
"version": "16.6.0",
"resolved": "https://registry.npmjs.org/tween.js/-/tween.js-16.6.0.tgz",
"integrity": "sha1-c5EEyTNsxPEe5T+c587eUeZyNiQ="
},
"type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",

View File

@ -10,6 +10,7 @@
"break_infinity.js": "^1.3.0",
"core-js": "^3.6.5",
"gamma": "^1.0.0",
"tween.js": "^16.6.0",
"vue": "^2.6.11"
},
"devDependencies": {

View File

@ -73,7 +73,6 @@
<script type="text/javascript" src="lib/deepmerge.js"></script>
<script type="text/javascript" src="lib/Sortable.min.js"></script>
<script type="text/javascript" src="lib/vuedraggable.umd.min.js"></script>
<script type="text/javascript" src="lib/Tween.min.js"></script>
<script type="text/javascript" src="lib/vue-split-pane.min.js"></script>
<script type="text/javascript" src="lib/chevrotain.min.js"></script>
<script type="text/javascript" src="lib/codemirror.js"></script>

File diff suppressed because one or more lines are too long

View File

@ -110,7 +110,6 @@
<script type="text/javascript" src="lib/vue.js"></script>
<script type="text/javascript" src="lib/v-tooltip.min.js"></script>
<script type="text/javascript" src="public/lib/vuedraggable.js"></script>
<script type="text/javascript" src="lib/Tween.min.js"></script>
<script type="text/javascript" src="javascripts/DragDropTouch.js"></script>
<script type="text/javascript" src="javascripts/longpress.js"></script>