google / google/material-design-lite

A more standard component structure

Open
#1,820 7 comments 0 reactions 0 assignees View on GitHub
2.0 Big Themes
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.