LearnNewsExamplesServices
Frontmatter
id4679
titlebuildScripts/createComponent
stateClosed
labels
enhancement
assignees[]
createdAtAug 9, 2023, 9:07 AM
updatedAtDec 5, 2023, 1:13 PM
githubUrlhttps://github.com/neomjs/neo/issues/4679
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 5, 2023, 1:13 PM

buildScripts/createComponent

Closed v8.1.0 enhancement
tobiu
tobiu commented on Aug 9, 2023, 9:07 AM

while we do already have a program to create a generic class file in place => buildScripts/createClass.mjs, it would be nice to have a more specialised version just for components as well.

the new program should:

  • create the JS class file (same way as createClass, we can exclude the singleton option)
  • generate the theme files (src, theme-dark, theme-light)
  • create a baseCls inside the JS file, which then gets used inside the scss src file
  • create an example folder based on the namespace (class name)
  • the example MainContainer should already import & display the new component
  • the scss src file should already have a background-color & color, based on theme variables
  • we need a themes build to initially render the new component correctly.
  • as the last step, it could run npm run server-start and immediately show the new component inside a browser window
tobiu added the enhancement label on Aug 9, 2023, 9:07 AM
tobiu
tobiu Dec 5, 2023, 1:13 PM

resolved by @ThorstenRaab

tobiu closed this issue on Dec 5, 2023, 1:13 PM