Commit Graph

192 Commits

Author SHA1 Message Date
Paul Gschwendtner 606178be0a build(): retries for travis deploying (#7146)
* Now re-runs the given deploy mode a second time if failed the first time. This ensure that deployment works fine most of the time and should also avoid conflicts between different Travis CI jobs that are deplyoing at the same time.
2017-09-29 13:23:52 -07:00
Kristiyan Kostadinov f2419bf769 chore: bump to Angular 4.4.3 (#7195)
Bumps the minimum Angular version to 4.4.3 to fix some errors in the stepper.

BREAKING CHANGE: Material now requires at least Angular 4.4.3.
2017-09-21 10:45:28 -07:00
Jeremy Elbourn e4a93234c1 chore: bump Angular dep to 4.4.1 (#7118)
BREAKING CHANGE: Angular Material now requires Angular 4.4.1 or greater
2017-09-18 10:29:38 -07:00
Jeremy Elbourn a96b545d28 fix: add mat exportAs and class aliases (#7106) 2017-09-15 13:55:38 -07:00
Joey Perrott ed74da7c55 Bump to gulp-highlight-files@0.0.5 (#7085) 2017-09-14 16:57:34 -07:00
Jeremy Elbourn 1cb8907a66 build: create JS bundles for each component (#6998)
Before this change, all of `@angular/material` was bundled into a
single, flat JS file.

After this change, each top-level component (i.e., each directory under
`src/lib`) will be have its own JS file (and d.ts and metadata.json).

The benefit of this change is that current versions of webpack will be
able to do a much better job of only including the code an app is using.

It also allows (but does not require) people to explicitly import from specific components,
e.g.
```
import {MdButtonModule} from '@angular/material/button';
``

For development _within Angular Material itself_ we have to use these
deeper imports because the root `@angular/material` doesn't exist until
we build the relase package.

Additionally, this PR adds a `tsconfig.json` for each dir under `src/`
with the correct path mappings for that directory, so that IDEs will
correctly generate imports.

Closure Compiler CI check is also disabled by this PR; it cannot work
with the new package structure until a release with
https://github.com/google/closure-compiler/pull/2600 is made available.
2017-09-14 15:15:17 -07:00
mmalerba 9545427c73 feat(datepicker): Add Moment.js adapter (#6860)
* create moment adapter

* add Moment to karma.conf.js

* use MAT_DATE_LOCALE

* tests are now running

* add in tests

* WIP: demo

* add synthetic default imports for moment

* add locale switching to demo

* fix moment import issues with tests

* fix aot

* address comments

* fix closure issue

* add additional explanation of rollup issue

* remove moment adapter demo since it is preventing sync into g3 (will add
back as a docs example in future PR).

* fix bad rebase
2017-09-12 13:24:23 -07:00
tinayuangao ba2f498cef update version and change log to beta-11 (#6363) 2017-09-11 16:23:37 -07:00
Jeremy Elbourn 4b3d3d5640 chore: create beta.10 with fix for input width specificity (#6711) 2017-08-29 16:45:11 -07:00
Jeremy Elbourn 13fb5b4d49 chore: bump version to beta.9 w/ changelog (#6705) 2017-08-29 15:33:22 -07:00
Paul Gschwendtner 9644840e4c build: write custom tslint rules in typescript (#6650)
Currently the custom TSLint rules of the repository had to be pushed as JavaScript files because TSLint was only able to run them as JavaScript files.

Recently with TSLint 5.7.0 (https://github.com/palantir/tslint/commit/90dd3f472199c68662eaecc47663969cb8ea6ed1), custom rules can be also loaded directly as TypeScript files in combination with ts-node.
2017-08-28 16:29:57 -07:00
Paul Gschwendtner 2ef6382bae build: stop building rxjs for closure compiler test (#6635)
For every Pull Request, a job that runs the Google Closure Compiler against the demo-app will be started. In the past Closure Compiler wasn't able to properly handle CommonJS packages from the node modules.

Now the Google Closure Compiler will be reconfigured to properly handle CommonJS packages (meaning that RxJS no longer needs to be built manually)
2017-08-28 16:28:50 -07:00
Paul Gschwendtner eef28c0153 build: disable browserstack video (#6622) 2017-08-24 10:10:06 -07:00
Kristiyan Kostadinov 66da5973db feat: update to Angular 4.3 (#6483)
* feat: update to Angular 4.3

* Bumps the Angular requirement to 4.3. This is also a prerequisite to the Angular 5 update since we encountered the same errors there.
* Refactors the sidenav not to use a `Promise.resolve` for toggling the initial animation, because it was making it impossible to flush the animations in unit tests. The new simplified approach uses a property to pass the animation state.
* Fixes the nested menu test failures.
* Fixes a "changed after checked" error in the autocomplete demo app.

Relates to #6454.

* fix: e2e failures
2017-08-16 13:14:12 -07:00
Kristiyan Kostadinov b5fc68b907 build: fix error when running tslint task (#6431)
Fixes an error, that was being thrown when running the `tslint` task, by bumping `tslint` to 5.6.
2017-08-15 15:03:38 -07:00
Paul Gschwendtner fc98a1d0cf build: move changelog script to gulp task (#5472)
* Moves the changelog script to a gulp task that includes better instructions and error reporting.
2017-08-08 23:18:38 -07:00
Paul Gschwendtner 991c1e0d90 chore(tslint): use globs for custom rule source file filtering (#6235)
A few custom TSLint rules already accept an option array that can be used to whitelist specific files. These whitelists are based on normal Regular Expressions which do not work very well for path matching.

This commit changes the existing whitelists to use minimatch, which is a package that allows matching strings/paths against globs. For rules like `requireLicenseBanner` where the whitelist is hardcoded right now, the whitelist has been introduced as well.
2017-08-04 14:00:29 -07:00
Kristiyan Kostadinov edcbb24f11 chore: update tslint (#6149)
Updates tslint to 5.5.0 and resolves some errors that weren't being caught before. This version also has the advantage of printing out the full stack trace if one of the rules throws an error.
2017-07-31 11:24:53 -07:00
Jeremy Elbourn d70a669f79 chore: add material-examples to e2e-app (#5735) 2017-07-17 11:14:15 -07:00
Jeremy Elbourn ac104c34b6 chore: update package-lock with npm 5.2 (#5683) 2017-07-12 15:22:30 -07:00
Paul Gschwendtner 1f97945580 build: fix stylelint deprecation warning (#5618)
* Fixes the stylelint deprecation warning
* Fixes that stylelint lints the compiled bundles from `dist/` folders of the `dashboard` or `screenshot` app
* Updates the package-lock with NPM@5.1
2017-07-10 11:38:45 -07:00
Jeremy Elbourn ac3e21a334 chore: bump version to beta.8 w/ changelog (#5541) 2017-07-06 10:04:10 -07:00
Jeremy Elbourn 8a74973c8a docs(table): add missing table JsDoc (#5525) 2017-07-05 18:50:27 -07:00
Jeremy Elbourn 3181335074 Revert "build: publish build tools on github (#5458)" (#5526)
This reverts commit 0675568d03.
2017-07-05 18:10:22 -07:00
Paul Gschwendtner 0675568d03 build: publish build tools on github (#5458)
* Publishes the material2-build-tools on Github.
2017-07-05 16:29:52 -07:00
Paul Gschwendtner 3580806adb chore: remove invalid rx type dependency (#5462)
* At some point the `@types/rx` package has been added as a dependency on the project. The `@types/rx` are not for the RxJS implementation that Angular uses. Also RxJS provides typings on it's own since it's build using TypeScript.
2017-07-05 10:33:34 -07:00
Paul Gschwendtner 288f00ebc7 chore: build cdk and material in npm build task (#5376)
Apparently developers that clone the Material repository to get their own version of Material are running the `npm run build` command and are expecting the CDK and Material release output to be inside of the `dist/` folder.

Currently only the Material package will be built and the CDK isn't built at all. This commit changes the npm build task so that it builds every release package of the publish task.

Closes #5372
2017-06-27 16:09:32 -07:00
Jeremy Elbourn 8c9c11a4b0 fix(autosize): resize when form value changes. Fixes #4657 (#5315) 2017-06-23 13:01:25 -07:00
Jeremy Elbourn c220bb5260 chore: bump version to beta.7 with changelog (#5223) 2017-06-19 14:40:55 -07:00
Paul Gschwendtner 39f22c2aa2 build: remove duplicate licenses in bundles (#5195)
* No longer includes the license comments from every source file in the different FESM and UMD bundles.
* Build packages are now emitted with explicit `LF` line endings instead of platform dependent line endings.
2017-06-19 09:30:52 -07:00
Paul Gschwendtner fffff6c9f2 build: explicitly add tsc-wrapped to dev dependencies (#5029)
The dependency on `tsc-wrapped` should be added explicitly. Our tooling uses the `@angular/tsc-wrapped` package directly and it currently only works because the `@angular/compiler-cli` has a dependency on it.

If not specified explicitly, the `@angular/tsc-wrapped` dependency might be a local dependency of the compiler-cli and our tooling won't be able to access it anymore.
2017-06-09 16:09:14 -07:00
Paul Gschwendtner 84c80ec0d6 build: fix duplicate members in dgeni docs (#4956)
Recently Dgeni switch to a more recent version of TypeScript and now getters and setters are counting as individual members. This causes different properties to show up twice in the API docs.

Fixes this temporary by filtering duplicate member docs. Also removes the inhertied docs processor since it doesn't work and needs some more work in the `dgeni-packages` repository.

Fixes #4923
2017-06-05 14:50:24 -07:00
Paul Gschwendtner 970847e4a4 build: fix universal prerendering task (#4931)
Fixes the Universal Prerendering task by using the same workaround as for the AOT job (building sources in the output directory already)

Building the sources in the output directory (similar as for the AOT task) is theonly known workaround for https://github.com/angular/angular/issues/12249
2017-06-02 09:39:49 -07:00
Paul Gschwendtner 965bf18e49 build: no sourcemaps in inline styles (#4885)
* In components inline styles there shouldn't be any Sourcemap reference. This adds bloat and also doesn't do anything right now.
* No longer builds sourcemaps for all compiled SCSS. The sourcemaps don't work for development either (styles are inlined too)
* Prebuilt themes no longer contain source-maps.
2017-05-31 16:19:43 -07:00
tinayuangao 57c45a167b chore: bump version to beta.6 w/ changelog (#4810) 2017-05-25 15:28:54 -06:00
Paul Gschwendtner 58c8404d73 build: use travis build stages (#4766) 2017-05-25 14:37:00 -06:00
Jeremy Elbourn e3b2587294 build: import tslib instead of letting tsc generate helpers (#4787) 2017-05-25 14:36:02 -06:00
Paul Gschwendtner a41ef278cb build: upgrade dev dependencies (#4707)
* build: upgrade dev dependencies

* Upgrades outdated development dependencies to the latest versions.
* Skipped upgrading Autoprefixer due to a breaking change with the Browserlist.
* Skipped upgrading UglifyJS due to unresolved issues in UglifyJS3
* Skipped upgrading google-closure-compiler due to https://github.com/alexeagle/closure-compiler-angular-bundling/issues/30
* Skipped upgrading jasmine types because they now enforce types in `expect` calls (which is nice) but for Protractor the `expect` automatically unwraps promises (See https://github.com/angular/protractor/issues/4176)

* Lock jasmine types
2017-05-22 15:59:11 -06:00
Paul Gschwendtner 54142a684c build: fix deploy script in package.json (#4548) 2017-05-15 11:19:48 -07:00
Jeremy Elbourn 6121fa18ba chore: bump version to beta.5 w/ changelog (#4523) 2017-05-12 17:17:13 -07:00
Kara aaa09b5b82 chore: bump version to beta.4 and update changelog (#4511) 2017-05-12 12:17:53 -07:00
Paul Gschwendtner 2b8f753028 build: use shared logic to build packages (#4202)
* build: use shared logic to build packages

* No longer creates the whole set of gulp tasks just to build a single package.
* Makes the package building & releasing more consistent. No extra `build:release` just for the `lib` package.

References #4108

* Address feedback
2017-04-25 09:50:47 -07:00
Paul Gschwendtner 7c81698e17 build: dedupe theming scss bundle (#4174)
Fixes #3931
2017-04-20 18:45:01 -07:00
Paul Gschwendtner f7c45b2725 build: move functions folder into tools/ (#4127) 2017-04-18 15:07:46 -07:00
Paul Gschwendtner 008e1abc5d build: fix screenshot golden upload (#4128)
* Fixes the Google Cloud Storage upload for the goldens.

The issue seems to happen because the `@google-cloud/storage` package has been installed manually and the `google-cloud` now uses a different storage version than before. Noticed this while debugging the `google-cloud` package.
2017-04-18 11:31:49 -07:00
Paul Gschwendtner 1328307bb8 build: remove outdated tslint rule (#4121)
* At some point in tslint the `no-unused-variable` rule has been deprecated in favor of `noUnusedLocals` and `noUnusedParameters`. Since we don't want to have compilation errors for unused variables we re-implemented the `no-unused-variable` rule ourself and used it as a custom rule.

* Recently we switched to a newer version of TSLint and TypeScript and the custom tslint rule won't ever work again. (tslint now requires a type-checker to be enabled). The custom rule fails currently and causes TSLint to not work with some editors (e.g Webstorm).
2017-04-18 09:24:33 -07:00
tinayuangao 25a688106c feat(pixacto): use TypeScript for tooling and refactor into tools/ (#3732)
Move code to TypeScript and perform several clean-up refactorings
2017-04-17 11:52:47 -07:00
Paul Gschwendtner 0acd4d9262 build: create sourcemap files (#4022)
* Creates sourceMap files for all bundles inside of the release.

Fixes #852
2017-04-13 12:56:47 -07:00
Jeremy Elbourn 94320c4e68 chore: update tslint to v5 and fix newly surfaced issues (#3958) 2017-04-07 16:59:03 -06:00
Jeremy Elbourn f396657b04 chore: bump version to beta.3 and add changelog (#3953) 2017-04-07 14:59:46 -06:00