84 Commits

Author SHA1 Message Date
Alex Eagle
a1cc02f0bd build: update to latest bazel rules ()
PR Close 
2018-01-27 10:55:44 -08:00
David-Emmanuel Divernois
1278cca883 perf(ivy): removes generation of comments ()
PR Close 
2018-01-27 10:48:39 -08:00
Alex Eagle
08aa54e1d9 ci: Add back the CLI integration test with pinning ()
The CLI app is now checked in, rather than generated dynamically with
`ng new`. This loses some assertion power, but gains hermeticity.
It also checks in lock files for all integration tests, avoiding
floating version numbers.

We'll need another place to integration test between changes in
the various repositories - but the angular/angular PR-blocking status
is not the right place to do this.

PR Close 
2018-01-25 22:18:55 -08:00
Filipe Silva
fac4d8d42a build(common): specify explicit locales dir in package.json ()
PR Close 
2018-01-25 22:18:35 -08:00
Kara Erickson
3e03dbe576 refactor(ivy): flatten hooks and collapse LView hook properties ()
PR Close 
2018-01-24 22:14:33 -08:00
Kara Erickson
33b338120c refactor(ivy): move onDestroys out of cleanup ()
PR Close 
2018-01-24 22:14:33 -08:00
Alex Rickabaugh
0ad02de47e feat(ivy): support for the ngForOf directive, with tests ()
Implement NgOnChangesFeature, ViewContainerRef, TemplateRef,
and the renderEmbeddedTemplate instruction, and wire together the
pieces required for the ngForOf directive to work.

PR Close 
2018-01-23 12:54:39 -08:00
Alex Eagle
95fbb7d675 build: Update to latest rules_typescript. ()
Fixes 

PR Close 
2018-01-22 15:32:59 -08:00
Yuan Gao
d39d1ce412 ci(aio): do not limit size of gzip7 and gzip 9 ()
PR Close 
2018-01-19 20:39:42 -08:00
Marc Laval
a0dc0a2f46 test(ivy): add render3 integration tests ()
PR Close 
2018-01-19 15:23:52 -08:00
Alex Eagle
1104d17252 refactor(bazel): pass around tsconfig as a file, not a path ()
this unlocks the ability to replay ts compilations with different settings

PR Close 
2018-01-19 11:53:59 -08:00
Alex Eagle
7c414fc746 ci: disable integration/cli-hello-world test ()
it is non-hermetic and breaks often due to unpinned dependencies.

PR Close 
2018-01-12 14:58:00 -08:00
Kara Erickson
c6eb9eebcc build: update polyfill size ()
PR Close 
2018-01-10 17:06:51 -08:00
Kara Erickson
74dbf7bad5 build(core): reduce payload limit back to normal ()
PR Close 
2018-01-08 12:02:30 -08:00
Igor Minar
7269fe5203 ci: reformat itegration/_payload-limits.json to be easier to read ()
PR Close 
2018-01-08 11:12:54 -08:00
Kara Erickson
2fc4cf67be build(core): update payload size of hello world ()
PR Close 
2018-01-05 14:23:28 -08:00
Chuck Jazdzewski
83d207d0a7 build: upgrade to TypeScript 2.6 ()
Fixes 

PR Close 
2017-12-22 20:15:47 -08:00
George Kalpakas
81d497ce1f build: pin ChromeDriver version ()
Since our version of Chromium is also pinned, a new ChromeDriver (that
drops support for our Chromium version) can cause random (and unrelated
to the corresponding changes) errors on CI.
This commit pins the version of ChromeDriver and it should now be
manually upgraded to a vrsion that is compatible with th currently used
Chromium version.

PR Close 
2017-12-11 15:53:04 -08:00
Alex Eagle
ef534c0cc1 build: upgrade bazel rules to latest ()
Add enough BUILD files to make it possible to
`bazel build packages/core/test`

Also re-format BUILD.bazel files with Buildifier.
Add a CI lint check that they stay formatted.

PR Close 
2017-12-07 11:27:50 -08:00
Alex Eagle
6790e02a13 ci: upgrade to node 8 and Bazel 0.8 ()
Closes 

PR Close 
2017-12-06 06:58:33 -08:00
Olivier Combe
d7a727cc07 feat(platform-browser-dynamic): export JitCompilerFactory ()
Fixes 
PR Close 
2017-11-22 08:56:11 -06:00
tinayuangao
ac93f1235e ci: Update 1% payload size test ()
PR Close 
2017-11-21 22:28:28 -06:00
Alex Eagle
5ec1717c58 fix: Update test code to type-check under TS 2.5 ()
PR Close 
2017-11-15 18:12:16 -06:00
Alex Eagle
a9f3e2bd95 build: Upgrade to TypeScript 2.5 ()
- update to TypeScript 2.5
- point the 2.4 typings test at the previous typescript version, so we
  don't break it accidentally
- widen the peerDeps from Angular packages that depend on TypeScript
- update to latest TypeScript 2.5 compatible Bazel rules
- move .bazelrc to tools/bazel.rc per https://docs.bazel.build/versions/master/best-practices.html#bazelrc

PR Close 
2017-11-15 18:12:16 -06:00
Fabian Wiles
1db7c0d139 ci: tighten package limits ()
PR Close 
2017-11-14 11:00:58 -08:00
Torgeir Helgevold
161f88fe6f build: update to google-closure-compiler@20171023.0.1 ()
added externs

remove externs

