@tresjs/core 5.0.1 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@tresjs/core",
3
3
  "type": "module",
4
- "version": "5.0.1",
5
- "packageManager": "pnpm@10.17.0",
4
+ "version": "5.0.3",
6
5
  "description": "Declarative ThreeJS using Vue Components",
7
6
  "author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
8
7
  "license": "MIT",
@@ -22,7 +21,6 @@
22
21
  ".": {
23
22
  "types": "./dist/index.d.ts",
24
23
  "import": "./dist/tres.js",
25
- "require": "./dist/tres.js",
26
24
  "default": "./dist/tres.js"
27
25
  },
28
26
  "./components": {
@@ -39,7 +37,6 @@
39
37
  },
40
38
  "./*": "./*"
41
39
  },
42
- "main": "./dist/tres.js",
43
40
  "module": "./dist/tres.js",
44
41
  "types": "./dist/index.d.ts",
45
42
  "files": [
@@ -49,24 +46,6 @@
49
46
  "publishConfig": {
50
47
  "access": "public"
51
48
  },
52
- "scripts": {
53
- "dev": "pnpm --filter='./playground/vue' dev",
54
- "dev:nuxt": "pnpm --filter='./playground/nuxt' dev",
55
- "build": "vite build",
56
- "test": "vitest",
57
- "test:ci": "vitest run",
58
- "test:ui": "vitest --ui --coverage.enabled=true",
59
- "release": "release-it",
60
- "coverage": "vitest run --coverage",
61
- "lint": "eslint .",
62
- "lint:fix": "eslint . --fix",
63
- "typecheck": "vue-tsc --noEmit",
64
- "docs:dev": "pnpm --filter='./docs' dev",
65
- "docs:generate": "pnpm --filter='./docs' generate",
66
- "docs:prepare": "pnpm --filter='./docs' prepare",
67
- "docs:lint": "pnpm --filter='./docs' lint",
68
- "docs:typecheck": "pnpm --filter='./docs' typecheck"
69
- },
70
49
  "peerDependencies": {
71
50
  "three": ">=0.133",
72
51
  "vue": ">=3.4"
@@ -78,11 +57,7 @@
78
57
  "radashi": "^12.6.2"
79
58
  },
80
59
  "devDependencies": {
81
- "@release-it/conventional-changelog": "^10.0.0",
82
60
  "@stackblitz/sdk": "^1.11.0",
83
- "@tresjs/cientos": "5.0.0-alpha.1",
84
- "@tresjs/eslint-config": "^1.4.0",
85
- "@tresjs/leches": "1.0.0-next.0",
86
61
  "@types/three": "^0.180.0",
87
62
  "@typescript-eslint/eslint-plugin": "^8.42.0",
88
63
  "@typescript-eslint/parser": "^8.42.0",
@@ -99,7 +74,6 @@
99
74
  "kolorist": "^1.8.0",
100
75
  "ohmyfetch": "^0.4.21",
101
76
  "pathe": "^2.0.3",
102
- "release-it": "^19.0.4",
103
77
  "rollup-plugin-analyzer": "^4.0.0",
104
78
  "rollup-plugin-copy": "^3.5.0",
105
79
  "rollup-plugin-visualizer": "^6.0.3",
@@ -116,24 +90,32 @@
116
90
  "vite-svg-loader": "^5.1.0",
117
91
  "vitepress": "1.6.4",
118
92
  "vitest": "3.2.4",
119
- "vue": "3.5.21",
93
+ "vue": "^3.5.21",
120
94
  "vue-demi": "^0.14.10",
121
- "vue-tsc": "^3.0.6"
95
+ "vue-tsc": "^3.0.7",
96
+ "@tresjs/eslint-config": "1.4.1",
97
+ "@tresjs/leches": "1.0.0"
122
98
  },
123
- "pnpm": {
124
- "onlyBuiltDependencies": [
125
- "better-sqlite3"
126
- ],
127
- "ignoredBuiltDependencies": [
128
- "vue-demi"
129
- ],
130
- "overrides": {
131
- "ipx": "^3.0.3",
132
- "vue": "^3.5.21",
133
- "vue-router": "^4.5.1"
134
- }
99
+ "nx": {
100
+ "implicitDependencies": [
101
+ "!@tresjs/core-*"
102
+ ]
135
103
  },
136
- "resolutions": {
137
- "unimport": "4.1.1"
104
+ "scripts": {
105
+ "dev": "pnpm --filter='./playground/vue' dev",
106
+ "dev:nuxt": "pnpm --filter='./playground/nuxt' dev",
107
+ "build": "vite build",
108
+ "test": "vitest",
109
+ "test:ci": "vitest run",
110
+ "test:ui": "vitest --ui --coverage.enabled=true",
111
+ "coverage": "vitest run --coverage",
112
+ "lint": "eslint .",
113
+ "lint:fix": "eslint . --fix",
114
+ "typecheck": "vue-tsc --noEmit",
115
+ "docs:dev": "pnpm --filter='./docs' dev",
116
+ "docs:generate": "pnpm --filter='./docs' generate",
117
+ "docs:prepare": "pnpm --filter='./docs' prepare",
118
+ "docs:lint": "pnpm --filter='./docs' lint",
119
+ "docs:typecheck": "pnpm --filter='./docs' typecheck"
138
120
  }
139
- }
121
+ }
package/types.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './dist/src/types/index.js'
1
+ export * from '../../dist/src/types/index.js'
package/utils.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './dist/src/utils/index.js'
1
+ export * from '../../dist/src/utils/index.js'
package/README.md DELETED
@@ -1,99 +0,0 @@
1
- ![repo-banner](https://github.com/Tresjs/.github/raw/main/.github/tres-banner.png)
2
-
3
- <p align="center">
4
- <a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/v/@tresjs/core?color=%2382DBCA&logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjY4NTQgMy40MjkxNkMxMi4wNzM4IDIuNzgxODIgMTMuMDEyIDIuNzgxODIgMTMuNDAwNCAzLjQyOTE1TDE5LjE3NzEgMTMuMDU2OUMxOS41NzcgMTMuNzIzNSAxOS4wOTY5IDE0LjU3MTQgMTguMzE5NiAxNC41NzE0SDYuNzY2MjRDNS45ODg5NCAxNC41NzE0IDUuNTA4ODMgMTMuNzIzNSA1LjkwODc1IDEzLjA1NjlMMTEuNjg1NCAzLjQyOTE2WiIgZmlsbD0iIzgyREJDNSIvPgo8cGF0aCBkPSJNMTUuNjg1NyAxMC41NDI5QzE1LjY4NTcgOS45OTA1OSAxNi4xMzM0IDkuNTQyODggMTYuNjg1NyA5LjU0Mjg4SDI2QzI2LjU1MjIgOS41NDI4OCAyNyA5Ljk5MDU5IDI3IDEwLjU0MjlWMTkuODU3MkMyNyAyMC40MDk0IDI2LjU1MjIgMjAuODU3MiAyNiAyMC44NTcySDE2LjY4NTdDMTYuMTMzNCAyMC44NTcyIDE1LjY4NTcgMjAuNDA5NCAxNS42ODU3IDE5Ljg1NzJWMTAuNTQyOVoiIGZpbGw9IiM0RjRGNEYiLz4KPGNpcmNsZSBjeD0iMTYiIGN5PSIyMiIgcj0iNiIgZmlsbD0iI0VGQUMzNSIvPgo8L3N2Zz4K" alt="npm package"></a>
5
- <a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/dm/@tresjs/core?color=%2382DBCA" alt="npm downloads"></a>
6
- <a href="https://discord.gg/UCr96AQmWn"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
7
- <a href="https://app.netlify.com/sites/tresjs-docs/deploys"><img src="https://api.netlify.com/api/v1/badges/5a59eb67-67f1-4c9d-bdf4-2f9a5899a531/deploy-status" alt="netlify status"></a>
8
- </p>
9
-
10
- # TresJS `@tresjs/core`
11
-
12
- > Declarative ThreeJS using Vue Components
13
-
14
- - 💡 Build 3D scene as they were Vue components
15
- - ⚡️ Powered by Vite
16
- - 🥰 It brings all the updated features of ThreeJS right away regardless the version
17
- - 🦾 Fully Typed
18
-
19
- Tres (Spanish word for "three", pronounced `/tres/` ) is a way of creating ThreeJS scenes with Vue components in a declarative fashion.
20
-
21
- It's build on-top of a [Vue Custom Renderer](https://vuejs.org/api/custom-renderer.html#createrenderer) and it's powered by Vite.
22
-
23
- The goal is to provide the Vue's community an easy way of building 3D scenes with Vue, always up to date with the latest ThreeJS features and with 0-to-none maintenance.
24
-
25
- ## Installation
26
-
27
- ```bash
28
- pnpm install @tresjs/core three
29
- ```
30
-
31
- ## Docs
32
-
33
- Checkout the [docs](https://tresjs.org)
34
-
35
- ## Demos
36
-
37
- - [Stackblitz Collection](https://stackblitz.com/@alvarosabu/collections/tresjs)
38
-
39
- ## Ecosystem
40
-
41
- | Package | Version |
42
- | --------------------------- | :------------------------------------------------------------------------------------------------- |
43
- | [Tres](https://github.com/TresJS/tres) | ![tres version](https://img.shields.io/npm/v/@tresjs/core/latest.svg?label=%20&color=%2382DBCA) |
44
- | [Cientos](https://github.com/TresJS/cientos) | ![cientos version](https://img.shields.io/npm/v/@tresjs/cientos/latest.svg?label=%20&color=%23f19b00) |
45
- | [Post-processing](https://github.com/TresJS/post-processing) | ![post-processing version](https://img.shields.io/npm/v/@tresjs/post-processing/latest.svg?label=%20&color=ff7bac) |
46
- | [Nuxt](https://github.com/TresJS/nuxt) | ![nuxt version](https://img.shields.io/npm/v/@tresjs/nuxt/latest.svg?label=%20&color=4f4f4f&logo=nuxt.js) |
47
- | [TresLeches 🍰](https://github.com/TresJS/leches) | ![tresleches version](https://img.shields.io/npm/v/@tresjs/leches/latest.svg?label=%20&color=ffffff) |
48
-
49
- ## Contribution
50
-
51
- We are open to contributions, please read the [contributing guide](/CONTRIBUTING.md) to get started.
52
-
53
- ### Setup
54
-
55
- ```
56
- pnpm install --shamefully-hoist
57
- ```
58
-
59
- ### Playground
60
-
61
- To run the small playground
62
-
63
- ```
64
- pnpm run playground
65
- ```
66
-
67
- ### Build lib
68
-
69
- To build the core as library mode just use
70
-
71
- ```
72
- pnpm run build
73
- ```
74
-
75
- ### Docs
76
-
77
- To run de docs in dev mode
78
-
79
- ```bash
80
- pnpm run docs:dev
81
- ```
82
-
83
- To build them
84
-
85
- ```bash
86
- pnpm run docs:build
87
- ```
88
-
89
- ## License
90
-
91
- [MIT](/LICENSE)
92
-
93
- ## Sponsors
94
-
95
- <p align="center">
96
- <a target="_blank" href="https://github.com/sponsors/tresjs">
97
- <img alt="sponsors" src="./sponsorkit/sponsors.png">
98
- </a>
99
- </p>