Comments (7)
I really want to join. Please feel free to contact me if I can be of help.
from tween.js.
Hi @mikebolt. I'm still here. If someone else is interested in collaborating, I can help ramping up and discussing. Please do reach out!
https://github.com/tweenjs/discuss hasn't been used in a long time
I went ahead and archived that after putting a link to https://github.com/tweenjs/tween.js/discussions there.
from tween.js.
I like this lib and may contribute some code some time. I am using tweenjs for my games.
from tween.js.
@cuixiping @mk965 would be glad to have some help. If any ideas, please let me know. The issues list has some existing things to do. We need to fix
with higher priority.
from tween.js.
@trusktr
As my test, similar to #659 , but have some differences.
- rename
tween.esm.js
totween.mjs
- rename
tween.cjs.js
totween.cjs
- modify
package.json
- set "main" as mjs file "dist/tween.mjs"
- remove "module" field
- modify file names in "exports" field
{
...
"type": "module",
"main": "dist/tween.mjs",
"types": "dist/tween.d.ts",
"exports": {
".": {
"import": "./dist/tween.mjs",
"require": "./dist/tween.cjs"
}
},
...
}
My testing steps:
- create a new folder and run
npm init
and thennpm install @tweenjs/tween.js
- create a
index.mjs
in this folder with content
import * as TWEEN from '@tweenjs/tween.js'
console.log(Object.keys(TWEEN));
- create a
index.cjs
in this folder with content
const TWEEN = require('@tweenjs/tween.js')
console.log(Object.keys(TWEEN));
- run
node ./index.mjs
works ok! - run
node ./index.cjs
works ok!
My node.js version is 16.16.0
from tween.js.
Hey thanks @cuixiping! Can you test with the latest? .cjs.js
was renamed to .cjs
, but everything else should just work.
The new examples in examples/example-projects/nodejs-commonjs/
and examples/example-projects/nodejs-esmodules/
verify being able to import into Node.js with either CommonJS or ESM format, with code similar to what you wrote with console.log
.
We did not need to rename the .esm.js
to .mjs
because .js
is already treated as ESM with type: module
in package.json. Maybe just tween.js
would be a nicer name, but decided not to make a breaking change for that.
from tween.js.
@cuixiping @mk965 added you both to the repo! Will close this for now.
If anyone else is interested to volunteer some time on this, aiming to move towards a feature like Timeline
for managing timelines with tweens after simplifying some things, please reach out!
from tween.js.
Related Issues (20)
- Make sure GitHub Pages is synced so that docs stay up to date. HOT 1
- `Timeline` feature HOT 1
- CJS entry point can't be loaded in Node.js HOT 4
- How to update .to value onRepeat? HOT 1
- Tween can't be restarted from onComplete callback. HOT 1
- [vite] Internal server error: Failed to resolve import "@tweenjs/tween.js/dist" from "src\index.ts". Does the file exist? HOT 3
- Simplify Tween, remove some stuff, make it easier to maintain. HOT 9
- Repeating value is incorrect over time HOT 1
- Proposal : Fix runs-on label - Directly specify Ubuntu 22.04 HOT 3
- Pausing a tween from a Group removes that tween from the Group's array. HOT 5
- [bug] calling tween.stop() does not cause tween.update() to return false
- CJS import broken HOT 2
- when time is negative, the result is bad HOT 4
- chain doesn't work HOT 3
- link to understanding-tweenjs not working :( HOT 1
- Types are not included with ModuleResolution `Node16` or `Bundler` options HOT 1
- [bug] yoyo has wrong value HOT 4
- Will the value not be automatically updated? HOT 1
- I want to rotate in the positive direction, but can't I click a button to rotate in the opposite direction? HOT 5
- ThreeJS Object3D flickers when tweening with yoyo turned on. HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tween.js.