feat(decorators): adds decorators to be used by TS and Babel transpiled apps.

This commit is contained in:
Rado Kirov
2015-04-28 18:17:00 -07:00
parent 648c514c28
commit fb67e37339
116 changed files with 2995 additions and 1805 deletions

View File

@ -647,10 +647,13 @@ gulp.task('bundle.js.min.deps', ['bundle.js.min'], function() {
.pipe(gulp.dest('dist/bundle'));
});
var JS_DEV_DEPS = ['node_modules/zone.js/zone.js', 'node_modules/zone.js/long-stack-trace-zone.js'];
var JS_DEV_DEPS = ['node_modules/zone.js/zone.js',
'node_modules/zone.js/long-stack-trace-zone.js',
'node_modules/reflect-metadata/Reflect.js'];
gulp.task('bundle.js.dev.deps', ['bundle.js.dev'], function() {
return bundler.modify(JS_DEV_DEPS.concat(['dist/build/angular2.dev.js']), 'angular2.dev.js')
.pipe(insert.append('\nSystem.config({"paths":{"*":"*.js","angular2/*":"angular2/*"}});\n'))
.pipe(insert.append('\nzone = zone.fork(Zone.longStackTraceZone);\n'))
.pipe(gulp.dest('dist/bundle'));
});