Alex Eagle
7103754178
fix(closure): suppress closure compiler suspiciousCode check in codegen ( #12666 )
2016-11-02 21:11:30 -07:00
Victor Berchet
ef153649b3
fix(compiler-cli): fix types
2016-10-26 14:56:27 -07:00
Tobias Bosch
178fb79b5c
refactor(compiler): move host properties into DirectiveWrapper
...
Part of #11683
2016-10-26 14:32:24 -07:00
Victor Berchet
7221632228
fix(CompilerCli): assert that all pipes and directives are declared by a module
2016-10-25 18:17:18 -07:00
Uri Shaked
c27ce7318f
doc(compiler-cli): align example with style guide ( #12414 )
...
See The Angular Style Guide, [Section 2.2 - Separate File Names with Dots and Dashes](https://angular.io/docs/ts/latest/guide/style-guide.html#!#02-02 )
2016-10-25 00:10:03 +02:00
Victor Berchet
a838aba756
fix(compiler): walk third party modules ( #12453 )
...
fixes #11889
fixes #12428
2016-10-24 22:28:23 +02:00
Martin Probst
bfc97ff2cd
refactor(i18n): extract Extractor from extract_i18n ( #12417 )
...
I put an extractor into your extract so you can extract while you
extract.
This allows integrators to call Extractor as a library. Also refactors
Extractor a bit so that callers need fewer arguments or arguments that
are at the right semantic level.
The refactoring causes no function change.
2016-10-21 15:17:57 -07:00
Victor Berchet
57051f01ce
refactor: remove most facades ( #12399 )
2016-10-21 15:14:44 -07:00
Tobias Bosch
b0a03fcab3
refactor(compiler): introduce directive wrappers to generate less code
...
- for now only wraps the `@Input` properties and calls
to `ngOnInit`, `ngDoCheck` and `ngOnChanges` of directives.
- also groups eval sources by NgModule.
Part of #11683
2016-10-20 10:41:43 -07:00
Tobias Bosch
c951822c35
refactor(compiler): don’t use the `OfflineCompiler` in extract_i18n
2016-10-20 10:41:43 -07:00
Tobias Bosch
acda82c1ed
refactor(compiler): remove private exports
...
All of `@angular/compiler` is private, so we can export
everything we need directly.
2016-10-20 10:41:43 -07:00
Victor Berchet
38e2203b24
refactor(core): delete unused reflector code
2016-10-17 23:17:34 -07:00
Steve Sewell
8c477b2f45
fix(compiler-cli): don't clone static symbols when simplifying annotation metadata ( #12158 )
2016-10-11 15:47:44 -07:00
Igor Minar
71b7654660
fix(compiler-cli): remove peerDependency on @angular/platform-server ( #12122 )
...
There is no runtime dependency from the compiler-cli on @angular/platform-server - it was most likely added to package.json by mistake.
2016-10-06 15:16:41 -07:00
Igor Minar
eaaec6979c
fix(compiler-cli): remove unused parse5 dependency from package.json
...
This was added in error or is an obsolete dependency. We don't need parse5 for the compiler-cli's runtime.
2016-10-06 15:16:22 -07:00
Chuck Jazdzewski
c9b765f5c0
refactor(compiler): module collector is reusable ( #12095 )
2016-10-06 15:10:44 -07:00
Tobias Bosch
f1cfddf6d6
refactor(benchmarks): add `index_aot` to support AoT bootstrap. ( #12105 )
...
Note: This only make sure it can compile the AoT version, but does not yet use it in e2e tests.
2016-10-06 08:37:37 -07:00
Victor Berchet
cf269d9ff4
refactor: add license header to JS files & format files ( #12081 )
2016-10-04 20:39:20 -07:00
Chuck Jazdzewski
43d3a84df3
Revert "refactor: add license header to JS files & format files ( #12035 )"
...
This reverts commit 8310c91823
.
2016-10-04 14:06:41 -07:00
Victor Berchet
8310c91823
refactor: add license header to JS files & format files ( #12035 )
2016-10-04 13:15:49 -07:00
Alex Eagle
b64b5ece65
refactor(facade): Remove most of StringMapWrapper facade. ( #12022 )
...
This change mostly automated by
12012b07a2
with some manual fixes.
2016-10-03 16:46:05 -07:00
Victor Berchet
c3c9ecb302
text(offline compiler): fix expected output
2016-09-30 17:59:43 -07:00
Victor Berchet
9a049be67f
feat(Parse5): update to the latest version 2.2.1
...
fixes #6237
2016-09-30 10:46:49 -07:00
Alex Eagle
0286956107
refactor(facade): Inline isBlank called with object-type argument ( #11992 )
2016-09-30 09:26:53 -07:00
Alex Eagle
1564042fe8
fix(ngc): allow ReflectorHost passed as argument to CodeGenerator#create ( #11951 )
2016-09-27 17:12:57 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Igor Minar
cb657c4b55
docs: update descriptions in package.jsons
2016-09-14 16:44:39 -07:00
Tobias Bosch
42d442dcd5
refactor(core): add a name to all decorators and other fixes
2016-09-12 22:47:54 -07:00
Tobias Bosch
63e15ffaec
refactor(core): remove `…Metadata` for all decorators and use the decorator directly.
...
BREAKING CHANGE:
- all `…Metadata` classes have been removed. Use the corresponding decorator
as constructor or for `instanceof` checks instead.
- Example:
* Before: `new ComponentMetadata(…)`
* After: `new Component(…)`
- Note: `new Component(…)` worked before as well.
2016-09-12 22:47:54 -07:00
Tobias Bosch
1b15170c89
refactor(core): simplify decorators
...
Every decorator now is made of the following:
- a function that can be used
as a decorator or as a constructor. This function
also can be used for `instanceof` checks.
- a type for this function (callable and newable)
- a type that describes the shape of the data
that the user needs to pass to the decorator
as well as the instance of the metadata
The docs for decorators live at the followig places
so that IDEs can discover them correctly:
- General description of the decorator is placed on the
`...Decorator` interface on the callable function
definition
- Property descriptions are placed on the interface
that describes the metadata produces by the decorator
2016-09-12 22:47:54 -07:00
Rob Wormald
d296298282
fix(build): prevent package tsconfigs from shadowing main tsconfig ( #11454 )
2016-09-08 15:01:22 -07:00
Alex Eagle
9e2ec7a1aa
fix(ngc): use the compilerHost to detect file existence ( #11418 )
2016-09-07 16:24:52 -07:00
Tobias Bosch
aa9b617c9d
fix(compiler): correctly type event handler proxy functions
2016-09-06 11:44:56 -07:00
Alex Eagle
c31535982c
fix(ngc): prepend a rootDir when assuming a file exists ( #11291 )
...
Otherwise we'll later try to resolve the file under one of the rootDirs and won't find it.
2016-09-02 14:52:14 -07:00
Alex Eagle
5e5ae3cde6
fix(ngc): propagate errors to main ( #11214 )
2016-09-01 16:54:37 -07:00
Igor Minar
046c1a8a25
fix(compiler-cli): update package.json to tsc-wrapped@0.3.0
2016-08-31 16:49:14 -07:00
Igor Minar
2b20db6c5a
chore: update to typescript@2.0.2 - the currect 2.0 rc
2016-08-30 21:07:45 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Tobias Bosch
d7de5c4f8e
refactor(compiler): replace `CompileIdentifierMap` with regular `Map`
...
closes #11145
Also rename `CompileIdentifierMetadata.runtime` into `CompileIdentifierMetadata.reference`.
Also remove `CompileIdentifierMetadata.equalsTo` as
now it is enough to just check the `reference` fields for equality.
2016-08-29 12:45:27 -07:00
Chuck Jazdzewski
51877ef4ed
fix(compiler): no longer uses assetCacheKey for token identity.
...
Fixes #10545 , Fixes #10538
2016-08-29 12:45:02 -07:00
Marc Laval
6c77d7182a
fix(compiler-cli): make ngc to work on Windows ( #10919 )
...
Fixes #10792
2016-08-26 15:41:50 -07:00
Victor Berchet
e220a80093
feat(codegen): Add an error message when the locale is not provided ( #11104 )
2016-08-26 15:38:48 -07:00
Igor Minar
501b83441d
refactor(forms): remove FORM_PROVIDERS, FORM_DIRECTIVES, REACTIVE_FORM_PROVIDERS, REACTIVE_DIRECTIVES
...
All of these have been replaced by FormsModule and ReactiveFormsModule.
2016-08-25 13:29:03 -07:00
Alex Eagle
c7a874dd2f
feature(ngc): allow codegen to skip over .d.ts inputs ( #11021 )
2016-08-23 16:26:35 -07:00
vikerman
5c93a8800a
fix(core): Share private types through an exported interface. ( #11009 )
...
Instead of using declare namespace to share the types. This allows the generated code to be compiled with closure with full optimizations.
2016-08-23 16:18:11 -07:00
Chuck Jazdzewski
14a30f3ca0
fix(compiler): Correctly handles references to static methods ( #11013 )
...
Fixes : #10975
2016-08-23 11:58:12 -07:00
Igor Minar
3c2b2ff332
test: fix existing tests by removing usage of obsolete stuff like component level directives, AsyncCompleter and TestComponentBuilder
2016-08-23 09:59:00 -07:00
Chuck Jazdzewski
39a2c39cef
feat(compiler): Added "strictMetadataEmit" option to ngc ( #10951 )
...
ngc can now validate metadata before emitting to verify it doesn't
contain an error symbol that will result in a runtime error if
it is used by the StaticReflector.
To enable this add the section,
"angularCompilerOptions": {
"strictMetadataEmit": true
}
to the top level of the tsconfig.json file passed to ngc.
Enabled metadata validation for packages that are intended to be
used statically.
2016-08-22 17:37:48 -07:00
Alex Eagle
e0fbca9fb0
feat(ngc): support pathmapping using a separate reflector ( #10985 )
...
Until we have comprehensive E2E tests, it's too risky to change the
reflector_host Misko wrote before final. But google3 uses path mapping
and needs all imports to be and all paths to be canonicalized to
the longest rootDir.
This change introduces a subclass of ReflectorHost with overrides for methods
that differ. After final (or when we have good tests), we'll refactor
them back into one class.
2016-08-22 11:48:33 -07:00
Julie Ralph
bb7d55244d
fix(zones): bump zone version to 0.6.15 ( #10953 )
...
This fixes issues with microtasks being called too early
in certain tests.
2016-08-19 14:35:26 -07:00