Commit Graph

94 Commits

Author SHA1 Message Date
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 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 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 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 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 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
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
limerick 0c75643c7d build:change gulp clean dist dir (#2582) 2017-01-12 13:26:14 -08:00