This repository was archived by the owner on May 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
[boilerplate] JS architecture #3
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- Establish the new way of writing JavaScript in collaboration with other Frontend Developers.
- Restructure the whole Estatico JS initiation logic into separate NPM packages.
- Add a more reusable way of writing JS (factory/composition).
- Give a good documentation on what changed in the architecture and how developers can adapt.
- Establish a checklist for JS Modules/Factories/Composites
- Establish backward-compatibility for at least IE(X)
Factory/Composition
Examples
- Factory: https://www.npmjs.com/package/@unic/factory-breakpoint-manager
- Composite: https://www.npmjs.com/package/@unic/composite-observer
Generators
TODO
- Use Apache license, Unic is the author
- Make a workshop and discuss the proposition of factory/composition
Components
-
composite-logger
https://github.com/unic/estatico/blob/develop/source/assets/js/helpers/helper.js#L18-L30 -
ui-extend
https://github.com/unic/estatico/blob/develop/source/assets/js/helpers/helper.js#L42-L56 -
ui-pretty-events
Completely new thingie
Notes
- Enable better debugging inside of Modules/Components Better debugging?
- Proper automatic documentation of components (JSdoc)
https://github.com/jsdoc3/jsdoc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request