Coder Social home page Coder Social logo

Help wanted :) about tween.js HOT 7 CLOSED

mikebolt avatar mikebolt commented on May 23, 2024
Help wanted :)

from tween.js.

Comments (7)

mk965 avatar mk965 commented on May 23, 2024 1

@mikebolt @trusktr

I really want to join. Please feel free to contact me if I can be of help.

from tween.js.

trusktr avatar trusktr commented on May 23, 2024

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.

cuixiping avatar cuixiping commented on May 23, 2024

I like this lib and may contribute some code some time. I am using tweenjs for my games.

from tween.js.

trusktr avatar trusktr commented on May 23, 2024

@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.

cuixiping avatar cuixiping commented on May 23, 2024

@trusktr
As my test, similar to #659 , but have some differences.

  • rename tween.esm.js to tween.mjs
  • rename tween.cjs.js to tween.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 then npm 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.

trusktr avatar trusktr commented on May 23, 2024

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.

trusktr avatar trusktr commented on May 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.