Commit graph

214 commits

Author SHA1 Message Date
Steven 38a46b754d Rename get-dir-size.js to getDirSize.js 2018-06-07 20:58:54 -04:00
Steven f89273a31f Remove unused promisify 2018-06-07 20:58:54 -04:00
Steven bceb08b36f build: add check for lib size 2018-06-07 20:58:54 -04:00
Ron Buckton ec0af20f5a Merge branch 'master' into libReference 2018-05-29 14:13:00 -07:00
Mohamed Hegazy 94c455792a Remove unneeded assertions 2018-05-29 09:06:35 -07:00
Mohamed Hegazy 4683cb5bad Add assertions 2018-05-29 09:06:16 -07:00
Wesley Wigham 198722d46a
Make configure prerelease script compile under strict null checks (#24417) 2018-05-25 12:10:19 -07:00
Andy e53e56cf82
Enable '--strictNullChecks' (#22088)
* Enable '--strictNullChecks'

* Fix API baselines

* Make sys.getEnvironmentVariable non-nullable

* make properties optional instead of using `| undefined` in thier type

* reportDiagnostics should be required

* Declare firstAccessor as non-nullable

* Make `some` a type guard

* Fix `getEnvironmentVariable` definition in tests

* Pretend transformFlags are always defined

* Fix one more use of sys.getEnvironmentVariable

* `requiredResponse` accepts undefined, remove assertions

* Mark optional properties as optional instead of using `| undefined`

* Mark optional properties as optional instead of using ` | undefined`

* Remove unnecessary null assertions

* Put the bang on the declaration instead of every use

* Make `createMapFromTemplate` require a parameter

* Mark `EmitResult.emittedFiles` and `EmitResult.sourceMaps` as optional

* Plumb through undefined in emitLsit and EmitExpressionList

* `ElementAccessExpression.argumentExpression` can not be `undefined`

* Add overloads for `writeTokenText`

* Make `shouldWriteSeparatingLineTerminator` argument non-nullable

* Make `synthesizedNodeStartsOnNewLine` argument required

* `PropertyAssignment.initializer` cannot be undefined

* Use one `!` at declaration site instead of on every use site

* Capture host in a constant and avoid null assertions

* Remove few more unused assertions

* Update baselines

* Use parameter defaults

* Update baselines

* Fix lint

* Make Symbol#valueDeclaration and Symbol#declarations non-optional to reduce assertions

* Make Node#symbol and Type#symbol non-optional to reduce assertions

* Make `flags` non-nullable to reduce assertions

* Convert some asserts to type guards

* Make `isNonLocalAlias` a type guard

* Add overload for `getSymbolOfNode` for `Declaration`

* Some more `getSymbolOfNode` changes

* Push undefined suppression into `typeToTypeNodeHelper`

* `NodeBuilderContext.tracker` is never `undefined`

* use `Debug.assertDefined`

* Remove unnecessary tag

* Mark `LiteralType.freshType` and `LiteralTupe.regularType` as required
2018-05-22 14:46:57 -07:00
Wesley Wigham a9ff9c2231
Have the bot link the build associated with the PR (#24176) 2018-05-16 13:12:17 -07:00
Wesley Wigham e509ee59df
Have bot force push his branch so he can run multiple times a day 2018-05-16 12:44:03 -07:00
Wesley Wigham 560371d7a0
Alter basic auth strategy 2018-05-14 10:27:13 -07:00
Wesley Wigham 8a0aa99327
Inject token into push like vsts does 2018-05-14 08:39:32 -07:00
Ron Buckton 8548fb835a Merge branch 'master' into libReference 2018-05-11 20:05:26 -07:00
Wesley Wigham e296301c09
VSTS prefers to pass secrets as command line params (#24041) 2018-05-10 15:37:44 -07:00
Wesley Wigham 2dd0ff3ea8
Add script for automatically creating PRs for user test updates (#24036)
* Draft of script to automatically create user baseline update PRs

* Some modifications to make testing easier
2018-05-10 15:02:35 -07:00
Ron Buckton f4ca7ee767 Fork gulp-typescript tasks to run out-of-process 2018-05-04 15:51:13 -07:00
Andy 4a379d66d4
Use @types/travis-fold (#23694) 2018-04-25 16:15:06 -07:00
Andy 3ebcbd4d44
Handle diagnostic with unknown file (#23681) 2018-04-25 13:11:35 -07:00
Wesley Wigham c645f1753f
Update configurePrerelease to not utilize ts internals (#23476)
* update configure nightly to not utilize ts internals

* Nightly -> Prerelease

* Remove alias
2018-04-17 15:42:31 -04:00
Nathan Shively-Sanders a0b08f31f9 Fix jakefile case and circular references
Fails on Linux but not on Windows. Weird!
2018-04-12 16:11:16 -07:00
Ryan Cavanaugh 8e36afa5bd Remove reference emit from diagnostics 2018-04-12 12:41:00 -07:00
Ryan Cavanaugh bbcf00c040 Remove ref comments from processDiagnosticMessages 2018-04-12 12:35:56 -07:00
Ryan Cavanaugh f24d57f1ac Update diagnostic tasks in jakefile 2018-04-12 12:20:27 -07:00
Andy 28455c65b3
patternMatcher: Return single best match instead of list (#23166) 2018-04-11 15:35:22 -07:00
Andy 556a8010b9
Fix bug: ensure 'reportsUnnecessary' is actually sent by tsserver (#23293) 2018-04-10 10:15:15 -07:00
Andy b3edc8f9f4
Apply 'no-unnecessary-type-assertion' lint rule (#22005)
* Apply 'no-unnecessary-type-assertion' lint rule

* Fix type error

* Fix tsconfig.json

* Add --format back
2018-02-16 18:38:00 -08:00
Mohamed Hegazy 384527aa09
Add -dev to version patch number in master (#21741) 2018-02-07 23:45:37 -08:00
Daniel Rosenwasser 6b9ea7cab8 configureNightly -> configurePrerelease 2018-01-19 16:03:02 -08:00
Daniel Rosenwasser 9db45dff6d Create a 'configure-insiders' and 'publish-insiders' task. 2018-01-19 15:58:35 -08:00
Mohamed Hegazy 48ac3019b4 Add example to command description 2018-01-17 11:59:01 -08:00
Andy 86eab34758
type-operator-spacing: Just check for presence of space, not double-space (#20817) 2018-01-08 12:29:43 -08:00
Andy 6f2ba15446
Start linting for double spaces (#20820)
* Start linting for double spaces

* Code review

* Fix cases that were excluded by countDoubleSpaces

* Remove extraneous closing parenthesis
2018-01-08 08:52:13 -08:00
Josh Goldberg 423ab2e03d Removed colors devDependency (#20430)
* Replaced colors with chalk

* Used chalk's preferred import style
2017-12-14 16:05:25 -08:00
Adrian Leonhard 80d1aa0b4f processDiagnosticMessages.ts: linted, removed unused code (#18697)
Added following line to generated output:
"// generated from 'src/diagnosticMessages.json' by 'scripts/processDiagnosticMessages.ts'\r\n" +

Fixes https://github.com/Microsoft/TypeScript/issues/3591
2017-11-08 12:56:39 -08:00
Andy 0a7b7e07ee
Apply 'variable-name' tslint rule (#19743) 2017-11-06 09:23:47 -08:00
Mohamed Hegazy 1e89e78dd2
Fix incorrect relative module name detection (#19702) 2017-11-03 08:59:19 -07:00
Andy 8528667a61 Use lowercased names for generated locale directories (#19581) 2017-10-30 19:18:35 -07:00
Andy 1f282f19e0 Fix "noStringLiteral" lint errors (#19310) 2017-10-19 08:15:48 -07:00
Mohamed Hegazy 5fa8db55b2 Fix https://github.com/Microsoft/TypeScript/issues/19270: ensure output name is a valid locale name (#19308)
* Fix https://github.com/Microsoft/TypeScript/issues/19270: ensure output name is a valid locale name

* Use const instead of var

* Add comment

* Fix typo

* Split the concat logic for generatedLCGFile
2017-10-18 15:46:09 -07:00
Andy d05443bb1d Add quickfix and refactoring to install @types packages (#19130)
* Add quickfix and refactoring to install @types packages

* Move `validatePackageName` to `jsTyping.ts`

* Remove combinePaths overloads

* Respond to code review

* Update api baselines

* Use native PromiseConstructor

* Return false instead of undefined

* Remove getProjectRootPath

* Update api
2017-10-17 15:04:09 -07:00
Mohamed Hegazy a8b7f7d1e5 Include localized diagnostics (#18702)
* Add lcl files

* Add loclalization script

* Add localization build targets

* use async exists, and add assert

* Generate lcg file

* Add localize task to gulpFile

* Only run loclaize if the generated files neededs update. Also run localize as part of local

* Fix lint errors

* Linter love

* Respond to code review comments
2017-10-02 17:16:08 -07:00
Wesley Wigham 1821735136 Add custom formatter which has clickable links, reduce error duplication in gulp output (#18613) 2017-09-21 08:36:50 -07:00
Wesley Wigham d1c4754b37 Better-scheduled parallel tests (#18462)
* Out with the old...

* Brave new world

* Throttle console output

* Batches test messages on large inputs initially

* Move parallel runner code into seperate files
2017-09-14 15:42:06 -07:00
Wesley Wigham dc8d47c51d Remove bisect.cmd, remove reference to missing dts, update usage (#18353) 2017-09-09 15:56:11 -07:00
Mohamed Hegazy 07e1d3b13d Ensure string enums are generated in protocol.d.ts (#17914) 2017-08-21 09:44:03 -07:00
Andy ceae613e4c Add lint rule to check that Debug.assert calls do not eagerly interpolate strings (#17125)
* And lint rule to check that `Debug.assert` calls do not eagerly interpolate strings

* Use more specific 'assert' functions to avoid callbacks

* Respond to PR feedback
2017-08-08 07:56:14 -07:00
Wesley Wigham 2c2df9eec2 Fix runtests-browser in gulp, including RWC, remove into-stream (#17540) 2017-08-01 11:14:39 -07:00
Wesley Wigham 32d9292a83 Generate diagnostics without a leading comma, retain old spaces (#17534)
* Generate diagnostics without a leading comma, reatain space

* Add small assertion that we generate valid json
2017-07-31 12:51:25 -07:00
Andy b81e71d905 processDiagnosticMessages: Simplify code and emit (#17463) 2017-07-28 10:11:57 -07:00
Andy 12acc141c0 processDiagnosticMessages: Simplify check for uniqueness of names (#17331)
* processDiagnosticMessages: Simplify check for uniqueness of names

* Be case-sensitive
2017-07-27 12:30:37 -07:00