Kevin Moore
867705bd2c
chore: put everything in the _analyze.dart file
...
6x faster dart analyze
2015-04-27 16:13:20 -07:00
Igor Minar
2827ca1559
build(broccoli): add a tree-differ workaround to browser trees
2015-04-27 10:50:59 -07:00
Igor Minar
8ea03d0380
build(gulp): fix incremental compilation by reusing angularBuilder across watch re-reruns
2015-04-27 10:47:52 -07:00
Igor Minar
0a97f0b645
build(js.cjs): re-enable tests that now pass in cjs
...
previously these tests were failing but now they pass on master
2015-04-27 10:47:52 -07:00
Igor Minar
a52798543a
build(gulp): rename tasks `build.broccoli.tools` => `build.tools` + `test.unit.broccoli` => `test.unit.tools`
2015-04-27 10:47:51 -07:00
Igor Minar
1cbdb9cd17
refactor(build): introduce AngularBuilder facade and clean up many things
2015-04-27 10:47:51 -07:00
Igor Minar
4c9b8ebb0c
build(gulp): remove obsolete gulp transformer
2015-04-27 10:47:51 -07:00
Igor Minar
7740fc071c
build(broccoli): convert traceur and broccoli-dest-copy plugins to use tree-differ
...
Also adding symlink-or-copy to our npm dependencies since our plugins now use it.
2015-04-27 10:47:50 -07:00
Igor Minar
bdf6af9bd6
build(broccoli): add custom broccoli.d.ts file
2015-04-27 10:47:50 -07:00
Igor Minar
2f83efaac8
build(broccoli): add tree-differ for diffing broccoli trees
2015-04-27 10:47:49 -07:00
Igor Minar
32c5ab956c
build(broccoli): add testing infrastructure for our build plugins
...
components:
- gulp test.unit.broccoli task
- mock-fs for mocking our FS in unit tests
- jasmine d.ts file for type checking
jasmine lib is provided by minijasmine2 so we don't need to include it explicitly
2015-04-27 10:47:49 -07:00
Igor Minar
725f909ff8
chore(build): refactor test.unit.cjs to use the broccoli pipeline
...
This change solves several problems:
- the broccoli pipeline is used to compile the node/cjs tree upon any change to the modules/ directory
- jasmine tests run in a new process removing the need to clean up environment after each test
- since we transpile only those test files that are actually needed for node/cjs build, we transpile less and don't need to filter out tests
2015-04-27 10:47:49 -07:00
Alex Eagle
623edcd2d8
Copy a second package to TypeScript.
2015-04-24 15:49:04 -07:00
Tobias Bosch
14a7b9f794
fix(jsserve): serve empty favicon to prevent errors in benchmarks
...
Background: our benchmarks check whether there were errors
in the browser log after they executed.
2015-04-21 11:25:07 -07:00
vsavkin
8b3c808cb0
cleanup: remove an unused type
2015-04-20 14:24:16 -07:00
Yegor Jbanov
2b4d30d931
chore(analysis): analyze everything in lib folders recursively; fix existing warnings
2015-04-17 13:52:02 -07:00
Yegor Jbanov
3dc4df2ffa
chore(analysis): analyze web folders; fix existing warnings
2015-04-17 13:52:02 -07:00
Igor Minar
8906cdbab8
chore(build): trigger npm postinstall when npm install is skipped
...
we temporarily need this because some of our dependencies are being installed via npm postinstall
2015-04-16 16:58:28 -07:00
Igor Minar
371c8b8a1c
chore(travis): add npm/install-dependencies.sh step in preparation for caching
2015-04-16 16:58:28 -07:00
Igor Minar
eb87f5f851
chore(npm): add shrinkwrap to our project
2015-04-16 16:58:28 -07:00
Kevin Moore
6600ac7031
chore: Fix missing analysis for lib and web directories
...
Pending issue to fix analyzer items in web: https://github.com/angular/angular/issues/1392
2015-04-15 20:58:29 -07:00
Kevin Moore
dc9c614da2
chore: break out warnings vs hints in build/analyze.dart
...
give a better report of errors
2015-04-15 15:46:16 -07:00
Jeremy Elbourn
f149ae79c6
feat(material): first ng2 material design components
2015-04-14 16:15:35 -07:00
Rado Kirov
ffe13078e5
feat(bundle): add script to push bundles to code.angularjs.org
...
Copied over from angular js 1.x.
2015-04-14 14:50:53 -07:00
Martin Probst
ef6e0d8eb8
chore(build): remove obsolete html.js, copy.js, srcFolderInsertion.
2015-04-14 11:54:36 -07:00
Martin Probst
db97d73c3b
feat(build): Move HTML copying into the broccoli task.
...
This includes all tasks to construct a Dart tree, except for formatting, and
reverse engineers/refactors the various copy tools for added more sanity.
2015-04-14 11:54:31 -07:00
Rado Kirov
3177576ad6
feat(bundle): adds a self-executing dev bundle (SFX).
2015-04-13 18:05:53 -07:00
Alex Eagle
896a0457f8
refactor(build): Better encapsulate the broccoli builder.
2015-04-13 17:28:00 -07:00
Igor Minar
0107543a33
chore(build): move build/transformCJSTests task to broccoli
2015-04-13 16:52:08 -07:00
Alex Eagle
70433e6b73
chore(build): use a Filter plugin to write the dest folder.
...
This lets broccoli keep the dest folder up-to-date in 'watch' mode,
so we should be able to use that for Karma.
2015-04-13 15:51:33 -07:00
Alex Eagle
34501aaae6
chore(build): move more broccoli support inside the TypeScript boundary
2015-04-13 12:24:28 -07:00
Igor Minar
dbfc4c1c16
chore(build): inline Traceur options just like we do everywhere
2015-04-13 11:37:18 -07:00
Igor Minar
301863b105
chore(build): transpile only e2e test code into cjs
2015-04-13 11:31:14 -07:00
Igor Minar
ef8dc40492
chore(build): correct comment
2015-04-13 11:31:14 -07:00
Igor Minar
6dbd4d969b
chore(build): create es5build.js only for files that will become es6 npm packages
2015-04-13 11:31:14 -07:00
Igor Minar
3dd0ac1f0a
chore(build): move dart broccoli tree to make-broccoli-tree
2015-04-13 11:20:59 -07:00
Igor Minar
1f6c6dbf2f
chore(build): refactor broccoli trees to generate them in order to reduce duplication
2015-04-13 10:07:31 -07:00
Alex Eagle
daf0f472b3
feat(build): enforce formatting of some files.
...
Our style guide includes formatting conventions. Instead of wasting time in reviewing PRs discussing things like indenting, and to avoid later deltas to fix bad formatting in earlier commits, we want to enforce these in the build.
The intent in this change is to fail the build as quickly as possible in travis, so those sending a PR immediately know they should run clang-format and update their commit. When running locally, we want users to know about formatting, but they may not want to act on it immediately, until they are done working. For this reason, it is only a warning outside of the continuous build.
This is done by having a check-format task which should run on most local builds, and an enforce-format task only run by travis.
2015-04-11 18:39:28 -07:00
Martin Probst
a3decad4c2
feat(build): Use broccoli for ts2dart transpilation.
2015-04-11 16:26:44 -07:00
Alex Eagle
2ed7622239
chore(build): compile the .ts broccoli tools.
...
This avoids having to check in the compiled .js files.
2015-04-10 17:29:32 -07:00
Martin Probst
4e2316c742
feat(build): Add rudimentary TS typings for broccoli.
2015-04-10 16:37:24 -07:00
Alex Eagle
f0477e164a
chore(build): add typescript to the cjs build.
...
Refactor the file extension logic in traceur plugin to simplify
2015-04-10 15:22:03 -07:00
Igor Minar
ea58ef85fc
chore(build): move the js.prod build over to broccoli
2015-04-10 13:11:58 -07:00
Alex Eagle
564477b8a0
chore(build): migrate build.js.cjs to broccoli.
...
This doesn't do the typescript part of the build yet. Also there is a bit
of hackiness left to resolve in a follow-up change.
2015-04-10 11:39:48 -07:00
Martin Probst
838aa2aaa9
fix(ts2dart): Adjust to new ts2dart API.
2015-04-09 18:03:27 -07:00
Martin Probst
3285ffba16
fix(traceur): Fix a couple of unsupported or incorrect tests.
2015-04-09 18:03:27 -07:00
Martin Probst
17e8857efc
feat(dart): Use ts2dart for transpilation in Karma Dart.
2015-04-09 18:03:27 -07:00
Martin Probst
70cea03b4b
fix(build): Only return directories from subDirs()
2015-04-09 18:03:26 -07:00
Alex Eagle
b94b04c074
chore(build): Migrate remaining tasks under build.js.dev to broccoli.
2015-04-09 14:09:38 -07:00
Alex Eagle
a3097aaf05
chore(build): Migrate build.js.dev fully to broccoli.
...
The previous change did the ES6 transpile, now we add ES5.
The sourcemaps are broken, but were also broken previously. We'll address that separately.
2015-04-09 11:00:47 -07:00
Alex Eagle
de581ea8b3
chore(build): Move broccoli support to own module.
...
Add support for multiple pipelines in different Brocfile's.
2015-04-08 10:41:42 -07:00
Rado Kirov
c349eb4fa4
fix(bundles): remove work-around rx.js module detection.
...
Updates rx to the newest version, because a fix is needed.
Closes #1245
2015-04-08 11:01:01 +02:00
Alex Eagle
d6003ee0ab
chore(build): Add traceur transpiler for broccoli.
...
This exactly reproduces the output tree from one of the gulp tasks, which is now removed.
Next step is to migrate another sibling task to broccoli.
2015-04-07 16:38:02 -07:00
Alex Eagle
bc248e9a15
fix(build) use relative path in file property inside sourcemap
2015-04-07 12:53:06 -07:00
Tim Blasi
42c0171b40
chore(dart/transform): Create targets for serving transformed Dart code
...
- Allow pub (build|serve) to specify mode
- Update pubbuild.js & pubserve.js to allow the caller to provide a `mode` value.
- Update settings to allow the di benchmark to be transformed to run statically.
2015-04-07 10:57:01 -07:00
Rado Kirov
bcbed2812d
feat(bundle): work-around rx.all.js bundle issue.
...
Adds long-stack-trace-zone into the dev build. Turn off source maps
until proper concatination of them is added.
2015-04-02 19:54:07 -07:00
Rob Wormald
c0b04ca0bc
feat(gulp): adds System.register bundle task.
2015-04-02 19:54:06 -07:00
Alex Eagle
91e0e9e1dd
chore(ts): Patch traceur's type module only when targetting es6 output.
2015-04-01 10:39:06 -07:00
Pawel Kozlowski
aca4604879
feat(CSSClass): support binding to classList
...
Closes #876
2015-03-31 21:53:24 +02:00
Caitlin Potter
9d21a6f40d
chore(package.json): upgrade traceur to v0.0.87
...
Fix in source-map test to follow through the sourcemap chain.
2015-03-26 18:37:03 -07:00
vsavkin
9b3b3d325f
feat(facade): added support for observables
2015-03-24 13:45:39 -07:00
Patrice Chalin
83402930f2
chore(install+test): single cmd to full install/test & test JS w/o Dart
...
* `npm install` now does a full install; auxiliary installation steps
have been integrated into the `postinstall` script.
* Updated developer docs `DEVELOPER.md` accordingly; also added
instructions to dev docs for performing full tests (via `npm test`) --
same as those run on Travis.
* Reorg in tests so that JS tests can run without a Dart env.
Partly fixes #945 **under the assumption that when running JS tests
locally, `ChromeCanary` is the desired browser to use**. Note that CI
tests (Travis) still uses `DartiumWithWebPlatform` across the board
(Maybe because ChromeCanary isn't being installed?)
Fixes #1012 .
Closes #1010
2015-03-21 14:55:11 -07:00
gdi2290
b61b8d60b7
refactor(forEach): change to for-of with iterable
...
rename: foreach -> for
rename: array -> iterable
update: DartParseTreeWriter
update: naive_infinite_scroll
update: todo
fix: tests in foreach_spec
Closes #919
2015-03-21 14:19:21 -07:00
Marc Laval
52bf0def4e
chore(test): improve test.unit.cjs task
...
Closes #998
2015-03-18 21:51:57 -07:00
Jacob MacDonald
a963ae48e5
feat(benchmarks): add polymer js 0.8-preview benchmark
...
Limitations because of preview status (see #960 ):
- does not yet use ShadowDOM
- does not use a builtin conditional like `if`
- uses a temporary bower repository
Closes #943
2015-03-13 20:48:03 -07:00
vsavkin
75ecaf02b9
chore: upgrade guinness to remove a workaround in testlib
2015-03-13 18:19:10 -07:00
Rado Kirov
ce29862e2f
fix(dart_libs): add _dart suffix only for reserved lib names.
...
Closes #871
2015-03-12 15:14:39 -07:00
Rado Kirov
dd3e6271c2
chore(services): rename services.
...
Closes #711
2015-03-11 18:30:37 -07:00
Marc Laval
1d4ff9bcdc
feat(compiler): parse5 DOM adapter
...
Closes #841
2015-03-11 14:42:54 +01:00
Tobias Bosch
9c9769e3dd
fix(build): copy files that are included in html files to the same folder
...
This is e.g. needed to allow Dart benchmarks to be served via `pub`
2015-03-02 16:34:32 -08:00
Tobias Bosch
e490861ba2
fix(docs): make them run again and integrate into ci
2015-02-26 15:38:12 -08:00
Tobias Bosch
3f25f5a356
feat(build): add general copy/multicopy method
2015-02-24 16:53:44 -08:00
Yegor Jbanov
d1f03e509b
fix(benchpress): benchpress fixes and a smoke test for Dart
2015-02-23 10:50:51 -08:00
Tobias Bosch
7aa031b3d3
feat(bench press): use chrome tracing protocol and initial iOS support
2015-02-20 13:20:17 -08:00
Marc Laval
85211f0a6b
fix(core): workaround for circular dependencies in nodejs
...
Closes #716
2015-02-19 13:42:27 -08:00
Kevin Moore
fb5b168b19
chore: Remove unused imports and enable checks for unused imports as part of build
2015-02-18 21:06:30 -08:00
Tobias Bosch
cd90038950
fix(types): Add StringMap type
2015-02-18 09:53:27 -08:00
Tobias Bosch
674848648a
feat(facade): add support for `Date`
...
Also refactors the dart transpilar to expose
the type mappings for future changes.
2015-02-17 16:02:46 -08:00
Tobias Bosch
f6284f2a55
feat(benchpress): rewritten implementation
...
Limitations:
- cloud reporter is not yet supported any more
2015-02-16 11:43:27 -08:00
Tobias Bosch
44845839a6
fix(transpiler): support arrow functions with complex body in named arguments
2015-02-16 10:48:44 -08:00
Tobias Bosch
013e1faf27
fix(build): support transpile to commonjs
2015-02-11 13:09:52 -08:00
Tobias Bosch
729e38af19
feat(build): add npm publish script
...
Also fixes gulpfile:
- `runSequence` needs to be called with `done` callback
- `es5build` should only run when the task executes…
2015-02-10 16:28:28 -08:00
Tobias Bosch
dd532fee72
feat(build): add package.json and README.md for publishing to npm
2015-02-10 11:52:42 -08:00
Tobias Bosch
69bba9b5df
feat(build): transpile to es6
...
Transpile all sources first to es6 which we can publish and then
to es5. Also merge the generated source maps into once map.
2015-02-10 11:27:22 -08:00
Yegor Jbanov
320c089dcc
feat(packaging): automatically copy LICENSE to dist folders
2015-02-09 14:02:42 -08:00
Tobias Bosch
f39c6dc2c7
fix(setup): use upstream traceur with explicit patches
...
Also correct the transpile to ES6
Also support generics correctly
All patches are hooked in via `/tools/transpiler/index.js`
https://github.com/google/traceur-compiler/issues/1700
https://github.com/google/traceur-compiler/issues/1699
https://github.com/google/traceur-compiler/issues/1708
https://github.com/google/traceur-compiler/issues/1625
https://github.com/google/traceur-compiler/issues/1706
2015-02-06 17:04:08 -08:00
Marc Laval
6bfa48bc64
refactor(directives): Drop ng- prefix from all angular directives and rename NgRepeat to Foreach
...
fixes #532
Closes #539
2015-02-06 09:24:50 -08:00
Alex Eagle
93c18f5396
fix(build): Escape dollar signs in dart-transpiled string literals
...
Escape dollar signs in string literals - dart should not interpolate them.
Closes #509
2015-02-05 18:00:14 -08:00
Yegor Jbanov
9f6b6cc50c
chore(packaging): update imports in tools
2015-02-05 15:58:15 -08:00
Yegor Jbanov
bfdcb6c77c
chore(build): ignore [info] analyzer warnings
2015-02-05 15:47:13 -08:00
Alex Eagle
e20d9dd073
feature(build): add nodejs-based unit test for dart transpiler.
...
This adds a unit test to the transpiler. Existing tests are themselves transpiled to ES5, which makes it impossible to do some kinds of assertions. For example, this will be useful to repro https://github.com/angular/angular/issues/509 .
In this change, the actual issue isn't fixed. It only adds the reproduction.
It uses the jasmine test runner, since it's already used by the docs test. That uses version 1 of Jasmine, which isn't ideal, but I want to be consistent for now.
I discussed with Tobias the possibility of switching to Mocha for these nodejs-based tests, and we might do that sometime later.
2015-02-05 11:55:49 -08:00
Tobias Bosch
05ffdc9b44
refactor(build): explicitly mention `src` folder in imports
...
Export files are now directly under the module folder,
e.g. `core/core.js`. With this, an import like `core/core`
won’t need a path mapping (e.g. via `System.paths`) any more.
This adds the `src` folder to all other import statements as well.
2015-02-05 11:55:48 -08:00
Tobias Bosch
b1e76c550e
feat(build): auto format the generated dart code.
...
Fixes #480
Closes #504
2015-01-30 11:10:12 -08:00
Tobias Bosch
62f08d38db
fix(tests): don’t fail on current chrome canary
2015-01-28 17:01:32 -08:00
Rado Kirov
ec5cb3eb66
feat(package): introduce a catch-all package angular.
...
modules/angular has no implementation, but depends on all the pieces
that make angular - core, di, directives, etc. It is the package that
all client apps will depend on.
2015-01-23 10:31:24 -08:00
Marc Laval
368cc29d48
fix(gulpfile): fix the pubbuild task on Windows
...
Closes #349
2015-01-22 15:30:52 -08:00
Tobias Bosch
22653707d9
fix(perf): cloud reporter, calculate insertId correctly so that we don’t loose rows!
2015-01-21 10:40:03 -08:00
Tobias Bosch
5f5ed06713
feat(perf): cloud reporter should retry in case of a timeout
2015-01-20 13:06:37 -08:00
Tobias Bosch
ed7d1cf060
feat(perf): cloud reporter, more generic table layout
2015-01-20 13:06:37 -08:00
Jeff Cross
a2b58202a0
feat(benchpress): add getStringParameter method to support text and radio inputs
2015-01-15 13:38:31 -08:00
Jeff Cross
39977bd3c2
fix(benchpress): add filter for when cloud config is not present
2015-01-15 13:38:31 -08:00
Tobias Bosch
d02c0accbb
refactor(benchmarks): add cloud reporter, add params
...
- adds console and cloud reporter (via Google BigQuery).
- makes parameters of tests explicit and modifiable.
- removes `detect` and `ignoreGc` mode from benchpress
as these can result in unstable numbers.
2015-01-15 09:09:05 -08:00
Vojta Jina
0f8f4801bd
chore: use fork Traceur with disabled getters/setters
...
It also includes better debugging class method names for WTF.
2015-01-08 16:03:32 -08:00
Tobias Bosch
77aa3ed61b
feat(benchpress): show more metrics and make the run mode configurable
...
Shows the metrics:
script, render, gcAmount, gcAmountInScript, gcTime
Run modes:
- detect: auto detect whether to force gc
- forceGc: forces a gc before every run and ignores no runs
- noGcInScript: ignore runs that have gc while a script was executing
- plain: does not force gc nor ignore runs
Closes #368
2015-01-07 16:37:52 -08:00
Tobias Bosch
82b1601a31
refactor(benchmarks): rename `timeBenchmark` into `benchmark`
2015-01-07 16:37:52 -08:00
Tobias Bosch
458b2d7215
docs(bench press): add clarifying comment
2015-01-07 16:37:51 -08:00
Tobias Bosch
fe2a09bc7f
refactor(perf): e2e tests and benchpress should be written in es6
2015-01-06 15:32:49 -08:00
Victor Berchet
f04967ad37
chore(traceur): update to 0.0.79
...
fixes #8
2015-01-06 08:21:43 -08:00
Tobias Bosch
6f303121c6
refactor(perf): introduce benchpress2
...
Major changes:
- make API more reusable
- format output nicely
- only force gc if needed
Regarding forcing gc:
Forcing gc can change script execution time.
We now don't force gc at first and ignore results where gc happens during script execution.
When we ignored too many results, we switch to forcing gc.
Closes #339
2015-01-05 17:49:50 -08:00
vsavkin
0a4d6170ba
fix(gulpfile): fix the dartanalyzer task
2014-12-30 10:32:06 -08:00
Tobias Bosch
3a80c4197d
refactor(perf): move navigation into test files and rename `runSimpleBenchmark`
2014-12-29 16:58:31 -08:00
Tobias Bosch
35ac3f3d97
feat(perf): measure error and stop automatically when the numbers are good enough.
2014-12-29 16:58:31 -08:00
vsavkin
f06433fb58
feat(test_lib): implement SpyObject
2014-12-29 13:27:17 -08:00
vsavkin
965f70bfbe
feat(transpiler): implement @IMPLEMENTS
2014-12-29 12:29:00 -08:00
Tobias Bosch
df4ac0dd33
refactor(perf): use webdriver to execute benchmarks
...
- use performance log of chromedriver / appium to get timeline data
for calculating metrics for benchmarks
- change all benchmarks to be made of a standalone application
and a protractor test that collectes timeline data
- fix and simplify benchmarks
- add dart2js to build
- remove benchpress
Closes #330
2014-12-23 22:22:55 -08:00
vsavkin
d985045983
fix(build): disable the analysis of third-party libs
2014-12-12 16:24:53 -08:00
Rado Kirov
60456c8b89
feat(ng-repeat): initial implementaion of ng-repeat.
...
- adds support for content bindings via '[]'.
- directives module
2014-12-11 11:23:02 -08:00
Tobias Bosch
1cd848df55
fix(build): analyze examples and benchmarks again
2014-12-08 12:00:48 -08:00
Tobias Bosch
8db77f2405
refactor(build): simplify and modularize
...
simplify:
- use same html file for dart and JS
- build benchmarks automatically when doing `gulp build`
- centralize configuration
modularize:
- move all build tasks into separate node.js modules under
`tools/build`.
changes:
- the `build` folder is now the `dist` folder
Closes #284
2014-12-05 16:30:36 -08:00
Tommy Odom
f088e9ef15
feat(transpiler): Transform for..of to Dart as for..in
...
fixes #53
2014-12-03 10:48:48 +01:00
Misko Hevery
044625a098
chore: Make field declarations explicit
...
This used to be valid code:
```
class Foo {
constructor() {
this.bar = ‘string’;
}
}
```
This will now fail since ‘bar’ is not explicitly
defined as a field. We now have to write:
```
class Foo {
bar:string; // << REQUIRED
constructor() {
this.bar = ‘string’;
}
}
```
2014-11-24 16:35:39 -08:00
Victor Berchet
f864aa1f8e
fix(class fields): handle untyped fields
2014-11-19 23:12:14 +01:00
Vojta Jina
c68e78075a
feat(transiler/dart): re-export imported vars
...
```
import {Foo} from ‘./foo’;
var localVar = true;
export {Foo, localVar};
===>
import ‘./foo’ show Foo;
export ‘./foo’ show Foo;
var localVar = true;
```
Closes #41
2014-11-12 07:01:14 -08:00
Vojta Jina
c5153175b6
fix(transpiler/dart): re-exporting only some bindings
...
```
export {Foo, Bar} from ‘./foo’;
==>
export ‘./foo’ show Foo, Bar;
```
2014-11-12 07:01:14 -08:00
Tobias Bosch
7a70f8f92d
feat(compiler): initial version of the compiler.
...
Supports:
- binds text nodes, element properties and directive properties
- locates decorator, component and template directives.
- inline templates of components
The compiler is built using a pipeline design,
see core/src/compiler/pipeline package.
Integration tests to show how the compiler, change_detection and DI work
together:
core/test/compiler/integration_spec.js
2014-11-11 17:55:50 -08:00
Tommy Odom
93f6d26f68
feat(transpiler): Transform template strings to triple quoted Dart strings
2014-11-10 16:49:51 -08:00
Rado Kirov
4f416694a5
bug(transpiler): Support optional arguments in annotations.
...
Clean-up: move annotaitons out of fixtures/annotations, since we have
the @CONST annotation in the transpiler already.
2014-11-10 13:47:30 -08:00
Vojta Jina
d16d6a02ab
feat(transpiler): class fields for Dart
2014-11-07 10:29:48 -08:00
Tommy Odom
8e6326f838
feat(transpiler): allow @CONST annotation on class
...
Closes #148
2014-11-05 15:44:34 -08:00
Vojta Jina
7d0a83a24c
chore(gulp-traceur): better error reporting
...
Use original filename when printing errors (instead of the output).
2014-11-05 11:42:23 -08:00
Vojta Jina
1dc5a22f07
chore: source maps for Karma/Gulp
...
For Karma, the source mapa are inlined inside each source file.
For `build/*` output, separate `*.map` file is created.
This changes the API of `tools/transpiler/index.js`. I believe this API
is only used in `gulp-traceur.js` and `karma-traceur-preprocessor.js`.
Instead of returning the transpiled string, `compile()` returns a result
object such as:
```js
{
js: ‘transpiled code’,
sourceMap: null || {}
}
```
Closes #20
2014-11-05 11:19:02 -08:00
Marc Laval
e1c84e02f8
chore: adds Windows support for build
...
Closes #104
2014-10-28 21:04:30 -07:00
Victor Berchet
94958e084e
fix(super): `super()` now means call the proto of the current function.
...
See https://github.com/google/traceur-
compiler/commit/6732e5eddf203ae02bcfb8faea837590bf32c061
2014-10-27 22:26:38 +01:00
vsavkin
035dc5ba44
feat(transpiler): add support for getters
2014-10-16 16:11:18 -04:00
vsavkin
1a7d5160f2
use Promise instead of Future
2014-10-12 17:47:52 -04:00
vsavkin
f524a89cb6
feat(injector): add support for default bindings
2014-10-12 17:29:02 -04:00
vsavkin
ee1e54cf0a
feat(transpiler): add support for named params to new expressions
2014-10-12 17:21:50 -04:00
Misko Hevery
a9896ed391
design: view instantiation test
2014-10-10 20:54:33 -07:00
Vojta Jina
2d19e7122b
refactor(transpiler): instanceof
2014-10-09 15:22:21 -07:00
Vojta Jina
c7e9d10f0b
test(transpiler): add spec for instanceof
2014-10-09 15:22:20 -07:00
Vojta Jina
85ee62cb0d
chore(transpiler): show filepath when error happens
2014-10-09 15:17:53 -07:00
Vojta Jina
94e556465b
fix(transpiler): only call transform/visit when defined
...
Our custom ParseTree classes should not expect that every
transformer/visitor defines the methods to transform/visit them.
2014-10-09 15:08:30 -07:00
Victor Berchet
d1b90e125b
feat(transpiler): add support for arrow functions
...
fixes #28
2014-10-09 14:44:07 -07:00
vsavkin
1214f423b4
feat(transpiler): implement optional params
2014-10-09 14:27:32 -07:00
Victor Berchet
5818c3bf28
refactor(named parameters): mimic original traceur architecture
2014-10-08 12:53:55 +02:00
Vojta Jina
38340ce8d9
test(transpiler): add a cycle import spec
2014-10-07 17:35:22 -07:00
Vojta Jina
6efb7f9017
transpiler: normalize Dart library name
...
`file2module` was used for normalizing paths where `-` is fine.
This normalizes non-word characters only when generating the Dart
library name.
2014-10-07 17:35:22 -07:00
Vojta Jina
cfc5fdc60d
chore: use es6-module-loader
...
Switch Traceur to use modules=“instantiate” and use es6-module-loader.
This setup supports cyclic dependencies.
2014-10-07 17:35:22 -07:00
vsavkin
b2199632c7
feat(injector): initial implementaion of dynamic injector
2014-10-03 15:35:33 -04:00
Victor Berchet
089a2f1b62
feat(transpiler): constructor and typed field semantics
...
fixes #11 (constructor and typed field semantics)
fixes #42 (Should we infer class property types from ctor args ?)
fixes #17 (number (js) should map to num (dart))
Closes #45
2014-10-02 21:02:47 -07:00