364 Commits

Author SHA1 Message Date
vsavkin
8daa9b202d cleanup(testing): create top level files for mocks
Closes 
2015-11-24 19:29:52 +00:00
Tim Blasi
31f85f0297 chore(analytics): Build hello_world, check constraints
Create gulp targets to build `hello_world` and check its gzipped size
against size constraints.

See , 
2015-11-23 20:10:04 +00:00
Tim Blasi
225b9d306b chore(analytics): Generalize file size analytics
Move file size analytics code into a reusable module.

See , 
2015-11-23 20:10:04 +00:00
Marc Laval
4d59985b74 chore(build): use Chrome by default for all JS tests
Fixes 

Closes 
2015-11-19 23:27:42 +00:00
Pawel Kozlowski
837efc2a0f chore(bundles): properly publish router.min.js bundle
Fixes 

Closes 
2015-11-18 19:13:23 +00:00
vsavkin
4e585bca28 feat(build): add an option to disable type checks when running tests
Since editors and IDEs do typechecking and show errors in place,
often there is no benefit to running type checking in our test pipeline.
This PR allows you to disable type checking:

gulp test.unit.js --noTypeChecks

This commit also makes es6 generation optional.

fix(build): removes unnecessary circular dependencies

Closes 
2015-11-17 00:45:49 +00:00
Igor Minar
41dfaf393b build(analytics): track bundle size
This will send bundle sizes (before and after gzip) to Google Analytics so that we can
track bundle size over time for every bundle we produce.

Closes 
2015-11-16 21:42:50 +00:00
Igor Minar
96076862cf build(gulp): remove unnecessary dependency duplication 2015-11-16 21:42:49 +00:00
Igor Minar
1d9c44b34f build: add --projects a.k.a the turbo button
we can now filter build graph via --project flag to speed up build performance

usage:

gulp test.unit.js --project=angular2,angular2_material

Closes 
2015-11-13 22:50:38 +00:00
Igor Minar
49e261efd8 build(gulp): add gulpfile.js to files formatted by clang-format 2015-11-13 22:50:38 +00:00
Igor Minar
9c94ab1e8e style(build): clang format gulpfile.js 2015-11-13 22:50:38 +00:00
Igor Minar
d1d88c32c3 build(analytics): start tracking gulp startup latency
This measures how long does it take for gulp to start the first task up after being invoked from command line.

I'm suspecting that we can optimize this significantly, but let's start tracking it first.
2015-11-13 22:50:38 +00:00
Rob Wormald
5fecb3b3f2 fix(build): reorder bundling step
Closes 
2015-11-10 14:34:22 +00:00
vsavkin
695923dcd6 refactor(core): move directives, pipes, and forms into common
BREAKING CHANGE

All private exports from 'angular2/src/core/{directives,pipes,forms}' should be replaced with 'angular2/src/common/{directives,pipes,formis}'

Closes 
2015-11-05 23:00:32 +00:00
mlaval
c70e07fd1f build(browserstack): add a Gulp task to use Browser Stack locally
Closes 
2015-11-05 15:53:04 +01:00
Pawel Kozlowski
2cc6927d1a chore(bundles): unify workflow for router bundles
Closes 
2015-11-03 08:31:45 +00:00
Pawel Kozlowski
bff9dc26c7 chore(bundles): don't duplicate reflect-metadata in http bundle
Since HTTP can't be used on its own there is no reason for duplicating
reflect-metadata in the http bundle
2015-11-03 08:31:44 +00:00
Pawel Kozlowski
2f047887d3 chore(bundles): unify padding with dependencies 2015-11-03 08:31:44 +00:00
Pawel Kozlowski
9220b0bbc1 chore(bundles): unify router bundles creation with other bundles 2015-11-03 08:31:44 +00:00
mlaval
13447e3198 build(browserstack): initial setup
Closes 
2015-11-01 23:22:40 +01:00
Brian Ford
7d154e38d1 chore(gulp): rename serve/examples to serve/playground 2015-10-30 14:27:47 -07:00
Alex Eagle
78875d57c8 chore(typings): add router_spec to test.typings
Closes 
2015-10-30 20:28:56 +00:00
Marc Laval
1dc8a0a95d fix(build): EMFILE error on Windows when executing JS unit tests
Fixes 

Closes 
2015-10-30 04:45:35 +00:00
Rob Wormald
c930a533d1 chore(build): add RxJS to typings spec
Closes 
2015-10-29 23:06:16 +00:00
Alex Eagle
5f2eb3e078 chore(dgeni): clean up legacy typings bundle creation
Fixes 

Closes 
2015-10-29 21:19:59 +00:00
Igor Minar
ae7f76e91f build(analytics): add support for tracking npm installs
Since the very first npm install is called while node_modules is empty, we need to ignore it, but we can track
the start timestamp and record the install even once the installation is completed.
2015-10-29 13:53:21 +00:00
Alex Eagle
098201d0b8 fix(lint): enforce that module-private members have @internal.
This is needed to prevent leaking internal APIs to users via our published .d.ts typings.
Fixes 

