google / google/material-design-lite
A more standard component structure
- Dominant language
- HTML
- Stars
- 32.2k
- Forks
- 4.9k
- PR merge metrics
- No merged PRs in 30d
Description
As I started to dig into testing each component in a more "node" way I discovered that we are pretty dependent on the fact that our tests run in a browser, with nasty globals and icky windows :ghost: .
There are a few steps that I would love to take here, to move us more inline with a component based build system (this also will make it possible to give people custom builds containing only the pieces that they want :sparkles: )
1. wrap up each module in a UMD
2. tweak the build system to [unwrap](https://github.com/samccone/unwrap) each umd when everything gets smashed together
3. start testing each component independently (outside of the browser is totally possible with jsdom)
4. :dancer:
Let me know what you all think, I know that this is a pretty significant moving of stuff, but I think it gives us some really great wins .... I wanted to post my thoughts so we can chat a bit before any work begins :construction_worker: :muscle:
Contributor guide
Assessment
This issue has not been assessed yet.