-
Notifications
You must be signed in to change notification settings - Fork 1
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
setup @liam/cli package #73
Conversation
// https://vite.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Currently, assets can be built using vite with just this setting, but the following additional actions are required
- Make it executable as CLI and accept SQL files as input
- Convert SQL files to DBStructure and pass them to
ERDRenderer
React components - (Publish as npm package)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hoshinotsuyoshi I would like to request this research!
import { ERDRenderer } from '@liam/erd-core' | ||
|
||
function App() { | ||
return <ERDRenderer /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Proceed with React Flow implementation with this component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've confirmed that pnpm install
and pnpm run dev
work correctly in the ./frontend
directory. Just a minor note: it appears to run on http://localhost:5173/
rather than port 3000, as mentioned in ./frontend/README.md
. But everything looks good to me! LGTM!
@@ -0,0 +1,29 @@ | |||
{ | |||
"name": "@liam/cli", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: Should we discuss whether @liam/
(scope) is the appropriate choice? In any case, I think it won’t be difficult to change this later. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct, the scope needs to be considered!
There may be issues such as whether the npm organization can be reserved. I would like to discuss this later.
"allowImportingTsExtensions": true, | ||
"isolatedModules": true, | ||
"moduleDetection": "force", | ||
"noEmit": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits:
In cli/tsconfig.node.json
, should noEmit
be set to false
?
I thought the CLI would be provided as a .js
file.
In any case, I’ll look into it on my end and make any necessary changes later if there are issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, I would need a js file to provide it as a CLI!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
thanks for reviews! |
Created a package skeleton to satisfy the “run as CLI and output HTML” use case