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
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:
src,theme-dark,theme-light)baseClsinside the JS file, which then gets used inside the scss src fileMainContainershould already import & display the new componentbackground-color&color, based on theme variablesnpm run server-startand immediately show the new component inside a browser window