-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feat/#37 cli generate entity #125
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #125 +/- ##
========================================
Coverage 95.16% 95.16%
========================================
Files 69 69
Lines 1096 1096
Branches 129 129
========================================
Hits 1043 1043
Misses 53 53 Continue to review full report at Codecov.
|
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 think this command should be added to https://github.com/lecle/aloxide/blob/master/packages/abstraction/bin/aloxide.js
|
||
// Handle file type | ||
if (FILE_TYPE.JSON == fileType) { | ||
writeJSONFile(`${fullPath}.${fileType.toLowerCase()}`, aloxideEntities); |
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.
Should write json file as pretty format!
const ENTITY_NAME_QUESTION = "What's your entity name?\n"; | ||
const PROP_NAME_QUESTION = "What's your property name?\n"; | ||
const PROP_TYPE_QUESTION = "What's your property type?\n"; | ||
const CONFIRM_PROP_QUESTION = "Do you want to continue create new Entity's property?\n"; |
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.
question ask for y/n
, but when I type anythings else, it still process as case n
This PR to create a new js file to help generate entity file
To test please follow these steps.
And then answers the questions that will be appeared on your screen to generate your entities