Stand-alone version of threejs/examples/jsm written in Typescript & built for ESM & CJS.
npm install three-stdlib
// Export collection
import * as STDLIB from 'three-stdlib'
// Flatbundle
import { OrbitControls, ... } from 'three-stdlib'
three/examples
are usually regarded as something that you copy/paste into your project and adapt to your needs. That's not how people use it, and this has caused numerous issues in the past.
But most importantly, allowing more people that use and rely on these primitives to hold a little stake, and to share the weight of maintaining it.
yarn install
to install dependenciesBe sure your commit messages follow this specification: https://conventionalcommits.org/en/v1.0.0-beta.4
We use semantic-release-action
to deploy the package. Because of this only certain commits will trigger the action of creating a release:
chore
will not release a new versionfix:
will create a 0.0.x
versionfeat:
will create a 0.x.0
versionBREAKING CHANGE:
will create a x.0.0
version