LearnNewsExamplesServices
Frontmatter
id3254
titlebuildScripts/createClass: automatically figure out the best fitting base class
stateClosed
labels
enhancement
assignees[]
createdAtJul 4, 2022, 12:25 AM
updatedAtJul 15, 2022, 3:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/3254
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 15, 2022, 3:46 PM

buildScripts/createClass: automatically figure out the best fitting base class

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jul 4, 2022, 12:25 AM

we need to add multiple (async?) inquirer.prompt() calls to work with the given answers before a user can ask the next questions.

after entering the desired className, the program can then figure out the best matching base class:

  1. className includes .model. => data.Model
  2. className includes .store. => data.Store
  3. className ends with Model => model.Component
  4. className ends with Controller => controller.Component
  5. default to container.Base
tobiu added the enhancement label on Jul 4, 2022, 12:25 AM
tobiu referenced in commit 022f4f2 - "buildScripts/createClass: automatically figure out the best fitting base class #3254" on Jul 15, 2022, 3:46 PM
tobiu closed this issue on Jul 15, 2022, 3:46 PM