Commit Graph

243 Commits

Author SHA1 Message Date
Paul Gschwendtner 991c1e0d90 chore(tslint): use globs for custom rule source file filtering (#6235)
A few custom TSLint rules already accept an option array that can be used to whitelist specific files. These whitelists are based on normal Regular Expressions which do not work very well for path matching.

This commit changes the existing whitelists to use minimatch, which is a package that allows matching strings/paths against globs. For rules like `requireLicenseBanner` where the whitelist is hardcoded right now, the whitelist has been introduced as well.
2017-08-04 14:00:29 -07:00
Paul Gschwendtner f19d2e52ee chore(tslint): custom rules invoke superclass methods (#6215)
A few rules are not implemented properly because their associated walker is overwriting hooks from the `SyntaxWalker` superclass. Those custom hooks need to invoke the method on the superclass as well.

See https://palantir.github.io/tslint/develop/custom-rules/
2017-08-02 14:33:56 -07:00
Paul Gschwendtner 4168fb39db build: stop hardcoding rollup globals for CDK entry points (#6150)
* Now the rollup globals for the CDK secondary entry-points are no longer hard-coded. There is already a method called `getSecondaryEntryPointsForPackage` which can be used.
2017-08-02 14:31:31 -07:00
Paul Gschwendtner 056d3b2e81 build: make packaging more flexible (#6143)
* Makes the packaging more flexible by no longer including checks that are specific to the Angular Material project (e.g `material` => `lib` mapping)
* Updates the code to be more readable by making the packaging more object orientated (TS compilation helpers shouldn't be part of the gulp task generation)
2017-08-01 14:21:39 -07:00
Austin f5dc120fd7 chore(docs): correcting headers and adding header linking (#6040)
* chore(*): correcting headers and adding header linking

* chore(*): add specific class name

* Update docs.ts
2017-08-01 14:17:51 -07:00
Paul Gschwendtner 2320532516 build: no longer add pure annotations to es5 bundles (#6107)
* The pure annotations are no longer added to ES5 bundles of Angular Material or the CDK. The pure annotations should be added by the new build optimizer which is part of the CLI.
2017-08-01 12:48:08 -07:00
Kristiyan Kostadinov edcbb24f11 chore: update tslint (#6149)
Updates tslint to 5.5.0 and resolves some errors that weren't being caught before. This version also has the advantage of printing out the full stack trace if one of the rules throws an error.
2017-07-31 11:24:53 -07:00
Paul Gschwendtner 3940fab732 build: use version placeholder in package configs (#6112)
Recently the version placeholders had been replaced with hardcoded versions because it was necessary to be able to release the CDK.

But now the version placeholders are replaced in every file and therefore they can be used instead of the hardcoded values.
2017-07-31 11:22:40 -07:00
Kristiyan Kostadinov d9e6f7502a build: add tslint rule to verify rollup globals config (#5963)
Adds a custom tslint rule that ensures that we've added all of the necessary external modules to the Rollup config. This is helpful, because forgetting to add a module will log a warning, but it won't break the build necessarily, which is why we occasionally need PRs like #5930.
2017-07-31 11:13:33 -07:00
Kristiyan Kostadinov ba000bdeee chore: fix linting errors (#6044)
Fixes a couple of linting errors that were introduced in master.
2017-07-28 08:02:04 -07:00
Paul Gschwendtner 3bfe7f0f92 feat: expose version object in releases (#4962)
* In releases there will be a constant called `VERSION` that holds the current version of the installed package (material or cdk)
* This is similar as for every @angular package like core, forms, compiler.
2017-07-27 09:52:12 -07:00
Paul Gschwendtner e52ebd776b chore: add coverage chart to dashboard (#5981)
* chore: add coverage chart to dashboard

* Switch to md-spinner
2017-07-27 09:50:19 -07:00
Paul Gschwendtner 6a18c5d50c chore: better logging for madge (#6003)
* Switches madge to the programmatic API usage which also allows us to ignore warnings about the dependency on `@angular/cdk` which could not be found by Madge (since it's not a node module)
* This also allows us to reduce the amount of messages that Madge prints. Currently the CI output is not readable because the spinner of the Madge CLI spams everything.
2017-07-27 09:49:18 -07:00
Paul Gschwendtner f3b4e7c6b0 build: payload status should not show all digits (#6051)
* Currently we always limit the difference in kilobytes to two digits after the decimal point. This also needs to be done for the full package size to avoid super long numbers.
2017-07-27 09:48:42 -07:00
Paul Gschwendtner 055f662a85 build: properly lint tooling source code (#6055)
* build: properly lint tooling source code

* Fixes a glob that is responsible for IDE's TypeScript service and also for TSLint
* Fixes strict null check errors in the screenshot app. Currently the app can't be compiled properly since strict null checks had been introduced there as well.

* Address feedback
2017-07-27 09:48:30 -07:00
Paul Gschwendtner e79dc291cd build: missing semicolon for typings re-exports (#6057)
* Adds a missing semicolon to the typing re-export statements.
2017-07-27 09:48:22 -07:00
Jeremy Elbourn bcae614d79 build: change cdk to use secondary entry-points (#5922)
* build: change cdk to use secondary entry-points

* refactoring for comments

* fix closure and payload size calc
2017-07-25 16:15:24 -07:00
Paul Gschwendtner 957b8fdd05 chore: default gulp task should not list tasks (#5935) 2017-07-21 09:44:46 -07:00
Kristiyan Kostadinov 3676c2c615 build: e2e failures and add missing rx operators to rollup config (#5930) 2017-07-21 09:32:44 -07:00
Paul Gschwendtner 93b36b3ed8 build: no longer fallback to index.html file (#5879) 2017-07-19 17:37:40 -07:00
Niklas ab659cf254 fix(screenshot): add lang attribute to html element (#5874) 2017-07-19 11:57:58 -07:00
Paul Gschwendtner f2c579ebb1 build: faster live-reload for theme changes (#5877) 2017-07-19 11:57:27 -07:00
Paul Gschwendtner b018f26e70 build: fix screenshot functions deploying (#5780)
* Fixes the screenshot functions deploying by properly resolving the path to the Firebase CLI binary.
* Also cleans up the script to be aligned with the dashboard deployment script.
* Removes firebase-tools as dependency from the dashboard since it's not used there anymore
2017-07-17 16:23:51 -07:00
Jeremy Elbourn d70a669f79 chore: add material-examples to e2e-app (#5735) 2017-07-17 11:14:15 -07:00
Paul Gschwendtner 565261ac51 build: fix golden upload in push builds (#5779)
* Fixes that the screenshot goldens are not uploaded properly in push builds.
2017-07-17 11:12:57 -07:00
Paul Gschwendtner af142a7655 build: add timestamp to coverage reports (#5795)
* Adds a timestamp property to the coverage results that will be uploaded to Firebase
2017-07-17 11:11:45 -07:00
Paul Gschwendtner e14e7afa03 build: fix occasional sass errors when serving dev-app (#5820)
Ocassionally when serving the dev-app, SaSS errors will show up and complain about imports of other SaSS files. This happens because the dev-app builds the theme using SaSS (no prebuilt theme) and every time something changes in the theming files of Material, the dev-app needs to re-build their custom theme. At this point, the dev-app task just watches for changes and rebuilds the dev-app theme. This is problematic because the watch task is not debounced and it will start building the dev-app theme while the SaSS files are not ready yet.
2017-07-17 10:55:49 -07:00
Paul Gschwendtner a34787df5a chore: screenshots task code cleanup (#5416)
Attempt to make the screenshot task more readable and easier to understand. The screenshot task includes a lot of magic (due to the Firebase functions JWT solution) and we should try our best to make it as readable as possible.
2017-07-13 10:24:42 -07:00
Jeremy Elbourn 4f8f6bdd4b chore: use existing screenshot firebase key 2017-07-10 15:45:00 -07:00
Paul Gschwendtner a1a7dcb463 build: fix deploying of screenshot functions
* Updates the dashboard and screenshot deploy script to exit the process immediately if the Firebase token is not set.
* Fixes that the error message of the dashboard still shows the old name of the token variable
* Renames the screenshot variables to follow the dashboard environment variables
* Explicitly specifies the project that will be uploaded in the screenshot deploy script (same as for dashboard)
2017-07-10 15:45:00 -07:00
Paul Gschwendtner 1f97945580 build: fix stylelint deprecation warning (#5618)
* Fixes the stylelint deprecation warning
* Fixes that stylelint lints the compiled bundles from `dist/` folders of the `dashboard` or `screenshot` app
* Updates the package-lock with NPM@5.1
2017-07-10 11:38:45 -07:00
Paul Gschwendtner 077ebf63c5 build: fix rollup globals for examples package (#5611)
Recently the rollup globals have been changed because the operators are no longer applied to the prototype (using `/add/` imports).

This now causes some warnigns and invalid id's in the bundles of the Material examples because those still use the `/add/` imports in some examples.
2017-07-08 23:20:34 -07:00
Paul Gschwendtner 5f9a64b526 build: fix dashboard deployment (#5610)
* Fixes the dashboard deployment to Firebase. Currently the deployment is being cancelled because the functions are having compilation errors (due to TypeScript definition updates of `express`)
2017-07-08 23:20:06 -07:00
Paul Gschwendtner 1936d9ee59 chore(dashboard): fix invalid curve for payload chart (#5609)
The dashboard payload size chart showed invalid curves for the Material and CDK package size. This happened because there were multiple different values for the same day (multiple PRs merged into master at the same day). Removing the duplicate values and only taking the last result of the day ensures that the curve is always correct and also makes the chart way better in performance.
2017-07-08 23:19:46 -07:00
Austin be0c7a2ae8 chore(script): autogenerate examples module and metadata (#5608) 2017-07-08 23:19:07 -07:00
Paul Gschwendtner 589dc05149 build: enable no-unused-variable lint rule (#5184)
* Now TSLint starts reporting unused variables again (Rule has been un-deprecated and now uses the type checker
* In favor of linting the whole project the tsconfig file inside of `src/` needs to live in the project root.
2017-07-07 11:42:52 -07:00
Paul Gschwendtner e3f3233c88 build: dgeni is building docs twice (#5536)
* With #5429 dgeni runs twice when running the `gulp docs` command. This is because the dgeni generate function has been added to the `dgeni/index.js` file.
2017-07-06 15:52:01 -07:00
Jeremy Elbourn 8a74973c8a docs(table): add missing table JsDoc (#5525) 2017-07-05 18:50:27 -07:00
Jeremy Elbourn 3181335074 Revert "build: publish build tools on github (#5458)" (#5526)
This reverts commit 0675568d03.
2017-07-05 18:10:22 -07:00
Kristiyan Kostadinov 79fb7582dd build: fail build for prerender errors in lifecycle hooks (#5459)
* Currently the build won't fail if an error is thrown inside a lifecycle hook, because `platform-server` writes it to STDERR, but still exits with a 0 code. These changes set up the Universal testing task to fail for these cases as well. This should prevent issues like #5455 in the future.
* Stops logging the entire rendered document after the prerender task is done. This makes the log a bit easier to look through.
2017-07-05 16:30:11 -07:00
Paul Gschwendtner 0675568d03 build: publish build tools on github (#5458)
* Publishes the material2-build-tools on Github.
2017-07-05 16:29:52 -07:00
Jeremy Elbourn 45624077c6 docs: add temporary docs for cdk (#5429) 2017-07-05 16:29:35 -07:00
Andrew Seguin 6499ccbb5c Table docs (#5449)
* docs(table): initial table docs

* add filtering msg

* add overview

* fix height

* split cdk table into guide

* revisions

* add to examples

* fix heading

* example changes

* lint

* example style prefix, rename file

* newline
2017-07-05 16:28:51 -07:00
Jeremy Elbourn 8ae4d9d085 build: add flatModuleIndexRedirect to generated metadata redirect (#5512) 2017-07-05 10:35:22 -07:00
Paul Gschwendtner 41942d4678 build: use sequence task function from build-tools (#5473)
* Switches the manual use of `run-sequence` to the utility function `sequenceTask` from the build-tools.
2017-07-05 10:34:05 -07:00
Paul Gschwendtner 9d621c7a82 build: livereload not working for cdk changes (#5452)
When serving the demo-app the Material package will be watched using the generated `material:watch` task. This does not mean that the `cdk:watch` task will run too because Material depends on the CDK.

With this change, the watch task will now also run the watch tasks of the packages it depends on.
2017-06-30 16:28:17 -07:00
Paul Gschwendtner 17c4a44683 chore: dashboard depends on cdk builds (#5395)
Recently stuff has been moved to the CDK and the `material2-builds` repository now depends on the `@angular/cdk`.

Since the dashboard uses the latest version of Material (material2-builds) the CDK dependency needs to be added.
2017-06-29 10:32:19 -07:00
Paul Gschwendtner 58aa0e2c1f chore: enforce whitespace before the opening brace of a block (#5409)
* Enforces whitespace before the opening brace of a block. This makes sure that the code is consistent is everywhere.
2017-06-29 10:31:08 -07:00
Paul Gschwendtner f35f02676c chore: initial chart for dashboard (#5360)
* Adds the initial chart for the payloads inside of the dashboard.
2017-06-27 16:08:56 -07:00
Kristiyan Kostadinov 38b365c21f build: add stylelint rule to prevent nested mixins (#5354)
Adds a Stylelint rule that will prevent uses of nested mixins. This will help prevent issues like #5232 in the future.
2017-06-25 08:18:18 -07:00