PR Close 
2017-11-10 11:51:57 -08:00
Victor Berchet
8dbe2af0bc test: increase polyfills size upper limit in CLI integration tests
tests started failing after 0.8.18 was release
2017-09-27 17:04:24 -07:00
Alex Eagle
2cf52c1b55 test: Enable sass compiler for bazel integration test () 2017-09-26 09:44:47 -07:00
Olivier Combe
f48b343af1 build: switch from npm to yarn ()
PR Close 
2017-09-22 13:20:52 -07:00
Olivier Combe
6e1896b333 build(common): don't generate tsickle re-export file for locales package ()
PR Close 
2017-09-21 16:02:40 -07:00
Chuck Jazdzewski
f96142cd7c build: remove references to tsc-wrapped ()
With this commit `ngc` is used instead of `tsc-wrapped` for
collecting metadata and tsickle rewriting and `tsc-wrapped`
is removed from the repository.

`@angular/tsc-wrapped@5` is now deprecated and is no longer
used, updated, or maintained as part as of Angular 5.x.x.

`@angular/tsc-wrapped@4` is still maintained and required by
Angular 4.x.x and will be maintained as long as 4.x.x is in
LTS.

PR Close 
2017-09-21 13:55:52 -07:00
Igor Minar
9e847198f5 test: fix cli-integration tests that got broken by yarn update ()
previously we relied on yarn creating a new project/package.json in the current dirrectory,
which is incorrect. this change inits the project before installing the cli.

PR Close 
2017-09-20 16:17:08 -07:00
Jason Aden
15e8d50313 build: roll up to named .js files rather than 'index.js' ()
PR Close 
2017-09-19 16:59:18 -07:00
Tobias Bosch
edd5f5a333 perf(compiler): make the creation of ts.Program faster. ()
We now create 2 programs with exactly the same fileNames and
exactly the same `import` / `export` declarations,
allowing TS to reuse the structure of first program
completely. When passing in an oldProgram and the files didn’t change,
TS can also reuse the old program completely.

This is possible buy adding generated files to TS
in `host.geSourceFile` via `ts.SourceFile.referencedFiles`.

This commit also:
- has a minor side effect on how we generate shared stylesheets:
  - previously every import in a stylesheet would generate a new
    `.ngstyles.ts` file.
  - now, we only generate 1 `.ngstyles.ts` file per entry in `@Component.styleUrls`.
  This was required as we need to be able to determine the program files
  without loading the resources (which can be async).
- makes all angular related methods in `CompilerHost`
  optional, allowing to just use a regular `ts.CompilerHost` as `CompilerHost`.
- simplifies the logic around `Compiler.analyzeNgModules` by introducing `NgAnalyzedFile`.

Perf impact: 1.5s improvement in compiling angular io
PR Close 
2017-09-19 16:55:23 -07:00
Kara Erickson
9b571a1deb build(core): reduce payload size for cli-hello-world ()
PR Close 
2017-09-13 13:53:28 -04:00
Tobias Bosch
ca5aebaa6b refactor: update angular to support TypeScript 2.4
Detailed updates:
- rxjs@5.0.x
- tsickle@0.24.x
- typescript@2.4.x
- @bazel/typescript@0.10.0
- protractor@5.1.x
- selenium-webdriver@3.0.x

BREAKING CHANGE:
- the Angular compiler now requires TypeScript 2.4.x.
2017-09-12 10:31:30 -07:00
Tobias Bosch
a69172f6ce fix(compiler): fix bazel integration and make perform-compile more flexible
Needed to allow custom checking for diagnostics.
2017-09-07 19:30:04 -04:00
Alex Eagle
fef3d2ad53 build: ngc-wrapped as a bazel worker ()
PR Close 
2017-09-01 12:23:11 -05:00
Jason Aden
fd701b07f0 build: publish tree of files rather than FESMs ()
* Remove now unnecessary portions of build.
* Add a compilePackageES5 method to build ES5 from sources
* Rework all package.json and rollup config files to new format
* Remove "extends" from tsconfig-build.json files and fixup compilation roots

PR Close 
2017-08-31 15:34:50 -07:00
Olivier Combe
48789360b1 feat(common): generate closure-locale.ts to tree shake locale data ()
Closure will only keep the data for the locale defined in `goog.LOCALE`

PR Close 
2017-08-29 11:26:10 -05:00
Victor Berchet
535c7bb60c refactor: generate i18n files in common/locales ()
PR Close 
2017-08-29 11:26:10 -05:00
Alex Eagle
f0c681a6de build: disable sass under bazel()
this seems to make the travis build flaky

PR Close 
2017-08-28 11:12:18 -07:00
Misko Hevery
3d2ee6c3fe build: fix build; missing firebase-tools 2017-08-25 08:17:13 -07:00
Misko Hevery
1c2f3d47e9 build: fix build by pinning angular-cli to specific version ()
Closes 
2017-08-24 09:34:43 -07:00
Miško Hevery
3db84c8220 build: fix size limits for CLI to make CI green () 2017-08-23 13:04:19 -07:00
Alex Eagle
f2f5286020 build: upgrade to latest bazel rules ()
PR Close 
2017-08-23 11:34:52 -05:00
Alex Eagle
47220997e1 build: add bazel integration test ()
It includes sass compilation, and building the bazel package
distribution.

PR Close 
2017-08-23 11:34:52 -05:00
Yuan Gao
4eb1f91bee ci(aio): Refactored payload size script, add script to track payload ()
PR Close 
2017-08-18 22:27:38 -05:00
Miško Hevery
56a5b02d04 test: add cli integration test ()
This adds cli integration test which creates a hello-world and tests it.

PR Close 
2017-08-16 22:00:36 -05:00
Tobias Bosch
a0ca01d580 refactor(compiler): drop typings tests for TypeScript 2.1 () 2017-08-16 17:58:48 -05:00