33 Commits

Author SHA1 Message Date
Daniel Freedman
6a75094e8f Fix Sass "default" imports
- Sass now has "default" imports that should handle `@material/theme` to
  mean `@material/theme/_index.scss` that `node-sass-import` did not
  understand

  Fixes #850
2020-02-18 10:15:29 -08:00
Alexander Marks
139f33e9fa
Automate bumping MDC deps using GitHub Actions (#566)
This adds a GitHub action called bump-mdc-deps that automatically runs
the script that pins our MDC Web deps to the latest canary version, and
sends us a PR if it has changed.
2019-10-17 11:47:43 -07:00
Alexander Marks
19448b156a Merge branch 'master' into canary 2019-09-26 19:19:58 -07:00
Alexander Marks
b65bf3022f Add @license annotations to all test TS files 2019-09-25 14:45:27 -07:00
Alexander Marks
4f3b37bcc9 Bump all MDC web packages to canary version, and add bump script. 2019-09-16 12:23:34 -07:00
Alexander Marks
65bccda9ed
Some small items before release (#431)
* Make textarea and textfield not NPM private
* Fix typo in button image filename: outlind_with_icon.png
* Support <img> tags in static-urlify-readme-images script
2019-08-27 14:15:27 -07:00
Alexander Marks
6f78c3d652 Add a prepack script that rewrites README images to be permanent URLs.
This way we don't need to publish images in our NPM tarballs (they're
already in our .npmignore files), but the READMEs will still render with
images on npmjs.com, webcomponents.org, etc.

It resolves master to a SHA, and uses that in a
raw.githubusercontent.com URL, so that if we change or move images files
around, any given version of the README published to NPM won't be
affected.
2019-08-13 15:35:58 -07:00
Alexander Marks
a9c2f42c74 Configuration for scripts written in TypeScript 2019-08-13 11:51:32 -07:00
Daniel Freedman
a91de22571 Print CSS Custom Properties of a Sass file
Prints selector, property, and fallback value for the CSS Custom
Properties in a Sass file

Example usage:
```
./scripts/print-css-custom-properties.js packages/snackbar/src/mwc-snackbar.scss
```

Example output:
```css
slot[name=action]::slotted(mwc-button) { --mdc-theme-primary: var(--mdc-snackbar-action-color, #bb86fc) }
```
2019-08-09 14:46:14 -07:00
Daniel Freedman
a1cc4bf4c5 Update dependencies
- Fix typescript building with 3.4
- Upgrade lerna to 3.x
2019-04-04 15:36:55 -07:00
Daniel Freedman
4c1c3c1600 Simplify demo updating
- symlink node_modules folder to put demos for unreleased components up
- disable nested babelrc in node_modules
2019-03-11 11:32:01 -07:00
Daniel Freedman
17f46249e6 Fix typescript building
- Add back-references to dependencies for `tsc --build` to work
- Normalize on `build:typescript` syntax
- make `clean` work
2019-02-01 15:39:47 -08:00
Daniel Freedman
0bb1502e18 Update and change out dependencies
- Replace webpack with rollup for karma
- Remove most of the unused npm scripts
- Fix karma node resolver usage
- Remove webpack test/unit/index.js file
- Sauce runner configs from Polymer
2019-01-30 17:53:53 -08:00
Daniel Freedman
d01885b6fd Fix demo publishing for unscoped lit-element 2019-01-11 14:10:05 -08:00
Daniel Freedman
09dab52553 Prepare 0.3.1 2018-10-08 12:19:17 -07:00
Daniel Freedman
16ddf987a8 Remove uglify plugin from demo build
It was doing _weird_ things with Ripple directive
Also lock in version of lit-html, lit-element, and webcomponents
2018-10-08 11:15:38 -07:00
Daniel Freedman
41e470a979 Make demo publishing more consistant 2018-10-05 15:44:31 -07:00
Daniel Freedman
1159e10a90 Rewrite formfield as typescript
- Implement `ripple` getter on formable components for activation of
ripple directive
- Improve watcher output
2018-10-04 12:01:21 -07:00
Daniel Freedman
b8b6069538 Update dependencies
- Typescript 3.1
  - Fix radio, drawer, icon-font, and ripple for new DOM typings
- node-sass -> sass
2018-10-02 17:44:04 -07:00
Daniel Freedman
57d88a8ab6 [infra] Add watcher message after build and when started 2018-10-02 14:56:50 -07:00
Daniel Freedman
79390b55f8 Improve watch output on error
Make `build-typescript` not need explicit packages
2018-09-26 12:25:19 -07:00
Daniel Freedman
2b9ee8a141 Only build sass files if they change
Makes typescript builds _way_ faster
2018-09-26 11:37:50 -07:00
Daniel Freedman
80bda90d66 Implement watcher
Uses `node-watch` to watch for changes and run `npm run build`
It does too much, but I'm not sure how to do any incremental builds

Fixes #115
2018-09-25 17:44:38 -07:00
Daniel Freedman
c8c44560f5 Make mwc-icon a real sass partial
Fix style builder to not generate any partials as output
Fix button and fab styling to link to the icon partial
2018-09-21 11:23:08 -07:00
Daniel Freedman
a19388c391 Fix style building 2018-09-20 12:48:07 -07:00
Daniel Freedman
80f901b4d7 First crazy attempt at typescript conversion
Look at switch and base packages

Move sass building into scripts
2018-09-19 17:35:42 -07:00
Daniel Freedman
3bd516dcf2 fix up last bit 2018-05-08 11:33:05 -07:00
Daniel Freedman
2182d6478a Make demos easy to publish
- Minor changes to demo pages for rollup compat
2018-05-08 11:23:01 -07:00
Daniel Freedman
55b0c36dcb Merge branch 'master' into publish-demos 2018-05-07 16:13:45 -07:00
Daniel Freedman
3e4214194f fix licenses 2018-05-07 15:38:47 -07:00
Kevin Schaaf
c63e2faac7 Add publish-demos script 2018-05-07 13:34:01 -07:00
Daniel Freedman
9cf785fbac Fix scripts by using bash explictitly
Fixes #8
2018-05-07 11:53:30 -07:00
Steven Orvell
286d4733ce [first commit] lots of wip elements
These are WIP. Some known issues:
* select, chips, and textfield ripple not working
* many tests to be added
* some elements tbd, including e.g. top-app-bar and drawer
2018-04-25 19:20:55 -07:00