Add tests for Theatre.js + popular setups in the ecosystem (#165)

This implements some basic infra for testing Theatre.js with popular setups such as npm/yarn/pnpm, webpack/vite/parcel, js/ts, etc.

So far, the only existing setup has been with create-react-app. Will add more in the future.

Co-authored-by: Fülöp <fulopkovacs@users.noreply.github.com>
Co-authored-by: Aria Minaei <aria.minaei@gmail.com>
This commit is contained in:
Fülöp 2022-05-17 20:53:01 +02:00 committed by GitHub
parent 2324218453
commit 3d10325873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 13811 additions and 55 deletions

View file

@ -19,9 +19,9 @@
"url": "https://github.com/AriaMinaei/theatre",
"directory": "packages/r3f"
},
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"files": [
"dist/**/*"
@ -30,7 +30,8 @@
"prepack": "yarn run build",
"typecheck": "yarn run build",
"build": "tsc --build ./tsconfig.json",
"prepublish": "yarn run build"
"prepublish": "yarn run build",
"clean": "rm -rf ./dist && rm -f tsconfig.tsbuildinfo"
},
"devDependencies": {
"@types/jest": "^26.0.23",

View file

@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist/esm",
"outDir": "dist",
"lib": ["ESNext", "DOM"],
"rootDir": "src",
"types": ["jest", "node"],