From 1b58a27e9dbb2d3763a17258f403290bcb19d0e7 Mon Sep 17 00:00:00 2001 From: Michael Dougall <6801309+itsdouges@users.noreply.github.com> Date: Tue, 5 Mar 2024 21:46:21 +1100 Subject: [PATCH] chore: add triplex config --- .triplex/config.json | 15 +++++++++++++++ .triplex/provider.tsx | 16 ++++++++++++++++ tsconfig.json | 21 +++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .triplex/config.json create mode 100644 .triplex/provider.tsx create mode 100644 tsconfig.json diff --git a/.triplex/config.json b/.triplex/config.json new file mode 100644 index 0000000..c7cb8a6 --- /dev/null +++ b/.triplex/config.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://triplex.dev/config.schema.json", + "components": ["../src/components/**/*.(j|t)sx"], + "files": ["../src/components/**/*.(j|t)sx"], + "provider": "./provider.tsx", + "assetsDir": "models", + "rendererAttributes": { + "gl": { + "antialias": false, + "stencil": false, + "depth": false, + "powerPreference": "high-performance" + } + } +} diff --git a/.triplex/provider.tsx b/.triplex/provider.tsx new file mode 100644 index 0000000..dd21c6a --- /dev/null +++ b/.triplex/provider.tsx @@ -0,0 +1,16 @@ +import React from "react"; +import { Physics } from "@react-three/rapier"; + +export default function Provider({ + children, + physicsDisabled = true, +}: { + children: React.ReactNode; + physicsDisabled?: boolean; +}) { + return ( + + {children} + + ); +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..8462d84 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "allowJs": true, + "baseUrl": ".", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "incremental": true, + "isolatedModules": true, + "jsx": "preserve", + "lib": ["dom", "dom.iterable", "es2022"], + "module": "esnext", + "moduleResolution": "node", + "noEmit": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "strict": true, + "types": ["@react-three/fiber"] + }, + "exclude": ["node_modules"], + "include": ["."] +}