Closes 
2015-10-28 22:14:48 +00:00
Alex Eagle
c90e1920f5 chore(tslint): disallow variable names that look like keywords.
We've had issues such as the one I documented: https://github.com/Microsoft/TypeScript/issues/5187
This tslint check prevents this happening again.
This change also updates to the newest tslint which gets typings from npm.

Closes 
2015-10-28 18:31:21 +00:00
Jesús Rodríguez Rodríguez
a31b2175dc chore(gulpfile): fix link to clang formatting
Seems like the anchor tag wasn't updated here.

Closes 
2015-10-27 09:59:52 -07:00
Igor Minar
fbe748f273 build(node): update node from 4.1.1 to 4.2.1
This is just a maintenance upgrade to keep us close to the latest release.

No known bugs are being fixed by this upgrade.

I also removed the npm override in .travis.yaml since node 4 ships with a recent version of npm
and usually this version is preferred (it might contain custom patches).

Closes 
2015-10-27 14:15:54 +00:00
Igor Minar
ea6b316932 build(gulp): rename angularBuilder.mock to angularBuilder.uninitialized to prevent confusion with testing mocks
Closes 
2015-10-27 11:34:39 +00:00
Igor Minar
ef7050892e build(gulp): don't exit prematurely during cleanup
Before this change we would exit while there were cleanup micro tasks scheduled for executions,
this caused tmp files to be left over and consume a lot of space.

Fixes 
2015-10-27 11:34:39 +00:00
kutyel
e4e74ae65c chore: rename modules/examples to modules/playground
The directory contains code authored in a style that makes it transpilable to dart. As such, these are not idiomatic examples of Angular 2 usage.

The main purpose of this directory is to enable experimentation with Angular within the angular/angular repository.

Closes 

Closes 
2015-10-18 11:48:43 +00:00
Jeff Cross
57649d1839 fix(publish): emit type declarations with CJS build
Closes 
Closes 
2015-10-13 22:17:12 +00:00
vsavkin
50e922f37b feat(build): add tasks to watch and recompile js and dart 2015-10-13 21:42:12 +00:00
Jason Teplitz
3b036601cc fix(build): Fix serve.js.dev to build bundles
Closes 
2015-10-13 21:04:10 +00:00
Julie Ralph
f529236bfc refactor(test): rename test_lib to testing
Old test_lib is now testing_internal
test_lib_public is now testing
2015-10-13 10:36:49 -07:00
Pawel Kozlowski
5a504e6b78 chore(bundles): use proper bundle arithmetic for all http bundles
Closes 
2015-10-13 15:28:33 +00:00
Igor Minar
da1272f368 build(analytics): add basic build-analytics to the project
This is pretty experimental, but the goal is to track the performance
of our build over time so that we can more easily track perf regressions.

Currently it's integrated only with gulp tasks, but I'd like to expand it
to tracking travis jobs, protractor/benchpress test runs, npm installs, etc.

No PII is being collected. And the data is collected via a Google Analytics
property owned by the Angular team account.

Closes 
2015-10-12 03:50:00 +00:00
Alex Eagle
95f984615b Produce .d.ts files from our typescript compilation.
Deliver them into our npm module output so users can consume them directly.

Fixes 
2015-10-10 02:18:33 +00:00
Pawel Kozlowski
ff77230edb chore(bundles): use proper bundle arithmetic for http
Closes 
2015-10-08 18:28:06 +00:00
Igor Minar
62e14dc529 build(bundle): fix angular2/test_lib bundle to reexport test_lib rather than test
Closes 
2015-10-07 04:49:46 +00:00
Rado Kirov
f7b75330e0 chore(test): make e2e tests use the bundles.
After this change, only web_worker thread in its e2e test is not using
the bundles.

Closes 
2015-10-07 01:17:19 +00:00
Igor Minar
75187d605b chore: remove unused docs/dgeni tasks and packages
This stuff now lives in angular.io repo.

Related to 

Closes 
2015-10-06 22:54:17 +00:00
Tim Blasi
bb4fd2de94 build(gulp): simplify Dart transformer tasks
Now that `modules_dart` contains only `transform` code, simplify its
`gulp` rules.
2015-10-06 11:27:49 -07:00
Brian Ford
6117a7037b chore(build): copy bundles so they can be used with e2e tests 2015-10-06 10:55:08 -07:00
Pawel Kozlowski
076191cf9d chore(bundles): publish minified router bundle
Closes 
2015-10-06 15:50:33 +00:00
Pawel Kozlowski
74c0daab27 chore(build): minify bundles in parallel 2015-10-06 15:50:33 +00:00
Igor Minar
758efba34b fix(gulp): use the new karma.Server api
Closes 
2015-10-03 21:33:58 +00:00
Igor Minar
9fa57d06da style(gulp): make code more readable 2015-10-03 21:33:57 +00:00