Skip to content

feat: kitchen sink 2.0#203

Merged
lxsmnsyc merged 13 commits intomainfrom
kitchen-sink-cleanup
Mar 5, 2025
Merged

feat: kitchen sink 2.0#203
lxsmnsyc merged 13 commits intomainfrom
kitchen-sink-cleanup

Conversation

@lxsmnsyc
Copy link
Collaborator

@lxsmnsyc lxsmnsyc commented Jan 25, 2025

image

  • Provides the barebones kitchen-sink app for react-scan. Just add a new example under kitchen-sink/src/examples
  • Removed the old examples and kitchen-sink

@vercel
Copy link

vercel bot commented Jan 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-scan ❌ Failed (Inspect) Mar 4, 2025 2:41pm

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 25, 2025

Open in Stackblitz

npm i https://pkg.pr.new/aidenybai/react-scan@203

commit: 82e5974

import './styles.css';


Store.isInIframe.value = false;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-scan doesn't work inside iframes, this enables it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just copied this from my forgetti example: https://github.com/lxsmnsyc/forgetti/tree/main/examples/react/src

const examples: Example[] = [
{ title: 'Sierpinski Triangle', url: '/?example=sierpinski' },
{ title: 'Todo List', url: '/?example=todo-list' },
];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little bit manual. When you add a new app in the examples/, this needs to be reflected.

?example query needs to match the folder name

"scripts": {
"build": "WORKSPACE_BUILD=true node scripts/workspace.mjs build",
"postbuild": "node scripts/version-warning.mjs",
"postinstall": "pnpm build",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit annoying.

fyi: pnpm no longer runs this by default, https://github.com/pnpm/pnpm/releases/tag/v10.0.0

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a small issue with fresh clone ...

🚀 pnpm dev

> root@ dev /Users/pivanov/react-scan
> node scripts/workspace.mjs dev


> react-scan@0.1.3 dev /Users/pivanov/react-scan/packages/scan
> pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup


> react-scan@0.1.3 copy-astro /Users/pivanov/react-scan/packages/scan
> cp -R src/core/monitor/params/astro dist/core/monitor/params

cp: dist/core/monitor/params: No such file or directory
 ELIFECYCLE  Command failed with exit code 1.
/Users/pivanov/react-scan/packages/scan:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  react-scan@0.1.3 dev: `pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup`
Exit status 1
Scope: 2 of 5 workspace projects
packages/extension dev$ pnpm dev:chrome
packages/website dev$ next dev --turbopack
packages/extension dev: > @react-scan/extension@1.0.4 dev:chrome /Users/pivanov/react-scan/packages/extension
packages/extension dev: > cross-env BROWSER=chrome vite
packages/website dev:    ▲ Next.js 15.0.3 (Turbopack)
packages/website dev:    - Local:        http://localhost:3000
packages/website dev:  ✓ Starting...
packages/website dev:  ✓ Ready in 601ms
....

maybe we should touch a bit ./packages/scan/package.json ... the astro related things?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this part of the build?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah ... I need to check the deps ... because some packages rely on the ./packages/scan/dist we should make sure the scan it's build before the others ... and things like that ... but I will check it when we have more stable file structure

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird, I cannot repro this in my device, perhaps the existence of the dist folder itself. hmmm.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ... yeah ... you should remove all dist folders (fresh clone)

Copy link
Collaborator

@pivanov pivanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!!!

"scripts": {
"build": "WORKSPACE_BUILD=true node scripts/workspace.mjs build",
"postbuild": "node scripts/version-warning.mjs",
"postinstall": "pnpm build",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a small issue with fresh clone ...

🚀 pnpm dev

> root@ dev /Users/pivanov/react-scan
> node scripts/workspace.mjs dev


> react-scan@0.1.3 dev /Users/pivanov/react-scan/packages/scan
> pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup


> react-scan@0.1.3 copy-astro /Users/pivanov/react-scan/packages/scan
> cp -R src/core/monitor/params/astro dist/core/monitor/params

cp: dist/core/monitor/params: No such file or directory
 ELIFECYCLE  Command failed with exit code 1.
/Users/pivanov/react-scan/packages/scan:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  react-scan@0.1.3 dev: `pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup`
Exit status 1
Scope: 2 of 5 workspace projects
packages/extension dev$ pnpm dev:chrome
packages/website dev$ next dev --turbopack
packages/extension dev: > @react-scan/extension@1.0.4 dev:chrome /Users/pivanov/react-scan/packages/extension
packages/extension dev: > cross-env BROWSER=chrome vite
packages/website dev:    ▲ Next.js 15.0.3 (Turbopack)
packages/website dev:    - Local:        http://localhost:3000
packages/website dev:  ✓ Starting...
packages/website dev:  ✓ Ready in 601ms
....

maybe we should touch a bit ./packages/scan/package.json ... the astro related things?


.todo-item.pending {
background-color: rgba(254, 243, 199, 255);
} No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line?

@@ -0,0 +1,3 @@
body {
margin: 0;
} No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line?


body {
overflow: hidden;
} No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line?

packages:
- 'packages/*'
- 'examples/*'
- 'kitchen-sink' No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line?

@lxsmnsyc
Copy link
Collaborator Author

lxsmnsyc commented Mar 5, 2025

long overdue

@lxsmnsyc lxsmnsyc merged commit 920f2c3 into main Mar 5, 2025
4 of 5 checks passed
@lxsmnsyc lxsmnsyc deleted the kitchen-sink-cleanup branch March 5, 2025 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants