Hi currently i m working in a monorepo application in react.
What i need is to extract some of its 'components' & 'styling' and create separate modules/packages that live outside of the main project, and import them into package.json like normal modules.
initial file structure and future proposal structure:
myMainproject:
\src
\components
component-styles.scss
\button
\label
\list
\item
.......
\modules
\calendar
\header
\footer
\support
.....
package.json
....
// I extract calendar, footer modules
calendarService:
\src
\components
component-styles.scss
\button
\label
\list
\item
.......
\modules
\calendar
.....
package.json
....
footerService:
\src
\components
component-styles.scss
\button
\label
\list
\item
.......
\modules
\footer
.....
package.json
....
// Extract style and create a separate service
styleService
\src
\styles
.....
package.json
....
final 'package.json' of 'myMainproject':
......
"dependencies": {
"calendarService": ...,
"footerService": .... ,
"styleService": ...,
.....
}
Do you have any ideas, not only technical but architectural also, or any doc to achieve that ?
