Commit graph

229 commits

Author SHA1 Message Date
Wesley Wigham 0783743994 Unlock ts-node version (#9960) 2016-07-27 11:46:19 -07:00
Wesley Wigham 4ef4cf1bac Lock ts-node to 1.1.0 while perf issue is investigated (#9933) 2016-07-25 12:36:18 -07:00
Sudheesh Singanamalla f24341f719 Remove dependency on tsd, Related to #9658 (#9724) 2016-07-21 12:25:21 -07:00
Yui 1c9df8446a [Transforms] Merge master 07/11 into transform (#9697)
* Use merge2, gulp-if, gulp-newer, and more projects

* Add watch task

* Working non-inline sourcemaps for runtests

* browser tests now also loads sourcemaps from disk

* Lazypipes and better services stream management

* export interface used by other exported functions

* Make goto-definition work for `this` parameter

* Add new error for rest parameters

* Add error message for rest parameter properties

* Fix case when a document contains multiple script blocks with different base indentations.
Use the base indent size if it is greater that the indentation of the inherited predecessor

* Fix rwc-runner from breaking change in compiler (#9284)

* Signatures use JSDoc to determine optionality

* Changed implementation to use closure

* Updated tests

* Fixed linting error

* Adding Code of Conduct notice

* Don't crash when JS class property is self-referential.

Fixes #9293

* Remove stale baselines

* For optionality, check question token before JSDoc

* Accept rest parameter properties error baselines

* Change binding pattern parameter property error

* Accept binding pattern properties error baselines

* Lint

* Port the sync version diagnostics API from tsserverVS-WIP branch to 2.0

* Do copyright without gulp-if and lazypipe

* Change test comment and accept baseline

* Remove tsd scripts task from gulpfile

* Make use of module compiler option explicit, add strip internal to tsconfigs

* Remove Signature#thisType and use Signature#thisParameter everywhere

* Add Gulpfile lint to jake, fix lints

* Change reference tests to verify actual ranges referenced and not just their count

* Respond to PR comments

* Add new lint rule

* Fix object whitespace lints

* Fix case of gulpfile dependencies

* 1. pass subshell args 2. fix build order in services

1. /bin/sh requires its arguments joined into a single string unlike
cmd.
2. services/ depends on a couple of files from server/ but the order was
implicit, and changed from jakefile. Now the order is explicit in the
tsconfig.

* Fix single-quote lint

* Check for exactly one space

* Fix excess whitespace issues

* Add matchFiles test to Gulpfile

This was merged while the gulpfile was still in-progress

* Fix LKG useDebug task and newLine flag

* Update LKG

* Clean before LKG in Gulpfile

* Fix lint

* Correct the api string name

* Allow space in exec cmds

* Fix typo

* Add new APIs to protocol

* Fix bug where `exports.` was prepended to namespace export accesses

* Remove unnecessary parameter

* extract expression into function

* Add fourslash tests & address CR comments

* Fix 8549: Using variable as Jsx tagname (#9337)

* Parse JSXElement's name as property access instead of just entity name. So when one accesses property of the class through this, checker will check correctly

* wip - just resolve to any type for now

* Resolve string type to anytype and look up property in intrinsicElementsType of Jsx

* Add tests and update baselines

* Remove unneccessary comment

* wip-address PR

* Address PR

* Add tets and update baselines

* Fix linting error

* Unused identifiers compiler code (#9200)

* Code changes to update references of the Identifiers

* Added code for handling function, method and coonstructor level local variables and parameters

* Rebased with origin master

* Code changes to handle unused private variables, private methods and typed parameters

* Code changes to handle namespace level elements

* Code changes to handle unimplemented interfaces

* Code to optimize the d.ts check

* Correct Code change to handle the parameters for methods inside interfaces

* Fix for lint error

* Remove Trailing whitespace

* Code changes to handle interface implementations

* Changes to display the error position correctly

* Compiler Test Cases

* Adding condition to ignore constructor parameters

* Removing unnecessary tests

* Additional changes for compiler code

* Additional changes to handle constructor scenario

* Fixing the consolidated case

* Changed logic to search for private instead of public

* Response to PR Comments

* Changed the error code in test cases as result  of merge with master

* Adding the missing file

* Adding the missing file II

* Response to PR comments

* Code changes for checking unused imports

* Test Cases for Unused Imports

* Response to PR comments

* Code change specific to position of Import Declaration

* Code change for handling the position for unused import

* New scenarios for handling parameters in lambda function, type parameters in methods, etc.

* Additional scenarios based on PR comments

* Removing a redundant check

* Added ambient check to imports and typeparatmeter reporting

* Added one more scenario to handle type parameters

* Added new scenario for TypeParameter on Interface

* Refactoring the code

* Added scenario to handle private class elements declared in constructor.

* Minor change to erro reporting

* Fix 8355: Fix emit metadata different between transpile and tsc --isolatedModule (#9232)

* Instead of returning undefined for unknownSymbol return itself

* Add Transpile unittest

* Wip - Add project tests

* Add project tests and baselines

* Update existed tests

* Add tests for emitting metadata with module targetting system

* Fix 8467: Fix incorrect emit for accessing static property in static propertyDeclaration (#8551)

* Fix incorrect emit for accessing static property in static propertyDeclaration

* Update tests and baselines

* Update function name

* Fix when accessing static property inside arrow function

* Add tests and baselines

* do not format comma/closeparen in jsxelement

* format jsx expression

* Remove extra baselines

* Fixed bugs and linting

* Added project tests for node_modules JavaScript searches

* Removed old TODO comment

* make rules optional

* Fixed the regexp for removing full paths

* Fix type of the disableSizeLimit option

* Update version to 2.0.0

* Remove upper boilerplate from issue template

Our issue stats did not improve appreciably when we added the issue template. Reduce upper boilerplate text and try to make it more action-oriented

* Remove unused compiler option (#9381)

* Update LKG

* Added emitHost method to return source from node modules

* Marked new method internal

* Update issue_template.md

* new options should be optional for compatibility

* Add getCurrentDirectory to ServerHost

* Add nullchecks for typeRoots, remove getCurrentDirectory from ServerHost as it is always the installation location

* VarDate interface and relevant Date.prototype members

* Port 9396 to release 2.0

* Fix 9363: Object destructuring broken-variables are bound to the wrong object (#9383)

* Fix emit incorrect destructuring mapping in var declaration

* Add tests and baselines

* Add additional tests and baselines

* Fix crash in async functions when targetting ES5.

When targetting ES5 and with --noImplicitReturns,
an async function whose return type could not be determined would cause
a compiler crash.

* Add This type to lib

* Merge master into release-2.0 (#9400)

* do not format comma/closeparen in jsxelement

* format jsx expression

* make rules optional

* Remove upper boilerplate from issue template

Our issue stats did not improve appreciably when we added the issue template. Reduce upper boilerplate text and try to make it more action-oriented

* Update issue_template.md

* new options should be optional for compatibility

* Add getCurrentDirectory to ServerHost

* Add nullchecks for typeRoots, remove getCurrentDirectory from ServerHost as it is always the installation location

* VarDate interface and relevant Date.prototype members

* Fix 9363: Object destructuring broken-variables are bound to the wrong object (#9383)

* Fix emit incorrect destructuring mapping in var declaration

* Add tests and baselines

* Add additional tests and baselines

* Fix #9402: Do not report unused identifier errors for catch variables

* getVarDate should be on the Date interface

* Defere checking unsed identifier checks

* Do not scan nodes preceding formatted region, just skip over them

* Don't emit source files found under node_modules

* Destructuring assignment removes undefined from type when default value is given

* Add nullcheck when calculating indentations for implort clause

* Use a deferred list to check for unused identifiers

* push checks to checkUnusedIdentifiersDeferred

* use isParameterPropertyDeclaration to test for paramter propoerties

* runtests-parallel skips empty buckets

Previously, it would enter them as buckets with no tests, which would
make our test runners run *every* test.

This was very obvious on machines with lots of cores.

* Report unused identifiers in for statements

* Do not check ambients, and overloads

* Add tests

* Consolidate type reference marking in getTypeFromTypeReference

* Handel type aliases

* Add tests

* Add test

* Dont load JavaScript if types packages are present

* Renamed API

* Use checkExpression, not checkExpressionCached

* Do not report unused errors for module augmentations

* Consolidate refernce marking in resolveName to allow marking aliases correctelly

* add tests

* Code review comments

* Only mark symbols found in a local symbol table

* Show "<unknown>" if the name of a declaration is unavailable

* Parse `export default async function` as a declaration

* Respond to PR comments

* Better name for test

* handel private properties correctelly

* Port 9426 to release 2.0

* Handel Swtich statements
check for locals on for statments
only mark private properties

* Removed one error to avoid full path issues

* Don't emit source files found under node_modules

(cherry picked from commit 5f8cf1af3e)

* Dont load JavaScript if types packages are present

(cherry picked from commit 5a45c44eb7)

* Renamed API

(cherry picked from commit d8047b607f)

* Removed one error to avoid full path issues

(cherry picked from commit 5e4f13f342)

* Fix incorrectly-saved quote symbols in ThirdPartyNoticeText.txt

* Fix #9458: exclude parameters starting with underscore from unusedParamter checks

* change variable name for strict mode

* Increase timeout from running RWC. As UWDWeb takes slightly longer now (#9454)

* Handle relative paths in tsconfig exclude and include globs

* Merge master into release branch 06/30 (#9447)

* do not format comma/closeparen in jsxelement

* format jsx expression

* make rules optional

* Remove upper boilerplate from issue template

Our issue stats did not improve appreciably when we added the issue template. Reduce upper boilerplate text and try to make it more action-oriented

* Update issue_template.md

* new options should be optional for compatibility

* Add getCurrentDirectory to ServerHost

* Add nullchecks for typeRoots, remove getCurrentDirectory from ServerHost as it is always the installation location

* VarDate interface and relevant Date.prototype members

* Fix 9363: Object destructuring broken-variables are bound to the wrong object (#9383)

* Fix emit incorrect destructuring mapping in var declaration

* Add tests and baselines

* Add additional tests and baselines

* Fix crash in async functions when targetting ES5.

When targetting ES5 and with --noImplicitReturns,
an async function whose return type could not be determined would cause
a compiler crash.

* Add This type to lib

* getVarDate should be on the Date interface

* Don't emit source files found under node_modules

* Destructuring assignment removes undefined from type when default value is given

* Add nullcheck when calculating indentations for implort clause

* Add test

* Dont load JavaScript if types packages are present

* Renamed API

* Use checkExpression, not checkExpressionCached

* Show "<unknown>" if the name of a declaration is unavailable

* Parse `export default async function` as a declaration

* Removed one error to avoid full path issues

* Fix incorrectly-saved quote symbols in ThirdPartyNoticeText.txt

* Improve names of whitespace functions

* Handle relative paths in tsconfig exclude and include globs

Port 9475 to release 2.0

* add new method getEmitOutputObject to return result of the emit as object with properties instead of json string

* fix linter

* Fix PromiseLike to be compatible with es6-promise (#9484)

* Fix reading files from IOLog because previous our API captures (#9483)

* Fix reading files from IOLog because previous our API captures

* Refactoring the ioLog

* Exclude FlowSwitchClause from flow graph for case expressions

* Add regression test

* Update LKG

* Update language in comment

* Add .mailmap file

* Add authors script to generate authors from repo

* Update AUTHORS.md for release-2.0

* Update script to pass more than one argument

* Remove the unused text buffer from ScriptInfo

* Fix #9531: account for async as an contextual keyword when parsing export assignments

* Update LKG

* Swap q from a reference to an import

* Fix #9550: exclude 'this' type parameters from unusedParameters checks.

* Update comment to reflect new dependency

* Avoid putting children tags in jsdoccomment

* Parse the result of getDirectories call

* Update harness getDirectories implementation for shims

* Fix multiple Salsa assignment-declarations

Previously, all assignment-declarations needed to be of the same kind:
either all `this.p = ...` assignments or `C.prototype.p = ...`
assignments.

* Test for multiple salsa assignment-declarations

* Add test for parsed @typedef tag node shape

* Provide a symbol for salsa-inferred class types

* Update .mailmap

* Fix module tracking

* Updated test with relative import

* Fixed the node tracking and a harness bug

* fixed lint error

* Fixed implicit any

* Added missing test files

* Removed duplicate logic

* Update conflicting baseline.

PR #9574 added a baseline that #9578 caused to be changed. The two PRs
went in so close to each other that the CI build didn't catch the change
to the new test's baseline.

* Fix type of JSXTagName

* Update baselines to use double-quote

* Update baselines when emitting metadata decorator

* Update baselines for async-await function

* Update baselines for comment in capturing down-level for...of and for...in

* Add missing Transpile tests

* Remove old JS transpile baselines

* Passing program as argument in emitWorker

* Port PR#9607 transforms

* Port new JSDOC tests to use baseline

* substitute alias for class expression in statics

* Address new lint warnings

* Change name for substitution function.
2016-07-18 15:38:30 -07:00
Wesley Wigham 761482cf5e Use sorcery to merge sourcemaps between browserify and gulp-typescript (#9439)
* Use sorcery to merge sourcemaps between browserify and gulp-typescript

* Use shorthand

* Fix nit

* move comments, change loop into map

* Ahahaha, we should run code before pushing it

* Move conditional into call
2016-07-15 16:55:16 -07:00
Yui 48ab0ce07f Change version to 2.1.0 (#9615) 2016-07-11 20:53:12 -07:00
Wesley Wigham fb20df0568
Have tsconfig for harness 2016-07-11 16:36:20 -07:00
Mohamed Hegazy f67f1f7db7 Update version to 2.0.0 2016-06-27 13:43:07 -07:00
Wesley Wigham 1c9ad5ca4d
Do copyright without gulp-if and lazypipe 2016-06-21 18:22:30 -07:00
Wesley Wigham d7970a5ff3
Lazypipes and better services stream management 2016-06-20 17:58:02 -07:00
Wesley Wigham 0e5b741d42
Use merge2, gulp-if, gulp-newer, and more projects 2016-06-20 15:30:38 -07:00
Wesley Wigham ffbdbf0768
Correct package.json indentation 2016-06-14 14:59:16 -07:00
Wesley Wigham 684ce6e2d1
Add back in Jakefile for transitional period 2016-06-14 14:44:38 -07:00
Wesley Wigham 1defdc3847
Gulfile runs tests and compiles like a champ 2016-06-14 14:41:25 -07:00
Wesley Wigham 8f7c6e81be
Remove compileFile and exec browserify - use gulp-typescript instead 2016-06-14 12:39:13 -07:00
Wesley Wigham 9dcaf2b6f3
Fix package.json casing 2016-06-10 10:44:12 -07:00
Wesley Wigham 2b1b58ba44
Add gulpfile with same tasks as Jakefile 2016-06-10 01:49:38 -07:00
Andrew Z Allen fa86d1383e Add start target to package.json
This allows tsc to be packaged hermetically by
https://github.com/h2non/nar.
2016-04-30 15:45:09 -06:00
Vladimir Matveev 55ce1d0eb6 unpin mocha version 2016-01-29 17:23:17 -08:00
Vladimir Matveev 5282cad100 pin mocha version to 2.3.4 2016-01-27 09:56:20 -08:00
Mohamed Hegazy add91052bb Update version 2016-01-25 17:08:15 -08:00
Daniel Rosenwasser 6fa51f1c02 Go back to depending on nightly builds of TypeScript. 2016-01-16 12:59:02 -08:00
Daniel Rosenwasser 62c3bfb1fb Temporarily use an older nightly so builds can succeed. 2016-01-14 10:17:32 -08:00
Wesley Wigham ee10ea1baa this should work better than dedupe 2015-11-11 13:58:09 -08:00
Wesley Wigham 77f8d89883 because it needs to work with npm 2 as well 2015-11-11 13:42:46 -08:00
Wesley Wigham 15f505e6aa use tslint@next 2015-11-11 13:30:26 -08:00
Daniel Rosenwasser 3749fe854d Bumped version to 1.8.0. 2015-10-16 12:28:48 -07:00
Wesley Wigham 2d7b217d95 linter runs after tests via jake 2015-10-02 12:45:33 -07:00
Wesley Wigham 8cb93424f4 Add lint to the test command so travis picks it up 2015-09-30 16:12:29 -07:00
Wesley Wigham 031240fd42 Yeah. 2015-09-25 11:39:42 -07:00
Wesley Wigham ff4c20c0de Remove postinstall, make it manual, make sure jakefile is in gitignore 2015-09-25 11:26:41 -07:00
Wesley Wigham 106b32d97b Better messages. 2015-09-25 11:07:03 -07:00
Wesley Wigham c88ba9bbe9 Run linking script only if present 2015-09-25 10:59:01 -07:00
Wesley Wigham 29f7c2c9c8 intentation is powerful 2015-09-24 17:07:02 -07:00
Wesley Wigham 9984ae9000 We can go simpler 2015-09-24 17:04:57 -07:00
Wesley Wigham 758e4402da Add git hooks 2015-09-24 17:00:27 -07:00
Daniel Rosenwasser 925f0843d9 Add a jake task, .gitignore entry, and add tsd as a dev dependency. 2015-09-17 17:55:07 -07:00
Daniel Rosenwasser 00dcb57e3b Bump version back to 1.7.0. 2015-09-15 15:08:48 -07:00
Mohamed Hegazy c18051d5ff Update version to 1.6.2 2015-09-10 14:22:31 -07:00
Ron Buckton 175b9bf96f Adds a "typings" property to package.json 2015-08-27 14:06:06 -07:00
Vladimir Matveev 64fd41df2a use buffer in harness only when running outside of the browser 2015-08-21 13:16:08 -07:00
Vladimir Matveev da009b8612 use \r\n as new line in harness 2015-08-21 11:32:53 -07:00
Vladimir Matveev 68d6d8c550 use Harness.IO instead of sys in harness 2015-08-21 00:31:25 -07:00
Vladimir Matveev b27125adc2 add 'browser' section to suppress import discovery for webpack/browserify 2015-08-13 21:04:05 -07:00
Kyle Kelley 068889f7b3 Run builds, tests, etc. without global jake 2015-07-31 18:40:01 -05:00
Vladimir Matveev f3d2888be5 merge with master 2015-07-30 14:03:48 -07:00
Daniel Rosenwasser e4d346c08f Merge pull request #3993 from impinball/patch-1
Remove preferGlobal flag
2015-07-30 11:16:19 -04:00
Vladimir Matveev ad449ce0fa Moved LKG folder to lib 2015-07-27 10:07:07 -07:00
Daniel Rosenwasser b47cd0e9a4 Merge pull request #3875 from Microsoft/nightly
Create a 'publish-nightly' task in our Jakefile
2015-07-23 13:41:09 -07:00
impinball ce2a054f6d Remove preferGlobal flag
Fixes #3987.
2015-07-23 02:00:13 -04:00
Daniel Rosenwasser b8b4c0f5d4 Bump version number. 2015-07-14 17:25:34 -07:00
Dan Quirk 15a8544bfe Merge master 2015-07-10 18:10:18 -07:00
Dan Quirk 2f15958d32 Use new mocha-fivemat-progress-reporter by default instead of dot reporter 2015-07-10 18:08:19 -07:00
Dan Quirk 82ecd5db9d Basic tslint rules, non-final list 2015-06-25 16:24:02 -07:00
Jason Freeman 67c88a2588 Initial PR feedback 2015-05-20 16:38:13 -07:00
Gilad Peleg 60f25ffccc update license attribute
specifying the type and URL is deprecated:

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
2015-05-19 13:46:50 +03:00
Mohamed Hegazy 805558b7ee Update version 2015-05-06 22:39:23 -07:00
Mohamed Hegazy 2049684154 Update version 2015-04-19 12:46:38 -07:00
Mohamed Hegazy 9c4734901c Update version 2015-04-01 09:30:13 -07:00
Dan Quirk 83d38c46dc Delete extra comma 2015-03-17 12:25:01 -07:00
Dan Quirk b2b3d8b276 Remove CodeClimate stuff 2015-03-17 12:15:13 -07:00
Daniel Rosenwasser 212aeb5e53 Revert "Run jake in interactive mode so output isn't lost." 2015-03-03 22:12:06 -08:00
Daniel Rosenwasser 35bfe4e394 Merge pull request #2063 from jbondc/contrib
Run jake in interactive mode so output isn't lost.
2015-03-03 12:30:34 -08:00
jbondc 97ffcc3520 Run jake in interactive mode so output isn't lost.
Fix jake perftsc.
2015-02-19 09:43:44 -05:00
Mohamed Hegazy ee3ee05cc4 wire package.json command for the server 2015-02-12 08:20:41 -08:00
Mohamed Hegazy acd4914c0e Rename the main node package filename to match the package name 2015-01-31 21:14:28 -08:00
Daniel Rosenwasser ae5c3bafc0 Tabs to spaces in package.json. 2015-01-30 12:19:05 -08:00
Daniel Rosenwasser 394d6f4f0e Bump version to 1.5. 2015-01-30 12:17:18 -08:00
Daniel Rosenwasser 978ac26eff Allow typescript to be importable in node. 2014-12-11 13:43:24 -08:00
Paul van Brenk 40e5c73504 Update version to 1.4 2014-12-08 16:51:40 -08:00
Daniel Rosenwasser f3526bd2c4 Revert "Introduce .editorconfig file"
This reverts commit f3b1e94d68.
2014-10-28 12:11:52 -07:00
Jed Mao f3b1e94d68 Introduce .editorconfig file 2014-10-25 01:27:02 -05:00
Jason Freeman 0625cc4650 Update compiler version to 1.3 2014-10-06 18:18:19 -07:00
Jason Freeman 2ba3ae9225 Update package.json 2014-09-11 10:39:57 -07:00
Mohamed Hegazy 9d8cee1f72 rename tc.js to tsc.js 2014-08-06 23:21:53 -07:00
Dan Quirk 0af149e1fc Turn on Code Climate integration 2014-07-24 16:04:39 -07:00
Dan Quirk 63865539e0 Initial work to enable Travis-CI support 2014-07-22 13:28:09 -07:00
Mohamed Hegazy c49e9b2037 Update package.json
update links
2014-07-16 16:06:03 -07:00
Mohamed Hegazy 214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00