Commit Graph

151 Commits

Author SHA1 Message Date
Paul Gschwendtner 2b8f753028 build: use shared logic to build packages (#4202)
* build: use shared logic to build packages

* No longer creates the whole set of gulp tasks just to build a single package.
* Makes the package building & releasing more consistent. No extra `build:release` just for the `lib` package.

References #4108

* Address feedback
2017-04-25 09:50:47 -07:00
Paul Gschwendtner 7c81698e17 build: dedupe theming scss bundle (#4174)
Fixes #3931
2017-04-20 18:45:01 -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 1328307bb8 build: remove outdated tslint rule (#4121)
* At some point in tslint the `no-unused-variable` rule has been deprecated in favor of `noUnusedLocals` and `noUnusedParameters`. Since we don't want to have compilation errors for unused variables we re-implemented the `no-unused-variable` rule ourself and used it as a custom rule.

* Recently we switched to a newer version of TSLint and TypeScript and the custom tslint rule won't ever work again. (tslint now requires a type-checker to be enabled). The custom rule fails currently and causes TSLint to not work with some editors (e.g Webstorm).
2017-04-18 09:24:33 -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 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
Jeremy Elbourn 94320c4e68 chore: update tslint to v5 and fix newly surfaced issues (#3958) 2017-04-07 16:59:03 -06:00
Jeremy Elbourn f396657b04 chore: bump version to beta.3 and add changelog (#3953) 2017-04-07 14:59:46 -06:00
Daniel H 98c0b1d58e build: fix build script in package.json (#3915)
Previously the build script tried to run an invalid gulp task.
2017-04-05 11:18:50 -06:00
Paul Gschwendtner 51cfb5f75f build: run closure-compiler (#3789)
* build: run closure-compiler

* Adds a script that runs the closure-compiler against the devapp / demo-app.
* The script will run on the CI as a new mode. Ensuring that all our components are closure-compatible.

Fixes #1206.

* Address feedback
2017-03-30 02:13:19 +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 a25e7bb09b chore: bump to angular 4 final (#3752)
Bumps the version to Angular 4 final. The release is pretty safe and shouldn't need any code changes.
2017-03-24 10:20:19 -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 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
Dale Lotts bf2b6150df fix(package.json): Fix failing npm run api command (#3462)
api script was running the incorrect gulp command.
2017-03-14 13:10:27 -07: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 d78a370f3e build: upgrade dev dependencies (#3440)
* Upgrades outdated devDependencies to the latest version.
2017-03-06 16:52:56 -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 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
Andrew Seguin c992e5f498 chore: bump version to beta.2 (#3118)
* release: generated changes

* updating breaking changes

* minor changes

* add a fun inventive name that sets up apart from everyone else

* add note that forroot is deprecated

* add note about module

* fix select

* add new line for module example

* add ts styling

* add md input example

* indent input example
2017-02-15 16:17:47 -08:00
Paul Gschwendtner 8eb9f88520 build: fix jasmine types (#3080) 2017-02-13 14:07:50 -08:00
Paul Gschwendtner 140c95c2e8 build: increase minimum angular version (#3017)
* Currently Angular Material supports Angular v2.2.0, but some components already use methods that are only available in `v2.3.0`.
  This means that Material isn't really compatible with v2.2.0 anymore.

* Since Angular `v.2.3.0` includes a lot of good fixes (like proper metadata inheritance) we should upgrade to `v2.3.0`.
  See https://github.com/angular/angular/commit/f5c8e0989d85bc064f689fc3595207dfb29413f4

Related to #2394
2017-02-10 15:17:56 -08:00
Paul Gschwendtner 902edd0213 chore: update tslint to latest version (#2952)
* chore: update tslint

* Updates TSLint to the latest version.
* Due to some breaking changes we had to temporary disable the `no-inferrable-types` rule. Need to revisit once https://github.com/palantir/tslint/issues/2158 is addressed.

References #2175

* Use custom tslint rule
2017-02-10 02:33:35 +08:00
Raven Avalon f73fd7d9ea chore(tools): add syntax highlighting logic for examples (#2951) 2017-02-09 07:02:37 +08:00
Kristiyan Kostadinov 86a10d216c chore: fix deprecation warning and bump stylelint version (#2932)
Removes a deprecated Stylelint from our config and bumps the Stylelint version.
2017-02-09 07:02:07 +08:00
Paul Gschwendtner 46edc235d7 chore: bump dev dependencies (#2890)
* Updates some outdated dependencies in the material2-srcs package.
2017-02-06 14:58:22 -08:00
Kristiyan Kostadinov 89351eba06 chore: include web animations polyfill in demo app (#2848) 2017-02-02 13:58:18 -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 55b9224893 chore: run travis with Node LTS version (#2786)
* Switches Travis CI to the NodeJS LTS release. `6.9.4`.
* Changes the package.json name for the sources to be similar as in `angular/angular`.
2017-01-24 14:16:37 -08:00
Paul Gschwendtner d1381b6f03 chore: cleanup dev-dependencies (#2654)
* chore: cleanup dev-dependencies

* Removes unused dev-dependencies from Angular CLI-times.
* Bumps versions for packages which have a newer version available.
* Pushes the yarn.lock file as disucssed.

* https://github.com/angular/dgeni-packages/commit/8ad91e57860b7b0ac622e82f8e6361d1ad7587d2

* Don't upgrade firebase CLI
2017-01-17 17:28:11 -08:00
Paul Gschwendtner 4ab6f30f50 chore(e2e): update to latest protractor version (#2608)
* chore(e2e): update to latest protractor version

* Updates to the latest Protractor version, which now uses Selenium V3
* The new types for Protractor v5 include the fix for the missing `chord` function (See https://github.com/DefinitelyTyped/DefinitelyTyped/commit/123690bb2e0f9dac2371084369a8ecf8976cbb34)
* Methods like `innerHtml` have been removed in Protractor v5 (https://github.com/angular/protractor/blob/master/CHANGELOG.md)

* Test later chromedriver version
2017-01-13 14:59:01 -08:00
Paul Gschwendtner 8470534061 chore: only publish artifacts once (#2537) 2017-01-05 17:34:21 -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 e2989b3b98 chore: track library payload in database (#2463)
Closes #111
2017-01-03 13:31:49 -08:00
Paul Gschwendtner bbe9915342 chore(karma): add support for sourcemaps (#2448) 2017-01-03 13:26:21 -08:00
Paul Gschwendtner 7cee84db10 chore: use gulp-connect as webserver (#2409)
* No longer rebuilds all components when changes have been recognized in the dev-app.
* Allows us to only reload when gulp already recognized a change (no need for filtering and extra watchers)
* No longer injects CSS as the previous live-server (injecting CSS does not work for Angular 2)
2016-12-27 19:28:29 -08:00
Jeremy Elbourn 33b152d703 chore: bump version to beta.1 and update README (#2381)
* chore: bump version to beta.1

* Update README for beta and January
2016-12-23 11:45:51 -08:00
Paul Gschwendtner aefe1d7b1e chore: remove hammerjs types as dependency (#2369)
* Removes the hammerjs types as a dependency to the @angular/material package (we don't have a dependency on hammerjs)
* Improves the name in the root `package.json` to show that this pkg file is just for the development (like in Angular)
* Moves hammerjs in development to the `devDependencies` because we need it always in our dev environment (same as in Angular 2)
2016-12-23 10:13:01 -08:00
Paul Gschwendtner f5446024ed chore: ensure typescript stays compatible with ngc (#2330)
* Ensures that the current `typescript` version is always compatible with the current `@angular/compiler-cli`.
2016-12-23 10:10:23 -08:00
Jeremy Elbourn 98be99394c chore: bump version to beta.0 (#2360) 2016-12-22 15:04:11 -08:00
Jeremy Elbourn c7b1ec5c16 chore: add syntax highlighting to generated overview docs (#2333) 2016-12-22 00:58:48 -08:00
Paul Gschwendtner 965cd7a966 chore: move umd bundles to bundles directory (#2316)
* Moves the generated `.umd` files to the `bundles/` directory (as @angular/core)
* Uses a gulp plugin for rollup because its more clear and also allows us to easily minify & create sourcemaps in the future
2016-12-21 10:17:35 -08:00
Paul Gschwendtner d788718ade chore: fix incorrect gulp task in pkg scripts (#2319)
Fixes #2301
2016-12-21 10:16:57 -08:00
Kristiyan Kostadinov 28691ca780 feat: make hammerjs optional (#2280)
* feat: make hammerjs optional

Makes HammerJS and logs a warning if it's missing, instead of crashing the app.

* Rename the MdHammerEvent interface.

* Replace the HammerJS annotations with stripped-down alternatives.

* Remove "hammerjs" from the "types" config.
2016-12-20 13:36:25 -08:00