Commit Graph

178 Commits

Author SHA1 Message Date
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
Paul Gschwendtner 964033ce8d build: add dashboard firebase functions (#4806)
* build: add dashboard firebase functions

* Adds a new folder for the dashboard project that for now only contains firebase functions.
* The firebase functions will be used to securely make API calls to the Github API (e.g payload status)
* Functions will be automatically deployed as same as screenshot functions.

* Address feedback
2017-05-31 16:18:34 -07:00
Jeremy Elbourn be8d3b23d2 fix(datepicker): generate api docs (#4756)
This also adds handling for directives with generics, which we have not had before. Dgeni treats this as "members" and they need to be disambiguated from properties.
2017-05-30 17:00:05 -07:00
Paul Gschwendtner 508b14198d build: minify html before inlining resources (#4877)
* build: minify html before inlining resources

* Now minifies the HTML files before inlining the resources. This drops unnecessary whitespace due to previous line breaks and developers can easily test with Material components.

Fixes #1596

* Address comment
2017-05-30 11:44:23 -07:00
Paul Gschwendtner 3f08e37d13 build: serve e2e-app in aot mode (#4833)
* build: serve e2e-app in aot mode

* Starts building the e2e-app in AOT mode

* Address comments
2017-05-30 10:38:32 -07:00
Paul Gschwendtner 1847819de1 build: scss changes not live-reloading (#4870)
* Sometimes the theme SCSS changes are not being reflected in the browser. This is because the demo-app theme is built from the SCSS mixins and those aren't rebuilt whenever CSS changes inside of Material.
2017-05-30 09:27:31 -07:00
Paul Gschwendtner e107d6e686 build: invalid tsconfig for screenshot functions (#4831)
The tsconfig for the Screenshot function specifies a non existing `index.ts` file. This leads to errors in the TypeScript project because the source files are not being loaded with the ES2015 library (e.g Promise is undefined)
2017-05-30 09:25:43 -07:00
Paul Gschwendtner fb5520cebf build: move server rendering to dist (#4822)
* build: move server rendering to dist

* Verifying that Material works with `platform-server` now happens in the `dist/` folder (instead of the src/ folder)
* Adds a gulp task to build the universal application. In the future serving the app will be also part of this

* Address comments
2017-05-30 09:22:18 -07:00
Paul Gschwendtner 12d6e968c2 build: properly add pure annotations with tslib (#4819)
Recently with #4787 the tsc generated helpers got replaced with helpers from the `tslib` package.

This means that the generated IIFE statements are different than before and the pure annotations RegExps don't work anymore.
2017-05-26 12:37:00 -06:00
Paul Gschwendtner 5c6a6856a1 build: move release packages to constants (#4818)
* build: move release packages to constants

* Moves the list of packages that should be released to the constants file.
* Sets the executable bit flag on the `deploy-screenshot-functions.sh` script

* Rename constants to build config
2017-05-26 12:36:10 -06:00
Andrew Seguin 7db2762d78 feat(data-table): minimal beginning implementation (#4468)
* feat(cdk-table): initial version

* add files

* remove unnecessary deps

* add test

* add tests

* edit comments

* minor style changes

* changes due to comments

* add test for column classes

* add OnPush to rest of components

* remove double quotes from colors.ts

* lint fies

* add comments to demo css

* comments

* split directives into separate files

* lint

* add content check in tests

* renaming directives

* remove fdescribe

* rename private placeholders; adjust comments; change CollectionViewer

* lint

* change jasmine array param

* remove unnecessary import from spec

* move out of core; add console warning about instability

* move jasmine-matchers

* fix demo
2017-05-25 17:50:32 -06:00
Paul Gschwendtner affcf5e454 build: fix screenshot functions export (#4807)
* The Firebase CLI is not able to properly detect the Firebase functions for the screenshot project. This is because the functions are not re-exported.
2017-05-25 14:38:05 -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 eddf30daf2 build: properly close firebase apps (#4743)
* Properly close the Firebase app connections to avoid that the NodeJS process keeps hanging.
2017-05-23 14:56:40 -06:00
Paul Gschwendtner 79c9c85912 build: better naming for firebase token (#4742)
Changes the `MATERIAL2_FIREBASE_PRIVATE_KEY` to `MATERIAL2_DASHBOARD_FIREBASE_KEY` because it's confusing to just say that its for firebase.

Giving it a more explicit token as same as with the screenshots ensures that we have a structured & clean list of tokens in our CI settings.
2017-05-23 14:56:07 -06:00
Paul Gschwendtner 3569805a4a build: move packaging in separate folder (#4719)
* build: move packaging in separate folder

Moves all related packaging code into a `packaging` folder inside of gulp.

At some point we can move the folder completely to `tools/` and can share it with other repositories like `flex-layout`.

* Split up build utils
2017-05-22 16:02:08 -06:00
Paul Gschwendtner fa5b4278ff chore: no longer use MaterialModule (#4571)
* Replaces the `MaterialModule` with custom NgModules that contain all required Material modules.

Closes #4532
2017-05-22 15:52:53 -06:00
Paul Gschwendtner d1b5e86fcf build(dgeni): capital letter for selector (#4690)
* The label for the `selectors` should start with a capital letter. Similar as for the `Export as` label.
2017-05-22 12:40:20 -06:00
Paul Gschwendtner 7f4516a91e build(docs): markdown for api descriptions (#4689)
* Parses Class, Property and Method descriptions using a markdown filter from Dgeni.

Closes #3924
2017-05-22 12:28:59 -06:00
Paul Gschwendtner 085b45995a build: fix umd module names (#4683)
* Fixes that the UMD module names are invalid. Currently they look like `ng.material.material` while it should be just `ng.material`.
2017-05-22 12:28:37 -06:00
Paul Gschwendtner 45ddb5b084 chore: remove unused vendors variable (#4528)
* Removes the unused `NPM_VENDOR_FILES` variable because the vendors aren't copied anymore.
2017-05-15 11:20:46 -07:00
Paul Gschwendtner 876ab875b5 build: copy sourcemaps for prebuilt themes (#4529)
* The transpiled prebuilt themes include references to sourcemaps. Those sourcemaps don't exist in releases and developers might get warnings.

Fixes #4299
2017-05-15 11:20:26 -07:00
Paul Gschwendtner 77fddd1049 build: release cdk in publish task (#4547)
* Adds the CDK to the `publish` task. This allows us to release Material and the CDK together.
2017-05-15 11:20:00 -07:00
Paul Gschwendtner 32c3ef4a69 build: faster building of tests (#4509) 2017-05-12 14:30:12 -07:00
Jeremy Elbourn f27df86a00 fix(universal): gate several browser-specific bits on being on the browser (#4251)
Related to #308
2017-05-11 15:23:04 -07:00
Paul Gschwendtner ce745018b0 build: run madge against cdk (#4450) 2017-05-10 12:22:58 -07:00
Paul Gschwendtner 2c65117ba0 build: payload tracking for cdk (#4461) 2017-05-10 12:22:44 -07:00
Paul Gschwendtner f8a2860408 build: script to build demo-app for firebase (#4330)
* build: script to build demo-app for firebase

* Adds a new gulp task that can be used to build the devapp in "deploy"-mode. This allows us to deploy the demo-app on firebase.

Fixes #3857

* Add firebase deploy task
2017-05-04 14:47:37 -07:00
Paul Gschwendtner 3acf2a2cdd build: fix multi-line selectors in dgeni (#4336)
* Fixes multi-line selectors not being detected properly (https://github.com/angular/material2/blob/master/src/lib/button/button.ts#L185-L185)
* Template strings not being detected properly (https://github.com/angular/material2/blob/master/src/lib/input/input-container.ts#L103-L103)
* No longer repeats RegExp logic multiple times. More generic function.
2017-05-02 16:39:23 -07:00
Kristiyan Kostadinov 244aece0fe feat(observe-content): add debounce option and other improvements (#2404)
* feat(observe-content): add debounce option and other improvements

* Adds a reusable utility for debouncing a function.
* Adds the ability to debounce the changes from the `cdkObserveContent` directive.
* Makes the `cdkObserveContent` directive pass back the `MutationRecord` to the `EventEmitter`.
* Fires the callback once per mutation event, instead of once per `MutationRecord`.

Relates to #2372.

* Remove flaky tests.

* Stub out the MutationObserver.

* refactor: use debounce logic from rxjs

* chore: fix lint error

* fix: refactor the MutationObserver token to not break AoT
2017-05-02 16:39:14 -07:00
Paul Gschwendtner c5680c0fa0 build: combine multiple stylelint tasks (#4335)
* Combines the multiple stylelint tasks into a single one. Stylelint supports globs using `globby`.
2017-05-02 16:38:03 -07:00