2.1.1 • Published 1 month ago

@tresjs/nuxt v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Repo banner

@tresjs/nuxt

npm version npm downloads License Nuxt

Official Nuxt module for TresJS. Build 3D scenes as they were Vue components.

Features

  • 🤓 Auto-import components and composables from the TresJS ecosystem
  • TresCanvas client only, you don't need of adding .client to the component name or <ClientOnly />
  • All the DX Magic that comes with Nuxt ✨

Quick Setup

  1. Add @tresjs/nuxt dependency to your project
# Using pnpm
pnpm add -D @tresjs/nuxt

# Using yarn
yarn add --dev @tresjs/nuxt

# Using npm
npm install --save-dev @tresjs/nuxt
  1. Add @tresjs/nuxt to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: ["@tresjs/nuxt"],
});

That's it! You can now use @tresjs/nuxt in your Nuxt app ✨

If you want to use the any package from the TresJS ecosystem, you can install the packages you want to use and they will be auto-imported by the module 🧙🏼‍♂️.

# Using pnpm
pnpm add @tresjs/cientos @tresjs/post-processing

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
3.0.0-next.1

1 month ago

3.0.0-next.0

2 months ago

2.1.1

3 months ago

2.1.0

3 months ago

2.0.2

4 months ago

2.0.1-next.1

5 months ago

2.0.1

5 months ago

2.0.1-next.0

5 months ago

2.0.0

5 months ago

1.4.0-next.1

5 months ago

1.4.0-next.0

5 months ago

1.3.0

5 months ago

1.2.0

7 months ago

1.1.1

9 months ago

1.0.2

9 months ago

1.1.0

9 months ago

1.0.1

10 months ago

1.1.9

7 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.2.2

7 months ago

1.1.3

9 months ago

1.2.1

7 months ago

1.1.2

9 months ago

1.2.0-next.2

7 months ago

1.2.0-next.1

7 months ago

1.2.0-next.3

7 months ago

1.2.0-next.0

7 months ago

1.0.0

11 months ago

1.0.0-beta.2

11 months ago

1.0.0-beta.1

11 months ago

1.0.0-beta.0

11 months ago

1.0.0-alpha.2

11 months ago

1.0.0-alpha.1

11 months ago

1.0.0-alpha.0

11 months ago