-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Compilation of Js Files #5471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Compilation of Js Files #5471
Changes from all commits
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
0a67ac3
Add .js as supported extension
sheetalkamat 74a3f67
Emit the diagnostics for javascript file instead of doing semantic check
sheetalkamat 279018d
Baseline updates
sheetalkamat e9688dd
Allow the js files to emit output
sheetalkamat fad0db2
Report error if output file is among the input files
sheetalkamat d3dfd2a
Add test cases for simple js file compilations
sheetalkamat 1dc3414
Javascript files will emit declarations too so get declaration diagno…
sheetalkamat 63de162
Let harness to name file even when single unit data specified but th…
sheetalkamat 57e17d2
Test cases for different typescript syntax not supported errors durin…
sheetalkamat 7e30827
Test for rest parameters(copied from language service tests)
sheetalkamat 2252354
Verify syntax error in js file are reported
sheetalkamat 3107bbb
Let tsconfig to pick up js files
sheetalkamat 885babc
Merge branch 'master' into tscJsFiles
sheetalkamat 60f295f
Cleanup of options of project runner
sheetalkamat 8da3bd2
Project testcase to run tsconfig file
sheetalkamat 8aeff92
Add tests when same named .ts and .js file exist with tsconfig file s…
sheetalkamat bc48c7c
Merge branch 'master' into tscJsFiles
sheetalkamat 9daf635
Verify and fix scenario when .js and .ts files with same name are pre…
sheetalkamat 70d3de4
When same named .d.ts and .js files are present and tscconfig contain…
sheetalkamat 0f73c16
When folder contains .d.ts as well as .js of same name and tsconfig d…
sheetalkamat dbb2772
Tests when the .ts and .js files are mixed in compilation with tsccon…
sheetalkamat 14b6082
Tests when the .ts and .js files are mixed in compilation with tsccon…
sheetalkamat 2860435
Do not emit javascript files
sheetalkamat 68c65cd
Test case when one of the input file is output file name
sheetalkamat fce9f32
When tsconfig file doesnt contain file names, consume .js files of di…
sheetalkamat e32c920
Corrected scenario names in the test cases
sheetalkamat 60e15b2
Report error when emitting declarations if the reference is to .js file
sheetalkamat 400b353
Merge branch 'master' into tscJsFiles
sheetalkamat c30104e
Add option --jsExtensions to handle extensions to treat as javascript
sheetalkamat 1df341b
Merge branch 'master' into tscJsFilesxt
sheetalkamat 7f09c81
Syntax changes if the extensions to treat as javascript change
sheetalkamat 607564f
Parse all the javascript files with JSX grammer
sheetalkamat e044d3e
Merge branch 'master' into tscJsFiles
sheetalkamat 0fe282e
Update the type assertion errors to jsx syntax error as we are treati…
sheetalkamat ce652dc
Fixing few code review comments
sheetalkamat 460c597
Changes in harness to emit expected and actual
sheetalkamat 108f856
Remove tsconfig files of failing testcases
sheetalkamat b3e4f8e
Create new tscconfig files for the failing testcases
sheetalkamat db9faf6
Temp change to investigate test failure
sheetalkamat 938c533
Remove the failing testcases
sheetalkamat 567d71c
Add new test cases
sheetalkamat 756052a
Removing console logs that were for debugging
sheetalkamat b580c55
Merge branch 'master' into tscJsFiles
sheetalkamat 17fca98
Fix tslint error
sheetalkamat 242eb8b
Taken feedback into account and simplified the getFileNames logic to …
sheetalkamat f7b7204
Remove extension for emitting output should remove any of supported e…
sheetalkamat 2d083f7
Use compilation options to get extensions to remove to get module name
sheetalkamat 2c3c321
Merge branch 'master' into tscJsFiles
sheetalkamat 5e14edb
Verify the emit file name is unique and doesnt overwrite input file
sheetalkamat a87dae1
Verify that when emit blocking error occurs rest of the emit occurs a…
sheetalkamat 6882035
Verify if one or more files are emitting into same output file we pro…
sheetalkamat f28fbfd
Merge branch 'master' into tscJsFiles
sheetalkamat 286fb3e
Fix the lint error
sheetalkamat b38a81b
Emit enabled for JS files
sheetalkamat d4d6e48
Adding test case for scenario in which error reported depends on orde…
sheetalkamat 9f96f47
Added scenario when duplicate function implementation is reported
sheetalkamat 11b270f
Add testcase - generating declaration file results in more errors in …
sheetalkamat 8176354
Fix the duplicate function implementation error that depended on orde…
sheetalkamat 5aa7086
Use ts.indexOf instead of Array.indexOf method
sheetalkamat 1ae1464
Test cases for let declaration and its use order
sheetalkamat acf7de7
Merge branch 'master' into tscJsFiles
sheetalkamat 0496bfe
Merge branch 'master' into tscJsFiles
sheetalkamat 6804087
Refactoring to fix build issues
sheetalkamat 3215438
Dont emit declaration file if there are errors in the source file
sheetalkamat d14934e
Tests update for emitting declarations if no errors
sheetalkamat c26d2da
Do not emit declarations file if we reported error about inaccessible…
sheetalkamat 93cc1e5
Check source map files are being overwritten
sheetalkamat ff933be
Populate if emit was skipped correctly as part of emit result
sheetalkamat bf05ea3
Some test cases to verify that declaration file overwrite is reported…
sheetalkamat 8f03d00
Test cases to verify that declaration file is not emitted if any of t…
sheetalkamat 57362f6
Some tests to cover transpilation of different syntax
sheetalkamat ba3d34f
Instead of --jsExtensions support --allowJs with .js and .jsx as supp…
sheetalkamat 382b86b
Test update for using allowJs instead of --jsExtensions
sheetalkamat ea57efa
Test baseline update because .map cannot be a valid js file anymore
sheetalkamat a8eb76f
Remove the logic for parsing compilation of comma seperated list of s…
sheetalkamat 45b995d
Remove extensions doesnt need to depend on compiler options any more
sheetalkamat 2d3a345
Since there arent any user given extensions, have extensions start wi…
sheetalkamat 0c3c7f1
Treat the .jsx and .tsx files as jsx when parsing and .js files are p…
sheetalkamat fdb7a3e
Revert the change to block declaration emit in case of syntax or sema…
sheetalkamat 38ebb1d
Tests update after declaration file emit revert
sheetalkamat b217b8b
Merge branch 'master' into jsFileCompilation
sheetalkamat 94a647b
Do not emit declarations for javascript files
sheetalkamat daba901
Report error if --allowJs option is used along with --declaration
sheetalkamat 6ea74ae
Update the error messages as per PR feedback
sheetalkamat 67bed26
Since js extensions are not user specified, no need to check if sourc…
sheetalkamat 4d3457c
Some refactoring as per PR feedback
sheetalkamat 9f337bc
Merge branch 'master' into jsFileCompilation
sheetalkamat a0318c7
Create a utility to iterate over each emitFileName and use it in emitter
sheetalkamat c6d54d6
Simplify verification of emit file paths using utility to iterate ove…
sheetalkamat 06bf08c
Simplify logic to get declaration diagnostis
sheetalkamat 2b582a0
Simplifty declaration emitter logic by using forEachExpectedEmitFile
sheetalkamat 62d4fd6
Take pr feedback into account
sheetalkamat 51caf1a
Use of FileMap instead of Map as per PR feedback
sheetalkamat def7b66
PR feedback
sheetalkamat 4c84259
Merge branch 'master' into jsFileCompilation
sheetalkamat d2445b6
PR feedback
sheetalkamat 1ed67f4
Removed the TODO as created bug for it
sheetalkamat 0b21540
Simplified logic of getting files if files werent suppplied in tsccon…
sheetalkamat 3bdad8a
When excluding same base name file from compilation, check for all su…
sheetalkamat fc07763
Merge branch 'master' into jsFileCompilation
sheetalkamat 0482afd
Load only typescript files if resolving from node modules
sheetalkamat 1ee5022
Change the api for node name resolver to take compiler options instea…
sheetalkamat 073b69a
Merge branch 'master' into jsFileCompilation
sheetalkamat 5ac6eb2
PR feedback
sheetalkamat a19307d
Merge branch 'master' into jsFileCompilation
sheetalkamat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we passing the existing options here? previously the caller has to call extend on them, so why is the change in the API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plus one to the question