Search the Community
Showing results for tags 'shockinglygreen'.
-
pnpm SOLUTION: pnpm with gsap shockingly green (sharing findings)
evomedia.lt posted a topic in GSAP
This post is not a question or help request, just sharing findings with the community who might be having same issues as we do with pnpm and gsap. Problem For a long time we've been struggling with pnpm installs of gsap shockingly green. The issue stems from how pnpm handles private packages and its package alias resolution. On first install pnpm seems to read the proper alias when installing via gsap@npm:@gsap/shockingly however all further pnpm install commands seem to look in to a lockfile and only read the gsap bit then try to resolve it back to non shockingly package which leads to both - integrity check failure and in some cases reverting shockingly package back in to normal gsap package, or corrupting the gsap package in general rendering it unreachable from code. We've been looking for solutions to this and this forum has some threads on the topic, however there's no concrete solutions other than downloading the package and installing it manually or pruning pnpm before each install... Since pnpm v10 it's possible to overtake and modify the package resolution which was what let us come up with a way to bypass the pnpm resolution and make it work with gsap. Solution To suppress the failure on package integrity checks and make sure the package is always authorized the .npmrc file should look like this: .npmrc strict-store-pkg-content-check=false always-auth=true //npm.greensock.com/:_authToken=YOUR_AUTH_CODE @gsap:registry=https://npm.greensock.com To ovveride pnpm's tries to fall back to free gsap version instead of shockingly version add .pnpmfile.cjs next to where package.json is. .pnpmfile.cjs function readPackage(pkg) { if (pkg.name === 'gsap') { pkg.name = '@gsap/shockingly'; } return pkg; } module.exports = { hooks: { readPackage, }, }; If you've found a better way to deal with it, please share it. 😄 -
Hi all, how can I install the GSAP "ShockinglyGreen" package with Webpack-Encore? I mean how to get the +PLUS library in my node_modules with yarn or npm? Thank you
- 1 reply
-
- installing gsap
- npm
-
(and 2 more)
Tagged with:
-
Any clue on how to enable the throwProps plugin found in the Shockingly Green library set of Greensock. The momentum scrolling in the feature found on this site works exactly the way it should on iOS http://greensock.com/draggable The scrolling example I've attached has no momentum or inertia when viewing on an iOS device. Ive easily been able to get other libraries to work with no hick-ups but this scroller feature has been bugging me. I'm sure it's something super simple and I'm just overlooking. The current libraries i'm calling are Draggable, Throwprops, TweenMax. Using Edge Animate 2014.1.1 Any thoughts? [edit: files removed that included bonus plugins]
- 6 replies
-
- shockinglygreen
- edgeanimate
-
(and 3 more)
Tagged with: