From b898fb484ff784eec1daadba55c67c0f5d967d64 Mon Sep 17 00:00:00 2001 From: Yiran Mao Date: Mon, 6 Feb 2017 22:22:05 -0500 Subject: [PATCH] docs(authoring-component): Update checklist when adding new component. [ci skip] --- docs/authoring-components.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/authoring-components.md b/docs/authoring-components.md index ba9f8e4e972..b1a6f51014a 100644 --- a/docs/authoring-components.md +++ b/docs/authoring-components.md @@ -684,11 +684,12 @@ the [mdc-base README](../packages/mdc-base). Whenever you create a new component, it's important to notify the proper tools and packages of it. Concretely: -- Ensure that an entry for it exists in `webpack.config.js` for the `all-js` module +- Ensure that an entry for it exists in `webpack.config.js` for the `js-components` and `css` module - Ensure that it is added as a dependency of `material-components-web`. If the component contains styles, ensure that they are `@import`ed within `material-components-web.scss`. If the component contains javascript, ensure that its component namespace is exported within - `material-components-web`, and it is registered with `mdc-auto-init`. + `material-components-web`, and it is registered with `mdc-auto-init`. Lastly, remember to add it + to `package.json` of `material-components-web`. ### Testing