68 Commits

Author SHA1 Message Date
Keith Mashinter
16d7e5cad7 Compiler flag to specify line ending #1693 fix whitespace 2015-05-03 02:07:13 -04:00
Keith Mashinter
532f92b88f Compiler flag to specify line ending #1693 2015-05-03 02:07:03 -04:00
James Whitney
76fa4b838f Add support for --noEmitHelpers flag
This PR is a Work In Progress that addresses multiple `__extends`
being output as described in #1350: Multiple `__extends` being output
when `--module amd` is set.

The issue still exists as of `v1.5.0 - f53e6a8`.

Apparently a fix was created for this in #1356 but according to #2009, a
[comment](https://github.com/Microsoft/TypeScript/issues/2009#issuecomment-74136291)
later indicated that this was never merged in.

Further conversation continued in #2487 but did not yield any result. I
refer to my earlier recommendation in #1350.

> My question is this, would the TypeScript team be open to a flag that
> can be passed to tsc that will generate something like the following
> ```ts
> define(["require", "exports", "__extends", './mammal'], function (require, exports, __extends, Mammal) {
>     var Human = (function (_super) {
>         __extends(Human, _super);
>         function Human() {
>             _super.apply(this, arguments);
>         }
>         return Human;
>     })(Mammal);
>     return Human;
> });
> ```

To continue with the naming convention I have chosen the flag
`--noEmitHelpers`.
2015-04-30 13:23:30 +10:00
Mohamed Hegazy
32409f9b9b Merge branch 'master' into inlineSourceMaps 2015-04-27 10:11:43 -07:00
Vladimir Matveev
b1cc06e44c merge with master 2015-04-23 20:50:35 -07:00
Paul van Brenk
42c1bdd607 Merge branch 'master' into tsconfigSupportInLS 2015-04-23 13:37:01 -07:00
Paul van Brenk
a3885e5af0 Don't double wrap exceptions. 2015-04-23 13:36:54 -07:00
Paul van Brenk
f5b75439ea Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-04-23 12:58:27 -07:00
Mohamed Hegazy
ded0e398b4 update error messages 2015-04-23 10:53:19 -07:00
Paul van Brenk
8955d7ba57 More refactoring 2015-04-22 18:09:55 -07:00
Paul van Brenk
f8424d0b0c Minor clean up to make it more readable. 2015-04-22 18:00:09 -07:00
Paul van Brenk
5c44a0ff3e Improve error message when encountering an invalid tsconfig.json file. 2015-04-22 15:58:04 -07:00
Paul van Brenk
c6a9c8fa89 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-04-22 13:05:07 -07:00
Colin Snover
378b5ffd1a Add support for UMD-like module export format
The new module format enables global-less universal modules,
compatible with both AMD and CJS module loaders.

Fixes #2036.
2015-04-22 14:21:33 -05:00
Paul van Brenk
80ae52b7e9 expose the config file processing throught the LS and
add a callback to enumerate files in a directory
2015-04-21 13:24:02 -07:00
Mohamed Hegazy
658bba9eaf Add --inlineSources option 2015-04-20 20:33:31 -07:00
Mohamed Hegazy
c940b1651a Merge branch 'master' into inlineSourceMaps 2015-04-19 13:33:50 -07:00
Mohamed Hegazy
261adffe50 Add rootDir option 2015-04-14 22:11:25 -07:00
Vladimir Matveev
1781ce1bd8 Merge remote-tracking branch 'origin/master' into systemModule 2015-04-11 12:31:52 -07:00
Vladimir Matveev
e8fcf8fa2a initial support for system module 2015-04-10 12:10:38 -07:00
Mohamed Hegazy
97a4c24ad9 Expose parseCommandLine 2015-04-09 14:18:59 -07:00
Mohamed Hegazy
a998abb153 Add inlineSourceMap option 2015-04-08 00:14:23 -07:00
Ron Buckton
5c440384ba Added __param helper for parameter decorators and cleaned up __decorate and __metadata 2015-04-01 17:58:28 -07:00
Mohamed Hegazy
0afa4597a7 Merge pull request #2563 from Microsoft/exposeConfigFileHelpers
Expose readConfigFile and parseConfigFile
2015-03-31 20:39:47 -07:00
Vladimir Matveev
f239bbc3b1 Merge pull request #2550 from Microsoft/separateCompilation
Relax import/export elision rules for separate compilation
2015-03-31 14:51:39 -07:00
Mohamed Hegazy
18d8fedbf5 Expose readConfigFile and parseConfigFile 2015-03-31 10:52:21 -07:00
Mohamed Hegazy
cebe42b81f Remove unsed options 2015-03-30 23:32:11 -07:00
Vladimir Matveev
4b7e6cfc2e addressed CR feedback, accepted baselines 2015-03-30 20:16:50 -07:00
Cyrus Najmabadi
3b35473e25 Merge branch 'master' into forOfLengthCache
Conflicts:
	Jakefile
	src/compiler/commandLineParser.ts
	src/compiler/types.ts
2015-03-29 00:09:29 -07:00
Cyrus Najmabadi
7fff53cf33 Remove experimental flag to cache for-of length checks. 2015-03-28 23:50:52 -07:00
Cyrus Najmabadi
ceeeb9cd11 Always preserve new lines for array and object literals and additional constructs like blocks. 2015-03-26 13:46:35 -07:00
Cyrus Najmabadi
d8d4719765 Add experimental option to cache the .length access in downlevel for-of emit. 2015-03-13 16:15:25 -07:00
Cyrus Najmabadi
6e8d80f159 tests for newline preservation. 2015-03-08 19:26:33 -07:00
Cyrus Najmabadi
c371f1e521 Make the preservation of formatting an optional experimental compiler flag. 2015-03-08 19:06:55 -07:00
Cyrus Najmabadi
95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Cyrus Najmabadi
838b9b6998 Provide an experimental flag that allows us to emit declarations except for nodes marked with '@internal'. 2015-02-03 13:15:28 -08:00
Anders Hejlsberg
960d92f9b6 Default to all files only when none are specified in tsconfig.json 2015-01-15 17:12:45 -08:00
Anders Hejlsberg
65452aa011 Hardening compiler to accept empty CompilerOptions object 2015-01-15 15:57:08 -08:00
Anders Hejlsberg
f9f95ba614 Support for tsconfig.json files in command-line compiler 2015-01-15 13:22:23 -08:00
Lorant Pinter
47b8deb382 Show --noImplicitAny as an option to throw errors, not warnings
Fixes #1632
2015-01-11 11:14:06 +01:00
Arnavion
dbe5cd0459 Add -noEmit compiler flag. 2014-12-16 20:25:19 -08:00
Vladimir Matveev
53bdd562c8 remove trailing comma 2014-12-11 17:47:29 -08:00
Mohamed Hegazy
d2c7c01ff3 Respond to code review commments 2014-12-10 17:51:14 -08:00
Mohamed Hegazy
b0574cbdf9 Respond to code review comments 2014-12-10 12:37:09 -08:00
Mohamed Hegazy
0a1eabc9aa Add new compiler flag to suppress noImplicitAny errors for object access 2014-12-09 14:08:44 -08:00
Yui T
d50ce1cb47 Refactoring compiler utility-related files to use short-hand 2014-11-18 12:05:40 -08:00
Dick van den Brink
e7bb2e0ba7 Merge branch 'master' into warnaserror
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	src/harness/harness.ts
2014-11-16 22:02:00 +01:00
vladima
4d354c0286 addressed CR feedback: adjusted text of error messages, added description to 'preserveConstEnums' command line argument 2014-11-03 11:13:32 -08:00
Vladimir Matveev
e949eda583 const enums, iteration 1: const enums can be used in imports, const enums can be merged only with const enums. 2014-10-29 00:17:16 -07:00
Vladimir Matveev
6f4ea86227 merge with master 2014-10-28 21:49:58 -07:00