Commit Graph

256 Commits

Author SHA1 Message Date
Kristiyan Kostadinov 2fc6a4c782 refactor: turn off view encapsulation for all components (#6563)
Fixes #6037.
2017-08-22 17:44:18 -07:00
Jeremy Elbourn e0b1094d62 chore(e2e): fix consistent timeouts (#6574) 2017-08-22 10:53:15 -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
Jeremy Elbourn 4d82f833c7 feat(cdk): move overlay into cdk (#6100) 2017-08-11 15:42:36 -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
Kristiyan Kostadinov 8b54715053 feat(dialog): open dialog API improvements (#6289)
* Makes the `openDialog` public.
* Adds a unique id to each `MdDialogRef`, as well as the option to override the id and to look dialogs by id.
* The `afterAllClosed` stream now emits on subscribe if there are no open dialogs.

Fixes #6272.
2017-08-07 14:23:21 -07:00
Paul Gschwendtner 18a85f35a1 build: version placeholder replacement grep alternative (#6290)
For the version placeholde replacement a Grep statement is used as well. For Windows environments there is an alternative called `Findstr` which can be used to avoid having a dependency on ported Unix-tools.
2017-08-07 11:34:57 -07:00
Austin 4851dea42e chore(build): add examples to docs build and annotate table examples (#6311) 2017-08-07 10:23:47 -07:00
Paul Gschwendtner 5ecc509763 chore: fix missing types error for screenshot-tool functions (#6286)
The Google Cloud functions for the screenshot-test tool can't be deployed on the CI because there appear to be some errors that indicate that the types for the `jsonwebtoken` package are not installed.

This commit adds the types for the `jsonwebtoken` package to the dependencies (similar as for the dashboard)
2017-08-07 10:19:43 -07:00
Paul Gschwendtner 48d092093d build: fix docs generation highlight files task (#6285)
Recently with https://github.com/angular/material2/commit/edcbb24f11ae776b94d97634ae91e9175ffd6f8a the ambigious variable `path` has been renamed to `filePath`, but there is one remaining instance of `path` that didn't get updated.

This currently causes the docs-content CI job to fail.
2017-08-07 10:19:15 -07:00
Paul Gschwendtner 509e3e90f5 build: fix error when running devapp on windows (#6288)
Currently developers using Windows are not able to serve the devapp because the secondary entry-points can't be resolved. This can happen because of two things:

* `egrep`, which is an alias for `grep -E` is not part of the global `$PATH` variable on Windows
* The Regular Expression for the `grep` call is ambiguous and expects zero-width characters to be present.

This commit changes the `spawnSync` call to use `grep -E` and also changes the Regular Expression to be more explicit about what characters to match after the `from`.
2017-08-07 10:18:48 -07:00
Jeremy Elbourn f913cc992a chore: don't hard-code cdk build order (#6207)
* chore: don't hard-code cdk build order

* Use BuildPackage

* packagename grep

* fix rollup globals conflict
2017-08-04 14:05:07 -07:00
Paul Gschwendtner c6c7908c29 chore(): fix package dependencies for screenshot-tool app (#6276)
Recently some utilities have been moved from the Material package to the CDK package. At this point Material added the CDK as a peer dependency.

The screenshot-test application uses the most recent (released) Angular Material version (due to the caret in the semver expression) but doesn't have a dependency on the CDK yet.

This commit adds the CDK as a dependency and also switches Material and the CDK to the latest build artifcats on GitHub (as same as for the dashboard).
2017-08-04 14:03:26 -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
Paul Gschwendtner f19d2e52ee chore(tslint): custom rules invoke superclass methods (#6215)
A few rules are not implemented properly because their associated walker is overwriting hooks from the `SyntaxWalker` superclass. Those custom hooks need to invoke the method on the superclass as well.

See https://palantir.github.io/tslint/develop/custom-rules/
2017-08-02 14:33:56 -07:00
Paul Gschwendtner 4168fb39db build: stop hardcoding rollup globals for CDK entry points (#6150)
* Now the rollup globals for the CDK secondary entry-points are no longer hard-coded. There is already a method called `getSecondaryEntryPointsForPackage` which can be used.
2017-08-02 14:31:31 -07:00
Paul Gschwendtner 056d3b2e81 build: make packaging more flexible (#6143)
* Makes the packaging more flexible by no longer including checks that are specific to the Angular Material project (e.g `material` => `lib` mapping)
* Updates the code to be more readable by making the packaging more object orientated (TS compilation helpers shouldn't be part of the gulp task generation)
2017-08-01 14:21:39 -07:00
Austin f5dc120fd7 chore(docs): correcting headers and adding header linking (#6040)
* chore(*): correcting headers and adding header linking

* chore(*): add specific class name

* Update docs.ts
2017-08-01 14:17:51 -07:00
Paul Gschwendtner 2320532516 build: no longer add pure annotations to es5 bundles (#6107)
* The pure annotations are no longer added to ES5 bundles of Angular Material or the CDK. The pure annotations should be added by the new build optimizer which is part of the CLI.
2017-08-01 12:48:08 -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
Paul Gschwendtner 3940fab732 build: use version placeholder in package configs (#6112)
Recently the version placeholders had been replaced with hardcoded versions because it was necessary to be able to release the CDK.

But now the version placeholders are replaced in every file and therefore they can be used instead of the hardcoded values.
2017-07-31 11:22:40 -07:00
Kristiyan Kostadinov d9e6f7502a build: add tslint rule to verify rollup globals config (#5963)
Adds a custom tslint rule that ensures that we've added all of the necessary external modules to the Rollup config. This is helpful, because forgetting to add a module will log a warning, but it won't break the build necessarily, which is why we occasionally need PRs like #5930.
2017-07-31 11:13:33 -07:00
Kristiyan Kostadinov ba000bdeee chore: fix linting errors (#6044)
Fixes a couple of linting errors that were introduced in master.
2017-07-28 08:02:04 -07:00
Paul Gschwendtner 3bfe7f0f92 feat: expose version object in releases (#4962)
* In releases there will be a constant called `VERSION` that holds the current version of the installed package (material or cdk)
* This is similar as for every @angular package like core, forms, compiler.
2017-07-27 09:52:12 -07:00
Paul Gschwendtner e52ebd776b chore: add coverage chart to dashboard (#5981)
* chore: add coverage chart to dashboard

* Switch to md-spinner
2017-07-27 09:50:19 -07:00
Paul Gschwendtner 6a18c5d50c chore: better logging for madge (#6003)
* Switches madge to the programmatic API usage which also allows us to ignore warnings about the dependency on `@angular/cdk` which could not be found by Madge (since it's not a node module)
* This also allows us to reduce the amount of messages that Madge prints. Currently the CI output is not readable because the spinner of the Madge CLI spams everything.
2017-07-27 09:49:18 -07:00
Paul Gschwendtner f3b4e7c6b0 build: payload status should not show all digits (#6051)
* Currently we always limit the difference in kilobytes to two digits after the decimal point. This also needs to be done for the full package size to avoid super long numbers.
2017-07-27 09:48:42 -07:00
Paul Gschwendtner 055f662a85 build: properly lint tooling source code (#6055)
* build: properly lint tooling source code

* Fixes a glob that is responsible for IDE's TypeScript service and also for TSLint
* Fixes strict null check errors in the screenshot app. Currently the app can't be compiled properly since strict null checks had been introduced there as well.

* Address feedback
2017-07-27 09:48:30 -07:00
Paul Gschwendtner e79dc291cd build: missing semicolon for typings re-exports (#6057)
* Adds a missing semicolon to the typing re-export statements.
2017-07-27 09:48:22 -07:00
Jeremy Elbourn bcae614d79 build: change cdk to use secondary entry-points (#5922)
* build: change cdk to use secondary entry-points

* refactoring for comments

* fix closure and payload size calc
2017-07-25 16:15:24 -07:00
Paul Gschwendtner 957b8fdd05 chore: default gulp task should not list tasks (#5935) 2017-07-21 09:44:46 -07:00
Kristiyan Kostadinov 3676c2c615 build: e2e failures and add missing rx operators to rollup config (#5930) 2017-07-21 09:32:44 -07:00
Paul Gschwendtner 93b36b3ed8 build: no longer fallback to index.html file (#5879) 2017-07-19 17:37:40 -07:00
Niklas ab659cf254 fix(screenshot): add lang attribute to html element (#5874) 2017-07-19 11:57:58 -07:00
Paul Gschwendtner f2c579ebb1 build: faster live-reload for theme changes (#5877) 2017-07-19 11:57:27 -07:00
Paul Gschwendtner b018f26e70 build: fix screenshot functions deploying (#5780)
* Fixes the screenshot functions deploying by properly resolving the path to the Firebase CLI binary.
* Also cleans up the script to be aligned with the dashboard deployment script.
* Removes firebase-tools as dependency from the dashboard since it's not used there anymore
2017-07-17 16:23:51 -07:00
Jeremy Elbourn d70a669f79 chore: add material-examples to e2e-app (#5735) 2017-07-17 11:14:15 -07:00
Paul Gschwendtner 565261ac51 build: fix golden upload in push builds (#5779)
* Fixes that the screenshot goldens are not uploaded properly in push builds.
2017-07-17 11:12:57 -07:00
Paul Gschwendtner af142a7655 build: add timestamp to coverage reports (#5795)
* Adds a timestamp property to the coverage results that will be uploaded to Firebase
2017-07-17 11:11:45 -07:00
Paul Gschwendtner e14e7afa03 build: fix occasional sass errors when serving dev-app (#5820)
Ocassionally when serving the dev-app, SaSS errors will show up and complain about imports of other SaSS files. This happens because the dev-app builds the theme using SaSS (no prebuilt theme) and every time something changes in the theming files of Material, the dev-app needs to re-build their custom theme. At this point, the dev-app task just watches for changes and rebuilds the dev-app theme. This is problematic because the watch task is not debounced and it will start building the dev-app theme while the SaSS files are not ready yet.
2017-07-17 10:55:49 -07:00
Paul Gschwendtner a34787df5a chore: screenshots task code cleanup (#5416)
Attempt to make the screenshot task more readable and easier to understand. The screenshot task includes a lot of magic (due to the Firebase functions JWT solution) and we should try our best to make it as readable as possible.
2017-07-13 10:24:42 -07:00
Jeremy Elbourn 4f8f6bdd4b chore: use existing screenshot firebase key 2017-07-10 15:45:00 -07:00
Paul Gschwendtner a1a7dcb463 build: fix deploying of screenshot functions
* Updates the dashboard and screenshot deploy script to exit the process immediately if the Firebase token is not set.
* Fixes that the error message of the dashboard still shows the old name of the token variable
* Renames the screenshot variables to follow the dashboard environment variables
* Explicitly specifies the project that will be uploaded in the screenshot deploy script (same as for dashboard)
2017-07-10 15:45:00 -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
Paul Gschwendtner 077ebf63c5 build: fix rollup globals for examples package (#5611)
Recently the rollup globals have been changed because the operators are no longer applied to the prototype (using `/add/` imports).

This now causes some warnigns and invalid id's in the bundles of the Material examples because those still use the `/add/` imports in some examples.
2017-07-08 23:20:34 -07:00
Paul Gschwendtner 5f9a64b526 build: fix dashboard deployment (#5610)
* Fixes the dashboard deployment to Firebase. Currently the deployment is being cancelled because the functions are having compilation errors (due to TypeScript definition updates of `express`)
2017-07-08 23:20:06 -07:00
Paul Gschwendtner 1936d9ee59 chore(dashboard): fix invalid curve for payload chart (#5609)
The dashboard payload size chart showed invalid curves for the Material and CDK package size. This happened because there were multiple different values for the same day (multiple PRs merged into master at the same day). Removing the duplicate values and only taking the last result of the day ensures that the curve is always correct and also makes the chart way better in performance.
2017-07-08 23:19:46 -07:00
Austin be0c7a2ae8 chore(script): autogenerate examples module and metadata (#5608) 2017-07-08 23:19:07 -07:00
Paul Gschwendtner 589dc05149 build: enable no-unused-variable lint rule (#5184)
* Now TSLint starts reporting unused variables again (Rule has been un-deprecated and now uses the type checker
* In favor of linting the whole project the tsconfig file inside of `src/` needs to live in the project root.
2017-07-07 11:42:52 -07:00
Paul Gschwendtner e3f3233c88 build: dgeni is building docs twice (#5536)
* With #5429 dgeni runs twice when running the `gulp docs` command. This is because the dgeni generate function has been added to the `dgeni/index.js` file.
2017-07-06 15:52:01 -07:00