Matias Niemelä
85b8a15374
chore(build): add a task to watch and render examples and e2e tests for production
...
You can now run `gulp serve.e2e.prod` to instantiate a task that watches
and compiles example and module files into the prod directory in dist
and then allows the code to be run via protractor.
Closes #2369
2015-06-19 18:57:41 -04:00
Peter Bacon Darwin
aadaa20706
chore(doc-gen): clean dist/angular.io folder when generating those docs
2015-06-19 19:04:41 +01:00
Martin Probst
1c2abbc61d
feat: upgrade to clang-format v1.0.19.
...
This fixes a performance regression with arrow
functions, allowing us to re-enable formatting for
the specs.
2015-06-12 09:51:57 -07:00
Rob Wormald
796fc66771
chore(build): rename .es6 files to .js
...
Change es6 source files in npm distribution to use .js extensions.
Closes #2447
2015-06-11 17:22:19 -07:00
Matias Niemelä
6cafaba993
chore(test): setup a gulp task for quickly running e2e tests against the dev server
2015-06-11 16:58:32 -07:00
Matias Niemelä
60b97b27fa
fix(build): ensure that asset files are copied over to example directories
2015-06-11 16:58:23 -07:00
Daria Jung
76797dfbd4
fix(build): Minify files for angular2.min.js bundle
...
Uglify files related to angular2.min.js bundle in one task.
Include reflect.js in the bundle, which was previously missing. Minify reflect.js, zone.js, and angular2.min.js using uglify.
2015-06-11 13:18:04 -07:00
Marc Laval
37f8fd6551
chore(windows): fix !test.unit.js/karma-run and !test.unit.dart/karma-run tasks
...
Closes #2431
2015-06-11 10:45:25 +02:00
Tim Blasi
76beaa2097
refactor(change detect): Clean up change detector test layout
...
- Rename simple_watch_config > change_detector_config
- Add a bunch of comments explaining what's going on with the change
detector tests.
Closes #2468
2015-06-10 16:09:48 -07:00
Jeff Cross
21568106b1
feat(http): add basic http service
...
This implementation only works in JavaScript, while the Observable transpilation
story gets worked out. Right now, the service just makes a simple request,
and returns an Observable of Response.
Additional functionality will be captured in separate issues.
Fixes #2028
2015-06-09 10:00:04 -07:00
Igor Minar
5df56b47d6
build(gulp): don't double build during init of serve.js.dev
2015-06-08 23:35:31 -07:00
Igor Minar
fda8b1d87c
build(gulp): don't try to run cleanup.builder task if builders were not initialized
2015-06-08 13:05:04 -07:00
Igor Minar
7140c9cc34
build: make 'npm install' work reliably and issue build warning when node_modules look stale
...
This is done a in bit kludgy way on purpose so that it works on Windows and CI.
Works around npm/npm#8452.
Closes #2038
2015-06-08 13:05:04 -07:00
Igor Minar
f3dd9b5b31
build(clang-format): skip formatting of spec files until angular/clang-format#11 is fixed
...
otherwise checking format and reformatting takes 50seconds or more :-(
2015-06-06 15:07:01 -07:00
Tobias Bosch
46eeee6b5e
feat(build): add `test.unit.dartvm` for a faster roundtrip of dartvm tests
2015-06-05 13:11:23 -07:00
Martin Probst
f999d5a156
chore: move to clang-format 1.0.17.
...
clang-format 1.0.17 substantially improves formatting for fat arrow functions
and array literal detection. It also fixes a number of minor formatting issues.
2015-06-03 15:27:27 -07:00
Brian Ford
f74d7727ca
fix(build): remove nonexistant dart format task from gulpfile
2015-06-03 15:03:29 -07:00
Brian Ford
381d4cb30a
fix(gulp): prevent duplicate error messages
...
Closes #2021
2015-06-03 14:42:24 -07:00
Caitlin Potter
be88cc7697
chore(build): watch logger should honor `ignoreInitial` option
...
It was confusing because the test.unit.dart task does ignore the initial, and
the logger was hardcoded to always ignore the first task, leading to the appearance
that a run was happening twice for no reason.
Also, fixed the "fake ignoreInitial" handling to not rely on a fake event, which
is not necessary.
Closes #2101
2015-06-02 14:07:36 -04:00
Tim Blasi
8bcfb2d465
chore(dart/change_detect): Fix test.unit.dart gulp target
...
Include Change Detector generation in the `test.unit.dart` gulp task to
fix the change detection unit tests.
Closes #2236
2015-06-01 16:15:53 -07:00
Ivo Gabe de Wolff
6f0631c978
build(gulp): remove unnecessary stream merging in build.tools
...
Also remove the reporter config which is wrong and has no effect.
Closes #2209
2015-05-29 16:11:43 -07:00
Caitlin Potter
e5d06e479a
feat(broccoli): add incremental dartfmt plugin
...
Closes #2211
2015-05-29 18:55:37 -04:00
Tim Blasi
8a3b0b366f
feat(dart/transform): Generate ChangeDetector classes
...
Use the `ProtoViewDto` created by the render `Compiler` to create a
`ChangeDetectorDefinition`.
From there, generate a subclass of `AbstractChangeDetector` for each
`ChangeDetectorDefinition`.
Run some basic unit tests for the dynamic and JIT change detectors on
pre-generated change detectors.
2015-05-29 14:48:53 -07:00
Jeff Cross
e323c07ab9
refactor(benchpress): convert src and test to typescript
...
Fixes #2007
2015-05-29 14:02:58 -07:00
Igor Minar
533c64d4ea
build(gulp): remove obsolete watch.js.dev build task
2015-05-28 11:44:37 -07:00
Alex Eagle
16447ce75c
chore(build): improve messaging when using clang-format
2015-05-22 10:10:22 -07:00
Caitlin Potter
e50f537667
build(gulp): turn off dartfmt logs by default
...
Closes #2105
2015-05-22 12:18:42 -04:00
Rado Kirov
05fa9bc9fb
feat(router): add the router bundle to the bundle task.
2015-05-22 15:31:09 +02:00
Igor Minar
5ed091e260
build(gulp): fix test.unit.dart
...
- format code for the first run
- don't run tests if first build fails
Closes #1647
2015-05-21 23:50:56 -07:00
Igor Minar
dee4ecbb3f
build(gulp): fix typo in the npm version warning message
2015-05-20 11:32:46 -07:00
cexbrayat
ec90fcd290
build(test): remove unecessary require in karma.conf
2015-05-20 08:28:38 +02:00
Igor Minar
d18463dcdc
build(gulp): exec karma run in a new process to avoid duplicate output
...
This is not an ideal solution, but I couldn't find another way to supress the output from the runner.
Closes #1813
2015-05-19 23:15:53 -07:00
Igor Minar
f9f917bfa4
build(gulp): fix cleanup.builder task
...
- wait for the cleanup to finish (it's async) before exiting on ctrl+c
- wait for the cleanup to finish (it's async) onBeforeExit
- remove tmp directory during onBeforeExit to cleanup past leaks
Closes #1919
2015-05-19 23:15:53 -07:00
Igor Minar
e89bf01c2b
build(gulp): don't throw exceptions on exit when angularBuilder was not initialized
2015-05-19 23:15:53 -07:00
Igor Minar
d04a515eb0
build(gulp): refactor existing cleanup tasks
...
the current complexity is unjustified necessary
2015-05-19 23:15:53 -07:00
Caitlin Potter
d9ceb42bfe
chore(gulp): log message when tasks triggered by watch
...
Closes #1882
Closes #1893
2015-05-18 14:34:36 -07:00
Igor Minar
77bf90dff1
build(gulp): don't print stack from jasmine handler failures in ci mode
...
jasmine already logs all the test failures so that stack is redundant.
2015-05-14 10:01:07 -07:00
Caitlin Potter
b1ef30aa20
test(watch): add some test coverage for watch build plugin
...
Closes #1890
2015-05-14 04:44:38 -04:00
Igor Minar
47b8b48ee7
build(gulp): log test errors but suppress error handling within gulp while in watch mode
...
if any tasks executed by gulp results in an error, gulp will try hard to show errors. these are usually irelevant in the
watch mode. this is why it's ok to supress them except when running in the ci test mode, in which case failing tasks and logging
exceptions is helpful.
Closes #1881
2015-05-13 22:25:15 -07:00
Caitlin Potter
23cec1e8e2
build(gulp): use chokidar alone instead of gulp-watch
...
Closes #1759
2015-05-13 19:21:35 -04:00
Igor Minar
718d2ae2ee
build(gulp): run beforeExit hook only once
...
this prevents inifinite loops when cleanup task registers an additional task, that triggers a new beforeExit event
Fixes #1833
2015-05-13 00:57:13 -07:00
Igor Minar
772b529a8e
build(gulp): bump the required node version to 0.12.2
...
We ran across fatal issues with npm shrinkwrap on node 0.10.x which don't go away even with npm 2.9.x.
Upgrading node to 0.12 fixed the shrinkwrap issues. Since now we run node 0.12 on ci as well, there
is no reason for anyone to use node 0.10 during development.
2015-05-12 16:05:48 -07:00
Misko Hevery
555dd93ed9
chore: change gulp test.unit.js to use dots reporter
2015-05-12 12:59:53 -07:00
Victor Berchet
c8a0ed40bd
refactor(NgZone): use zone.js v0.5 from npm
2015-05-12 21:07:25 +02:00
Kevin Moore
98e7a38e50
chore: use SDK dartfmt
2015-05-12 09:56:38 -07:00
vsavkin
92d6aa1f32
fix(gulpfile): fixed test.unit.dart to format dart code before running test
2015-05-11 13:28:20 -07:00
vsavkin
3256ff1c73
feat(gulpfuile): added watch.js.dev
2015-05-11 13:28:19 -07:00
Igor Minar
1a4ab2c57a
build(gulp): remove the check-format step from test.unit.js task
2015-05-11 12:08:27 -07:00
Igor Minar
c82cc47767
build(gulp): watch and incrementally compile files for server.js.dev task
...
Closes #1770
2015-05-08 16:42:40 -07:00
Igor Minar
31cbec0857
build(gulp): check node and npm version and log a warning if incompatible
...
Closes #1758
2015-05-08 11:04:10 -07:00