113 Commits

Author SHA1 Message Date
release-please[bot]
68f1f1c2aa
chore: release 1.0.0-pre.4 2023-03-08 23:26:17 +00:00
release-please[bot]
5df352072b
chore: release 1.0.0-pre.3 2023-02-22 17:59:41 +00:00
Liz Mitchell
f46b8b1058 chore: update TS to 4.9 2023-02-17 10:30:14 -08:00
release-please[bot]
1b953f5ca1
chore: release 1.0.0-pre.2 2023-02-06 19:04:39 +00:00
Liz Mitchell
c83ceb88d9 chore: simplify workflows and remove commitlint dependency 2023-01-11 09:36:53 -08:00
release-please[bot]
e83b4d94c6
chore: release 1.0.0-pre.1 2023-01-09 22:18:33 +00:00
release-please[bot]
42ac2dffc2
chore: release 1.0.0-pre.0 2023-01-09 18:06:19 +00:00
Liz Mitchell
a529a8d858 chore: add commitlint 2023-01-03 14:38:58 -08:00
Elizabeth Mitchell
10af36ad91 chore(release): v0.1.0-alpha.2
PiperOrigin-RevId: 497193404
2022-12-22 10:27:17 -08:00
Liz Mitchell
b634a92f65 chore: release v0.1.0-alpha.1 2022-12-19 11:13:36 -08:00
Alexander Marks
88b0a0bca9 Set up test script with @web/test-runner 2022-11-29 20:16:30 -08:00
Alexander Marks
e22e89e465 Add type:module and convert css-to-ts.js to a module 2022-11-29 17:02:52 -08:00
Alexander Marks
802bdccd1a Upgrade dependencies 2022-11-29 16:59:39 -08:00
Alexander Marks
0c84de8274 Add test dependencies 2022-11-29 16:59:36 -08:00
Alexander Marks
d9f2f9982e Add wireit build config 2022-11-21 14:12:58 -08:00
Alexander Marks
c0d107ed72 chore: update @material/web package.json for first release
- Set the version to what we published
- Add publishConfig section, which is required for publishing to npm @namespaces
- Pin the typescript version to ~4.7.3, because 4.8 introduced a small new typing error. It's a good idea to use ~ semver ranges for TypeScript generally, because TypeScript doesn't follow semver.

PiperOrigin-RevId: 470359331
2022-08-26 16:38:48 -07:00
Alexander Marks
96805fe668 chore: Don't publish .ts or testing files
Before this change, we publish .ts source files to the same directory as the .js/.d.ts files to npm.

That means when a consumer imports a @material/web module with TypeScript, TypeScript prefers the .ts file over the .d.ts file when to load that module's types.

That in turn means the consumer's TypeScript type-checks the entire @material/web .ts file, including its private implementation details (private fields, etc.). If the consumer's tsconfig.json is configured more strictly than @material/web's was (e.g. if noUnusedParameters is true), or if some additional ambient types are loaded (e.g. @types/node is installed, which changes the signature of setTimeout), they would get a compile error.

This change stops publishing .ts files to npm to solve that problem for consumers.

This also includes some related changes:

- Sets inlineSources to true. This puts the .ts file contents directly inside the .js.map file, instead of linking to the .ts path. Otherwise sourcemaps would not work.

