Skip to content

Commit

Permalink
improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnorton committed May 6, 2024
1 parent 3f38387 commit ae97575
Show file tree
Hide file tree
Showing 25 changed files with 76 additions and 53 deletions.
9 changes: 4 additions & 5 deletions .admin/beta-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for dir in $(find ./../ -mindepth 3 -maxdepth 3 -type d ! -path "./../.git*"); d
cd "$dir"
framework=$(echo $dir | cut -d'/' -f3)

echo "👀 Updating package for $dir"
echo "🆕 Updating package for $dir"

# React specific updates
if [[ $framework == "react" ]]; then
Expand All @@ -34,15 +34,14 @@ for dir in $(find ./../ -mindepth 3 -maxdepth 3 -type d ! -path "./../.git*"); d
fi
echo "🚀 Updated $dir"

echo "🏗️ Building $dir"
yarn build
# if build fails
echo "👀 Checking types $dir"
yarn check-types
if [ $? -ne 0 ]; then
echo "❌ Build failed for $dir"
exit 1
fi

echo "Built $dir"
echo "Checked $dir"
echo " "
fi

Expand Down
5 changes: 3 additions & 2 deletions ts/react/autodesk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"start": "vite",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "^1.5.0-beta.8",
Expand All @@ -24,4 +25,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/contextual-comments-autodesk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "1.5.0",
Expand All @@ -24,4 +25,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/contextual-comments-canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "1.5.0",
Expand All @@ -24,4 +25,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/contextual-comments-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "1.5.0",
Expand All @@ -24,4 +25,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/contextual-comments-matterport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "1.5.0",
Expand All @@ -22,4 +23,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/contextual-comments-threejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "^1.5.0",
Expand All @@ -25,4 +26,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/matterport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -25,4 +26,4 @@
"@types/uuid": "^9.0.7",
"typescript": "^5.2.2"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/mouse-pointers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "vite",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -23,4 +24,4 @@
"@types/uuid": "^9.0.7",
"typescript": "^5.2.2"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/real-time-data-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"start": "vite",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "1.5.0",
Expand All @@ -23,4 +24,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/threejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"start": "vite",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@superviz/react-sdk": "^1.5.0",
Expand All @@ -25,4 +26,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/video-conference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"start": "vite",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -22,4 +23,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/react/who-is-online/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"start": "vite",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -22,4 +23,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/autodesk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -17,4 +18,4 @@
"@superviz/sdk": "^6.0.0",
"@superviz/autodesk-viewer-plugin": "^1.16.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/contextual-comments-autodesk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -17,4 +18,4 @@
"@superviz/sdk": "^6.0.0",
"@superviz/autodesk-viewer-plugin": "^1.16.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/contextual-comments-canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -16,4 +17,4 @@
"dependencies": {
"@superviz/sdk": "^6.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/contextual-comments-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -16,4 +17,4 @@
"dependencies": {
"@superviz/sdk": "^6.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/contextual-comments-matterport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -17,4 +18,4 @@
"@superviz/sdk": "^6.0.0",
"@superviz/matterport-plugin": "^0.19.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/contextual-comments-threejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -18,4 +19,4 @@
"@superviz/sdk": "^6.0.0",
"@superviz/threejs-plugin": "^0.22.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/matterport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -17,4 +18,4 @@
"@superviz/sdk": "^6.0.0",
"@superviz/matterport-plugin": "^0.19.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/mouse-pointers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -16,4 +17,4 @@
"dependencies": {
"@superviz/sdk": "^6.0.0"
}
}
}
5 changes: 3 additions & 2 deletions ts/vanilla/real-time-data-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"check-types": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand All @@ -16,4 +17,4 @@
"dependencies": {
"@superviz/sdk": "^6.0.0"
}
}
}
Loading

0 comments on commit ae97575

Please sign in to comment.