Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract devtools to separate package #42

Merged
merged 7 commits into from May 5, 2023

Conversation

julianrubisch
Copy link
Sponsor Collaborator

@julianrubisch julianrubisch commented Apr 12, 2023

The Devtool class has been extracted to the @turbo_boost/devtools package, with this library's triggerElement just serving as the delegate.

Note that I think it would be nice to remove all references to devtool from triggerElement (such as initializeDevtool) to a mixin living in the devtools package, but I wanted to take it one at a time.

Once we release a first version of the devtools package, we can move this PR from draft to open.

Copy link
Owner

@hopsoft hopsoft left a comment

Choose a reason for hiding this comment

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

This is looking great.

@@ -29,6 +29,7 @@
"prettier-standard": "^16.4.1"
},
"scripts": {
"build": "esbuild app/javascript/index.js --bundle --minify --sourcemap --format=esm --target=es2020,chrome58,firefox57,safari11 --analyze --outfile=app/assets/builds/@turbo-boost/elements.js"
"build": "esbuild app/javascript/index.js --bundle --minify --sourcemap --format=esm --target=es2020,chrome58,firefox57,safari11 --analyze --outfile=app/assets/builds/@turbo-boost/elements.js",
"build:watch": "yarn build -- --watch"
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for adding this.

@julianrubisch julianrubisch marked this pull request as ready for review May 2, 2023 15:49
@julianrubisch julianrubisch merged commit da970de into hopsoft:main May 5, 2023
5 checks passed
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.

None yet

2 participants