- Sets declarationMap to false. This removes the .d.ts.map files, which are not useful without the .ts paths, because there is no equivalent to inlineSources for declarationMap (see https://github.com/microsoft/TypeScript/issues/38966).

- Replaces .npmignore blocklist with package.json files allowlist (which I find to be a bit safer), and adds new omissions for testing files, which don't need to be published.

Note that this doesn't solve the problem when using "npm link" for local cross-package development, because in that case the .ts files will still be present. So a better solution to this problem would be to have a separate src/ directory for .ts source files. That will require a Copybara transform to move the files. We can discuss this separately and do it as a followup if agreed.

PiperOrigin-RevId: 469833263
2022-08-24 15:04:04 -07:00
Elizabeth Mitchell
ecf2578569 chore: add package.json with basic build
PiperOrigin-RevId: 467933458
2022-08-16 08:37:48 -07:00
Material Web Team
41d41cc278 chore: update repository for Material 3
PiperOrigin-RevId: 455635969
2022-06-17 16:42:04 +00:00
Patty RoDee
51fcedaaff chore: Reorganize segmented button files with explicit variant naming
PiperOrigin-RevId: 442985520
2022-04-19 20:54:15 -07:00
Brian Taylor Vann
f8c38c7baa remove saucelabs launcher from package json 2022-04-19 16:55:35 -07:00
Daniel Freedman
9179a1a4ee chore(typescript): Update typescript to 4.4.4 2021-11-01 13:58:56 -07:00
Elliott Marquez
2826057b29 build: pin TS to 4.3 2021-09-20 19:24:07 -07:00
Alexander Marks
3bd4f81e5c Pin Sass to older version
Once https://github.com/material-components/material-components-web/pull/7402
is released, we can bump back up to 1.4
2021-09-17 11:52:42 -07:00
Daniel Freedman
6748fbe16f (chore): Update webcomponents polyfills to latest version 2021-08-25 14:34:55 -07:00
Daniel Freedman
6c4936c439 Update typescript to 4.3
Match internal version, and prepare for adding `override` keyword
2021-08-19 13:47:03 -07:00
Russell Bicknell
e04a02c0a3 Restore newer version of Sass. 2021-06-11 18:00:31 -07:00
Material Web Team
e15118678c refactor(tab-bar): update getUpdateComplete usage
PiperOrigin-RevId: 378983487
2021-06-11 17:54:25 -07:00
Russell Bicknell
af47a466bc Update Sass 2021-06-11 16:34:09 -07:00
Copybara-Service
0de82c1221 Merge pull request #2448 from material-components:abhiomkar-patch-1
PiperOrigin-RevId: 376029288
2021-05-26 14:27:41 -07:00
Daniel Freedman
26823c4a2e (chore): Remove chai dependencies
- Remove custom types for chai
- Remove karma-chai and chai modules

Fixes #2437
2021-05-25 15:43:26 -07:00
Abhinay Omkar
90bcbe10af
chore: Remove typescript lint from GitHub tests
External typescript lint (including format lint) conflicts with internal TS lint and produces different results. This impedes devex because the turn around time to validate lint is slow (i.e., waits till GitHub Action is complete), also has no integration to internal review tool.

All the code that gets checked-in should be tested internally.
2021-05-25 14:47:29 -04:00
Daniel Freedman
a646aa6387 (chore): Prepare for switch to Jasmine expect
- Remove custom_typing for chai's `expect`
- Replace eslint mocha plugin and settings for jasmine equivalents
- Add jasmine typescript typings

Related #2437
2021-05-25 10:41:59 -07:00
Daniel Freedman
127ec2c690 Switch testing from Mocha to Jasmine
- Remove `karma-mocha` and `mocha` dependencies
- Add `karma-jasmine` dependency
2021-05-21 16:41:12 -07:00
Daniel Freedman
cc04657a2b
Remove old sass compile process (#2422)
- Sass build should be much faster!
2021-05-17 18:17:51 -07:00
Daniel Freedman
11559b7264 Add new build steps to all components
Also use SPDX header for new styling modules
2021-05-17 16:13:26 -07:00
Brian Taylor Vann
8329b45664 chore(package.json): typescript matches internal typescript version 4.1.4 2021-03-11 00:27:58 +00:00
Brian Taylor Vann
0d2ba3da88 chore(package.json): update to typescript 4.0.3 2021-03-01 23:07:37 +00:00
Elliott Marquez
2da93a86a8 chore: update lit-analyzer & lint rules 2021-01-22 15:36:19 -08:00
Liz Mitchell
9901289376 chore: update clang-format 2021-01-13 12:56:07 -08:00
43081j
3ff3d8f44d remove Fake in place of module
less to maintain
2020-10-27 13:26:07 +00:00
Liz Mitchell
8604d59edb
chore: remove src folder from packages in GitHub (#1706)
* chore: remove src folder from packages in GitHub

* chore: add extra newline to button sass
2020-08-17 17:59:35 -07:00
Elliott Marquez
cb0319fc43 fix format check 2020-07-22 17:17:11 -04:00
Elliott Marquez
c086377e9a test format 2020-07-22 17:08:35 -04:00
Elliott Marquez
d3a35a44e1 docs(demos): demos built for speed 2020-05-06 20:30:44 -07:00
Elliott Marquez
b9390849b1 chore: remove unnecessary dev deps 2020-04-17 17:33:08 -07:00
43081j
6be632d732 drop sinon 2020-04-01 20:59:28 +01:00
Elliott Marquez
aaafc9abe3
perf(list): benchmarks for list and list-item (#977)
* perf(list): benchmarks for list and list-item

* chore: run formatter
2020-03-06 16:35:29 -08:00
Elliott Marquez
94c9acaa5c
perf(select): implement select perf benchmarking (#969) 2020-03-05 16:30:58 -08:00
Elliott Marquez
310d04427b fix powerwash 2020-01-31 19:55:32 -08:00