Open peterhassler opened 7 years ago
As long as we use a custom solution (until we upgrade to Rails 5.1 which could take a while ;-)) I think it's a good idea to have these rules. I would provide examples for integration with asset pipeline.
Architecture meeting: Add to style guide and add examples for point 3
We currently follow following schema to integrate webpack/vue-components in FCS:
Component namespace -> Webpack entrypoint (StructurePlanning -> /webpack/structure_planning)
Do not access global javascript libs in webpack code!!
Pass data from asset pipeline to webpack code: 1. Pass in through entry point vue initializer, 2. Use vue properties as much as possible, 3. For more complex situations, create a interface and pass in an adapter
Include entrypoint only when needed
(needs additional styling in FCS?) create own stylesheet: module_component.scss
We may profit from providing rules for this. What do you think?