Commit Graph

124 Commits

Author SHA1 Message Date
Jeremy Elbourn 76faae5f37 chore: add @__PURE__ annotation to ES5 output for uglify (#4147) 2017-04-20 18:57:21 -07:00
Josh Hall 740381cce1 docs: Show directive selector in generated API docs (#4139)
Fixes #3983
2017-04-20 18:46:08 -07:00
Paul Gschwendtner 7c81698e17 build: dedupe theming scss bundle (#4174)
Fixes #3931
2017-04-20 18:45:01 -07:00
Paul Gschwendtner c63cf87104 build: output directory for gulp tsconfig (#4186) 2017-04-20 18:44:15 -07:00
Paul Gschwendtner fe7570a1da build: test cdk in aot and closure (#4142) 2017-04-18 15:57:44 -07:00
Kristiyan Kostadinov 4bfd2a387c build: add tslint formatting task (#4109) 2017-04-18 15:13:07 -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 d0a41d974a chore: remove travis fold utility (#4132)
Removes the Travis CI fold utility file. The file isn't used in our CI
process and is therefore unnecessary.
2017-04-18 09:25:57 -07:00
Paul Gschwendtner a7ca7c1f24 build: build cdk package (#4111)
* Introduces another package called `@angular/cdk`. This package is
currently empty but all the logic for SASS, HTML, TypeScript and tests
is ready.
2017-04-17 15:18:16 -07:00
tinayuangao b2ca0f5d84 feat(screenshot): add control panel for pixacto (#4055) 2017-04-17 15:17:41 -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 a773515c56 build: detect todos in public comments (#4059)
* build: detect todos in public comments

* Creates a naive rule that checks all multi-line comments and reports failures once it detects TODOs inside of it.

* This means that TODOs always need to placed inside of single-line comments.

Fixes #4026
2017-04-14 13:06:38 -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
Paul Gschwendtner b5f15ad2ed build: dgeni add deprecated marker (#4028)
* build: dgeni add deprecated marker

* Adds a class to property rows in the template that can be used to distinguish between deprecated and stable APIs.

Fixes #3981.

* Address feedback
2017-04-13 09:52:41 -07:00
Paul Gschwendtner 8b411ad78c build: copy readme to releases (#4079)
* Due to a typo the `README.md` file is not copied properly to the releases.
2017-04-13 09:12:12 -07:00
Paul Gschwendtner 205690f359 build: publish material-examples package to docs content (#4064) 2017-04-12 17:40:31 -07:00
Paul Gschwendtner 60ea218c67 build: use version placeholder in packages (#4065)
* Introduces a version placeholder (as in angular/angular) that will be replaced with the version string form the root `package.json` file.

* This ensures that the different packages are always having the correct version and it also ensures that there is no version-mismatch.
2017-04-12 17:19:18 -07:00
Paul Gschwendtner abd2ac6489 build: create material-examples package (#4046) 2017-04-12 16:37:08 -07:00
Jeremy Elbourn e0124bba38 chore: publish examples assets for plunker with docs content (#3987) 2017-04-10 09:52:19 -06:00
Jeremy Elbourn 1da2b70668 chore: add additional structure to generated docs (#3985)
* For API docs, wrap each generated document in `.docs-api`
* For markdown docs, wrap each generated document in `.docs-markdown`
* Remove the `h1` from API docs that contained only the component name
* Change the `h2` for API docs to be a friendlier title followed by an example import.
* Increase header level for API by one across the board (so that they're "under" the new `h2`)
* A few misc. docs fixes
2017-04-08 16:27:10 -06:00
Jeremy Elbourn 3819cc6904 chore: copy LICENSE to release package (#3957) 2017-04-07 17:03:25 -06:00
tinayuangao 9361ced850 chore: fix screenshot results to be per-sha (#3887) 2017-04-04 17:18:20 -07:00
Paul Gschwendtner a225b77fc4 build: silent sass bundling (#3784)
* No longer prints the whole SASS file-tree when running the `build:release` task.
* Added a new options that allows disabling STDOUT messages. STDERR is important for error messages.
2017-04-01 01:42:44 +08:00
Paul Gschwendtner 07bc4add13 build: fix serve task (#3794)
* build: fix serve task

* Currently when serving the dev-app or e2e-app and chanages are recognized, the library task will run. This task clears the whole `dist/` and rebuilds then.

* This is problematic because sometimes only the library will be rebuilt and for example the `dev-app` won't be rebuilt. After the task ran, the `dev-app` is removed and the serve task will crash.

* Rename to library:clean-build
2017-03-30 02:13:45 +08:00
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