Commit Graph

99 Commits

Author SHA1 Message Date
Paul Gschwendtner becb7a87e0 build: tsconfig for editor warnings (#3791)
* build: tsconfig for editor warnings

Currently when using a code editor that uses the TypeScript language service (Webstorm / VS Code / Atom / Sublime) there will be TypeScript errors in the `.spec` files.

This is because the editor finds the `tsconfig.json` file that doesn't match the spec files. Therefore it complains about the `experimentalDecorators`.

In `angular/angular` there is a global `tsconfig` file that matches everything and is therefore fixing the editor warnings. This file is also used to compile all `.spec` files for the whole project.

We can add such a `tsconfig.json` file as well, and in the future we can use it for compiling the specs as well.

* Add docs for tsconfig files
2017-03-30 02:13:33 +08:00
tinayuangao 23d18a80b3 test(screenshot): enable screenshot tests w/ Firebase Functions and JWT (#3628)
Set up firebase functions to copy valid data to firebase storage/database
Use JasonWebToken to validate data written to firebase
Github Status change will be done in another PR
Result at: https://material2-screenshots.firebaseapp.com/3628
2017-03-24 17:40:25 -07:00
Jeremy Elbourn 5f360f9a08 build: package theming files into release output (#3776) 2017-03-24 17:37:11 -07:00
Jeremy Elbourn 71229756a5 build: update packaging to match angular/angular (#3751)
* build: restructure release output

* build: inline metadata.json resources

* build: output re-export meatadata.json file in package root
2017-03-24 14:06:45 -07:00
Kristiyan Kostadinov cd55082a48 feat: angular 4 compatibility (#3608)
* Bumps the required Angular version to 4 and TypeScript to 2.1.6.
* Fixes deprecation warnings for `<template>` usages.
* Fixes any unit and e2e test failures.
* Includes the new animations module and switches any components that use animations to it.
* Fixes issues with the various test apps.

Fixes #3357.
Fixes #3336.
FIxes #3301.
2017-03-23 14:46:47 -07:00
Paul Gschwendtner 2dbf87c7a5 build: don't run karma if typescript compilation fails (#3668) 2017-03-20 12:56:47 -07:00
Paul Gschwendtner 259ff5f94e build: include scss files in releases (#3661)
* Includes the SCSS files in releases. This has been accidentally disabled in PR #3443
2017-03-20 09:51:53 -07:00
Joshua Wiens 51979069bd build(components): update TypeScript ScriptTarget option (#3663)
The ScriptTarget `ES6` does not exist in newer versions of TypeScript and is instead `ES2015`
2017-03-20 09:50:41 -07:00
Paul Gschwendtner b810e11fa4 build: ship esm bundle (#3443)
* build: ship esm bundle

* Now ships a Flat / ESM bundle (similar as for Angular 4+ releases)
* In future PRs we will remove the single ES-files and can just link to the ES bundle (as in angular/angular).

* Use template strings for diagnostic
2017-03-17 13:25:01 -07:00
Kristiyan Kostadinov 7cfece2540 build: replace gulp-autoprefixer (#3563)
* build: replace gulp-autoprefixer

* Removes `gulp-autoprefixer` in order to avoid issues with Google's internal build system.
* Switches to adding vendor prefixes via SCSS mixins.
* Adds a custom Stylelint plugin that utilizies Autoprefixer to find unprefixed properties, values, @rules etc.

Fixes #3536.

* fix: missing import

* fix: address feedback
2017-03-17 11:13:38 -07:00
Paul Gschwendtner 5f3abae3b6 build: show inherited members in dgeni (#3599)
* build: show inherited members in dgeni

* Introduced a new Dgeni processor that will take care of the inherited docs for TypeScript classes.
* Cleaned up the categorizer processor and made it compatible with the `inherited-docs` processor.
* Fixes that the `docs-private-filter` processor doesn't filter the referenced members in the class docs.

This basically allows us to extend other classes in our components like in #3036

* Handle private-docs param for all docs.

* Address comments

* Address feedback
2017-03-17 10:42:17 -07:00
Paul Gschwendtner 0609e295a5 build: create a util directory (#3558)
* Introduces a new directory called `util` in the gulp setup. This should make the gulp setup more clear and maintainable.
* The utility `task_helpers` no longer includes random utilities like for Firebase. Those have been moved to their own util file (similar as in `e2e/`)
* Refactors the Github Status utility because it can be useful for other things as well (e.g upcoming coverage, payload)
2017-03-14 11:31:15 -07:00
Paul Gschwendtner 06fd08d822 build: replace forbidden-identifiers with tslint (#3579)
* Replaces the big `forbidden-identifiers` script with TSLint rules.

Closes #2175
2017-03-13 14:26:13 -07:00
Raven Avalon cdb3763be7 chore(tools/gulp): add html minifying task to generated docs (#3476) 2017-03-10 11:44:18 -08:00
tinayuangao 9849c53c70 stop screenshot (#3506) 2017-03-09 14:21:57 -08:00
mmalerba 5960ade305 class alias tags in html generated from markdown (#3525)
* class alias tags in html generated from markdown

* addressed comments

* address comments
2017-03-09 14:00:55 -08:00
Paul Gschwendtner bbe9519535 build: upload coverage to firebase (#3435)
* Introduces a gulp task that will run on Travis Push builds and will upload coverage results to a Firebase database.

Closes #128.
2017-03-08 18:09:57 -08:00
Paul Gschwendtner 4ee2aef07c build: run tslint on tool files (#3436)
* Since we had a lot of TSLint issues on our tooling scripts & tasks, we should run TSLint on those as well.
* Also updates Dgeni to latest version, because it now supports TypeScript typings.
2017-03-06 16:52:21 -08:00
tinayuangao 14912911e4 feat(screenshot): Update screenshot golds for merged PR (#3365) 2017-03-01 15:55:18 -08:00
Paul Gschwendtner 252db25b6f build: fix dgeni warning for component-groups (#3362) 2017-03-01 11:58:48 -08:00
Paul Gschwendtner 4935b24b85 build: make app tasks optional (#3361) 2017-03-01 11:58:17 -08:00
Paul Gschwendtner cb57660981 fix(docs): only rewrite relative links (#3339)
Fixes #3147
2017-03-01 09:17:49 -08:00
Paul Gschwendtner 9cfe603986 test(): add testing utilities for components (#2943)
Closes #2902
2017-02-27 09:52:48 -08:00
mmalerba ca56ebbf6b Revert "update: add button to toggle theme in demo-app" (#3271) 2017-02-23 13:32:46 -08:00
Paul Gschwendtner 47cc025e4b chore: add button to toggle theme in demo-app (#3093)
* update: add button to toggle theme in demo-app

* Adds a button to the demo-app toolbar that allows developers to quickly change between dark and light Material themes.
  This is very useful when building new components or just when confirming that all components work with dark themes.

* Improve list-demo in dark-theme

* Fix stylelint

* Address comments
2017-02-22 15:30:36 -08:00
tinayuangao bd6feb382b feat(screenshot): Add a gulp to compare screenshot diffs, upload results to gcs & firebase (#2774)
* Add google cloud storage

* Add screenshots to e2e test

* Renamed functions. Add types. Remove firebase, use firebase-admin

* dependencies

* Save pull request sha to firebase db

* Save travis job id

* Add function to update github commit status

* remove update status code

* Add update status

* Address comments

* Add fs-extra

* try using ES6 Promise

* .

* Fix cannot find name promise

* Add back function to save filenames to firebase

* Update comments
2017-02-21 11:29:49 -08:00
Paul Gschwendtner 5e038c3ef2 build: fix invalid glob to remove specs (#3019)
* Fixes an invalid glob that is used to cleanup the dist folder before cutting a release.
   Currently all spec.d.ts files will be shipped as well.
2017-02-10 13:41:35 -08:00
Andrew Seguin bc522980f9 feat(tooltip): reposition on scroll (#2703)
* feat(scrolling): add throttle to scroll dispatcher; add scroll adjust to tooltip

* finish tests

* adjust demo styling

* remove events logger from scroll dispatcher

* fix auditTime in components.ts

* skip auditTime if set to 0ms

* fix tests

* fixing tests

* fix IE and FF test failures

* import fix
2017-02-10 03:59:12 +08:00
Raven Avalon f73fd7d9ea chore(tools): add syntax highlighting logic for examples (#2951) 2017-02-09 07:02:37 +08:00
Paul Gschwendtner 4b830d33d5 build: no longer run dgeni twice (#2954)
* Currently when running dgeni using the `gulp api` task, Dgeni will run twice.
  This happens because the `dgeni/index.js` file calls `generate()` and the gulp task does that as well.

The `dgeni/index.js` file should be just responsible for exporting the dgeni package.
2017-02-06 15:00:46 -08:00
Paul Gschwendtner d9f57001cd build: run tslint against e2e directory (#2945)
* Now runs TSLint also against the e2e/ directory.
* Add comments for the different tasks in the lint file.
* Refactors the screenshot e2e file to pass TSLint and also to be less nested.
2017-02-06 15:00:26 -08:00
Raven Avalon ba12f440c1 feat(scripts): push generated docs to material assets repo (#2720) 2017-02-06 11:56:54 -08:00
Kristiyan Kostadinov 89351eba06 chore: include web animations polyfill in demo app (#2848) 2017-02-02 13:58:18 -08:00
Paul Gschwendtner 60f03ed7dd fix(docs): properly create links in guide files (#2770) 2017-01-31 15:10:53 -08:00
Paul Gschwendtner 4a4261e141 build: use typescript cli for compilation (#2802) 2017-01-30 12:08:59 -08:00
Elad Bezalel 408c58d569 style(branding): branding consistency fixup (#2805)
fixes #2803
2017-01-26 15:35:39 -08:00
Paul Gschwendtner 71c6829949 build: exclude system-config-spec.ts for releases (#2754)
* No longer publishes the `system-config-spec.ts` file in releases. Extending the glob to also remove the `-spec.ts` files.
  In the future it's planned to not build spec files for releases at all..
2017-01-24 14:09:35 -08:00
Kara 5def001e59 feat(autocomplete): add value support (#2516) 2017-01-19 14:07:40 -08:00
Paul Gschwendtner 5f47a40cd5 chore: properly exit karma runner (#2653)
* Properly exit karma in single-run mode when errors are recognized.
* This looks like its caused by the karma launchers, that connect to Browserstack or Saucelabs and which doesn't close the connection poperly when karma exits with an error code.
2017-01-17 17:27:34 -08:00
Jeremy Elbourn 7727387755 chore: remove debugging styles from api docs template (#2592) 2017-01-13 14:58:46 -08:00
limerick 0c75643c7d build:change gulp clean dist dir (#2582) 2017-01-12 13:26:14 -08:00
Kara d4ab3d3fea feat(autocomplete): add autocomplete panel toggling (#2452) 2017-01-06 16:15:32 -08:00
Paul Gschwendtner eec3108bbc chore: gulp-typescript v3 detects typescript version (#2531) 2017-01-05 17:35:04 -08:00
Kristiyan Kostadinov bdc48a8371 build: avoid typing errors in TypeScript 2.1 and update gulp-typescript (#2456)
Related to #1998.
2017-01-04 10:36:28 -08:00
Paul Gschwendtner 82ae2b5302 chore: remove line-break escapes in firebase private key (#2510) 2017-01-03 17:18:40 -08:00
Paul Gschwendtner e2989b3b98 chore: track library payload in database (#2463)
Closes #111
2017-01-03 13:31:49 -08:00
Paul Gschwendtner b3ae5214ea build: no longer build components twice for e2e task (#2457) 2017-01-03 13:25:56 -08:00
Paul Gschwendtner 329bfd08e4 chore(e2e): remove e2e watch task (#2482) 2017-01-03 11:42:19 -08:00
Paul Gschwendtner 8b2a226c04 chore(api): show exportAs name in documentation (#2433) 2017-01-03 09:30:48 -08:00
Kristiyan Kostadinov f2a4642bae chore: bump year (#2484) 2017-01-03 09:28:03 -08:00