Commit Graph

208 Commits

Author SHA1 Message Date
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
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
Kristiyan Kostadinov 79fb7582dd build: fail build for prerender errors in lifecycle hooks (#5459)
* Currently the build won't fail if an error is thrown inside a lifecycle hook, because `platform-server` writes it to STDERR, but still exits with a 0 code. These changes set up the Universal testing task to fail for these cases as well. This should prevent issues like #5455 in the future.
* Stops logging the entire rendered document after the prerender task is done. This makes the log a bit easier to look through.
2017-07-05 16:30:11 -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
Jeremy Elbourn 45624077c6 docs: add temporary docs for cdk (#5429) 2017-07-05 16:29:35 -07:00
Andrew Seguin 6499ccbb5c Table docs (#5449)
* docs(table): initial table docs

* add filtering msg

* add overview

* fix height

* split cdk table into guide

* revisions

* add to examples

* fix heading

* example changes

* lint

* example style prefix, rename file

* newline
2017-07-05 16:28:51 -07:00
Jeremy Elbourn 8ae4d9d085 build: add flatModuleIndexRedirect to generated metadata redirect (#5512) 2017-07-05 10:35:22 -07:00
Paul Gschwendtner 41942d4678 build: use sequence task function from build-tools (#5473)
* Switches the manual use of `run-sequence` to the utility function `sequenceTask` from the build-tools.
2017-07-05 10:34:05 -07:00
Paul Gschwendtner 9d621c7a82 build: livereload not working for cdk changes (#5452)
When serving the demo-app the Material package will be watched using the generated `material:watch` task. This does not mean that the `cdk:watch` task will run too because Material depends on the CDK.

With this change, the watch task will now also run the watch tasks of the packages it depends on.
2017-06-30 16:28:17 -07:00
Paul Gschwendtner 17c4a44683 chore: dashboard depends on cdk builds (#5395)
Recently stuff has been moved to the CDK and the `material2-builds` repository now depends on the `@angular/cdk`.

Since the dashboard uses the latest version of Material (material2-builds) the CDK dependency needs to be added.
2017-06-29 10:32:19 -07:00
Paul Gschwendtner 58aa0e2c1f chore: enforce whitespace before the opening brace of a block (#5409)
* Enforces whitespace before the opening brace of a block. This makes sure that the code is consistent is everywhere.
2017-06-29 10:31:08 -07:00
Paul Gschwendtner f35f02676c chore: initial chart for dashboard (#5360)
* Adds the initial chart for the payloads inside of the dashboard.
2017-06-27 16:08:56 -07:00
Kristiyan Kostadinov 38b365c21f build: add stylelint rule to prevent nested mixins (#5354)
Adds a Stylelint rule that will prevent uses of nested mixins. This will help prevent issues like #5232 in the future.
2017-06-25 08:18:18 -07:00
Kristiyan Kostadinov f89261eea6 build: add lint rule to prevent rxjs patch imports (#5344)
Adds a rule that will ensure that we don't use patch imports in the library and cdk files.
2017-06-24 05:45:44 -07:00
Kristiyan Kostadinov e488e3fa24 feat: remove uses of rxjs patch operators (#5314)
Refactors the entire codebase not to use the patch operators from RxJS, because they pollute the user's setup. Instead, opts into importing the operators directly and chaining them via the `RxChain` class.

Fixes #2622.
2017-06-23 13:32:24 -07:00
Andrew Seguin 85fb00a151 feat(pagination): initial pagination component (#5156) 2017-06-23 11:51:39 -07:00
Kristiyan Kostadinov 2bf7024527 feat: add support for strict null checks (#5094) 2017-06-21 10:13:52 -07:00
Paul Gschwendtner 665e667e2d build: payload task fails if functions are down (#5217)
It can happen that the firebase `payloadGithubStatus` function is temporary disabled because a deploy failed (for example due to deploying while function executes).
This leads to a failure inside of the payload CI task because the task is trying to parse the body using JSON (which is not always a JSON response)

It's not worth trying to parse the JSON value since it's only used for debugging and to give an insight what's going on in the functions.
2017-06-19 11:48:47 -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 b456eed0b7 build: keep license comment in minified umd (#5196)
* The `preserveComments` option from the old uglify gulp plugin is not valid for the programmatic API. Setting the `comments` option `some` means that license commens will be preserved.
2017-06-19 09:30:37 -07:00
Paul Gschwendtner 135c1df62e build: firebase integration for dashboard (#5182)
* build: firebase integration for dashboard

* As part of the initial dashboard setup, this installs Angular Fire and Angular Material in the dashboard.
* For testing purposes the list of all payload results will be printed right now.

* Address feedback
2017-06-19 09:30:17 -07:00
Paul Gschwendtner 9945ed75b4 build: move packaging out of gulp folder (#5063) 2017-06-16 10:58:34 -07:00
Paul Gschwendtner c8e56b535e build: initial dashboard project (#5148) 2017-06-16 10:22:33 -07:00
Paul Gschwendtner f579ea130f build: faster artifacts deploy script (#5149) 2017-06-15 13:31:15 -07:00
Paul Gschwendtner 7b5b18d5e7 build: get previous payload by querying git (#5122) 2017-06-14 14:50:37 -07:00
Paul Gschwendtner d45d37ae20 build: tslint rule to ensure license banners are set (#5133) 2017-06-14 14:16:40 -07:00
Paul Gschwendtner de68202971 build: enable noUnusedParameters check (#5091) 2017-06-13 11:48:02 -07:00
Paul Gschwendtner 46edae64ba build: separate payload diffs for packages (#5106) 2017-06-13 10:11:23 -07:00
Paul Gschwendtner 88089a7648 build: remove url from payload status (#5092) 2017-06-12 13:48:24 -07:00
Paul Gschwendtner 4bb3c8b909 build: generate docs for expansion (#5054) 2017-06-12 11:00:57 -07:00
Paul Gschwendtner 349c2d6c42 build: fix payload function invalid diff (#5059) 2017-06-12 11:00:01 -07:00
Kristiyan Kostadinov a6456a2352 build: missing import in payload script (#5058) 2017-06-12 10:56:45 -07:00
Paul Gschwendtner c2816efde4 build: payload github status (#4549)
* build: payload github status

* Show payload deta on PRs using the Github Statuses API.

* Update config variables
2017-06-09 16:09:26 -07:00
Paul Gschwendtner 3a23d313d0 build: fix missing prebuilt themes (#5042)
* build: fix missing prebuilt themes

* Fixes that the prebuilt themes are not copied over to the release output.
* Introduces two more checks (specifc for material) in the validate-release task
* Fixes that the generation of the theming SCSS bundle happens outside of gulp.

Fixes #5038

* Logic improvements.
2017-06-09 16:08:56 -07:00
Paul Gschwendtner bae213d5f7 build: dynamic build config for packaging (#4939)
* build: dynamic build config for packaging

* Make discussed changes
2017-06-08 11:24:58 -07:00
Paul Gschwendtner 22e14490d2 build: fix dashboard error (#5010)
* Fixes a TypeScript error in the dashboard functions.
2017-06-08 11:24:49 -07:00
Joey Perrott cac7610460 feat(expansion-panel): introduce expansion panel" 2017-06-07 16:54:31 -07:00
Paul Gschwendtner 3e993b651c fix(dialog): invalid text color in dark themes (#4849)
In dark themes the dialog container will have a dark background and the text should therefore have a light text color.

Currently the text color is still dark on a dark background which causes the dialog to look bad in dark themes.
2017-06-05 15:43:56 -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 98ce6357d3 build: remove github status api (#4957)
Removes the Github Status API from Gulp since it's not used anymore and won't be used anymore. The reason is that all API requests to Gtihub will happen from Firebase functions

Sending requests to the Github API from Firebase functions ensures that nobody can leak Github / Access tokens and that we can send API requests for Pull Requests too.
2017-06-05 14:50:14 -07:00
Andrew Seguin 41c43cc3ec fix(navbar): update ink bar when links change (#4897)
* fix(navbar): update ink bar when links change

* remove add link

* fix test

* change strategy - use mutation observer

* cleanup
2017-06-05 14:45:19 -07:00
Paul Gschwendtner 7af93bc5e3 build: switch to new dashboard firebase instance (#4954)
* Switches to a new Firebase instance for the Dashboard.
2017-06-05 11:13:05 -07:00
Paul Gschwendtner 1d7b7520f5 build: properly inline multiple styles (#4911)
* Recently we moved the inline script to the packaging directory and we cleaned up some logic. At this point the multiple style files inlining broke accidentally.
* We joined the different styles using a comma inside of the inlined stylesheet (while we were trying to create a array). Instead it would be just easier to concatenate the styles using a space.
2017-06-02 13:52:41 -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 4c9871427b build: validate-release check for external resources (#4907)
* Adds a check to the `validate-release` task that checks for any references to external resources.
2017-06-01 08:49:44 -07:00
Paul Gschwendtner 52b6692472 build: move inline resources script to tools (#4894)
* build: move inline resources script to tools

* Moves the inline resources script to the `tools/gulp/packaging` folder. This is necessary when exposing the build tools (e.g for flex-layout)
* This also makes the packaging more clean because no external script is referenced (also switched to TypeScript and improved code)

* Address comments

* Update comment
2017-05-31 16:20:00 -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
Kristiyan Kostadinov 8804caf3f5 build: add stylelint rule to prevent usage of /deep/ (#4841)
* build: add stylelint rule to prevent usage of /deep/

Adds a custom Stylelint rule to prevent usages of `/deep/` inside selectors.

Relates #4726.

* fix: address feedback
2017-05-31 16:18:58 -07:00