Jake Bailey
36e29448e9
Get codebase building pre bundling
...
This isn't totally complete, but enough to get everything building and
tests running manually. The next commit will make the build work fully.
2022-11-07 13:34:44 -08:00
Jake Bailey
b6c0538826
Generated module conversion step - stripNamespaces
...
This step converts each file into an exported module by hoisting the namespace bodies into the global scope and transferring internal markers down onto declarations as needed.
The namespaces are reconstructed as "barrel"-style modules, which are identical to the old namespace objects in structure. These reconstructed namespaces are then imported in the newly module-ified files, making existing expressions like "ts." valid.
2022-11-07 13:32:03 -08:00
Ron Buckton
1e65b330a7
Merge 'decorators' into 'modifiers' on various nodes ( #49089 )
...
* Merge 'decorators' into 'modifiers' on various Nodes
* Drop RESERVED argument in favor of removing parameter
* Ignore grammar error nodes when asserting invariants
* Revert 'illegalX' property renames
* PR Feedback
2022-06-09 17:24:02 -07:00
Ron Buckton
eb3645f16b
Refactor node factory API, use node factory in parser ( #35282 )
...
* Refactor node factory API, use node factory in parser
* Move UnparsedSource nodes to factory
* Make most Node properties read-only
* Make pos/end/parent and JSDoc 'comment' read-only
* Update function/constructor-type factories
* Remove treeStateObserver
* Simplify Debug.deprecate
* Remove unused factory methods, simplify lazy factory methods
* Fix base factory used for source file updates
* Update test baseline due to merge from master
* Rename factory methods to be more consistent (#39058 )
2020-06-16 16:55:03 -07:00
Wesley Wigham
8c9e96bea9
Move executeCommandLine ambient code into tsc ( #35788 )
2019-12-19 15:55:42 -08:00
Sheetal Nandi
8c1900c74b
Baselining tsc --watch output just like tsc baselines for easier updates ( #35710 )
...
* Baselining tsc --watch output
* Fix lint errors
2019-12-18 10:23:58 -08:00
Wesley Wigham
50603eda5c
Add ts namespace reference to tsc, since it now doesnt have one
2019-12-09 16:48:00 -08:00
Wesley Wigham
6936ac24fd
Move executeCommandLine.ts into its own project ( #35595 )
...
* Move executeCommandLine.ts into its own project
* Remove incorrect prepend
2019-12-09 16:33:24 -08:00
Daniel Rosenwasser
b167012561
Extend the correct tsconfig.json.
2019-10-21 10:46:41 -07:00
Daniel Rosenwasser
fbc070f328
Extend tsconfig.release.json from the sibling tsconfig.json to ensure files aren't forgotten.
2019-10-18 16:12:31 -07:00
Andrew Casey
caf0041f8a
Add listFilesOnly command-line option
...
Msbuild currently uses a combination of `--listFiles` and `--noEmit` to
obtain a list of files to be consumed by tsc. However, these two flags
don't suppress type checking, the results of which msbuild will never
consume. This new switch gives msbuild a faster way to obtain the file
list.
Note: like `--noEmit`, doesn't make sense in build mode.
2019-10-17 16:36:50 -07:00
Sheetal Nandi
fde10a2494
Merge branch 'master' into rootDir
2019-10-17 12:54:26 -07:00
Sheetal Nandi
1531c9ec21
Fix lint rules
2019-10-16 15:42:53 -07:00
Sheetal Nandi
9fa7d8b3b9
Use getNormalizedAbsolutePath to combine basePath and config value for file names
...
Fixes #34502 by being consistent in path normalization
2019-10-16 15:38:29 -07:00
Sheetal Nandi
25db0b0bf0
Merge baselining and tsc logic into one
2019-10-16 11:39:40 -07:00
Sheetal Nandi
4b10145340
Make sure commandline options are absolute paths so they dont conflict with tsbuildinfo paths
...
Fixes #33667
2019-10-14 14:44:47 -07:00
Wesley Wigham
558ece72cb
Add support for capturing cpu profiles into tsc itself ( #33586 )
...
* Add support for capturing cpu profiles into tsc itself
* Accept baseline for new compiler option in showConfig
* Fix lints
* Support profiling build mode, only ever have one live profiling session
* Minor modification to enable/disable semaphore, accept re-cased baseline
* Add pid into autognerated cpuprofile path
* Rename to fix case
* Sanitize filepaths in emitted cpuprofile for easier adoption by enterprise people, add inspector to browser field
2019-09-27 13:34:44 -07:00
Alexander
ceccfd8867
array-type: [ default: array, generic: array ]
2019-08-08 21:30:18 +03:00
Alexander T
2c32308f35
no-null/no-null
2019-07-18 10:50:38 +03:00
Alexander T
769bb0b475
remove tslint configuration
2019-06-27 13:49:35 +03:00
Sheetal Nandi
06d188a255
Support --locale with --build
...
Fixes #31960
2019-06-19 15:38:05 -07:00
Sheetal Nandi
f0b7e08d2c
Move towards BuildInvalidatedProject api where one can query program and perform its operations
2019-05-09 14:18:15 -07:00
Sheetal Nandi
3da47963d5
Remove startWatching as explicit method from api
2019-05-02 15:22:07 -07:00
Sheetal Nandi
e8074f7fdc
Rename cleanAll to clean and take optional project as input
2019-05-02 15:00:53 -07:00
Sheetal Nandi
5b361c8497
Make API to build project and wire cancellation token
2019-05-02 14:16:06 -07:00
Sheetal Nandi
ddee617e84
Make SolutionBuilder and SolutionBuilderWithWatch separate
2019-04-29 13:16:36 -07:00
Nathan Shively-Sanders
4420d1083b
Add diagnostics for relation cache size ( #30999 )
...
* Add diagnostics for relation cache size
* Move to extendedDiagnostics
* Single method that returns a 3-property object
* Fix double-space lint
2019-04-17 14:32:18 -07:00
Sheetal Nandi
a4091ae8e3
Merge branch 'master' into incrementalFromCommandLine
2019-03-26 14:57:18 -07:00
Sheetal Nandi
7457e5d9fe
Pull out the incremental compilation into a function so we can test it
2019-03-26 14:28:05 -07:00
Sheetal Nandi
021444a248
Make it as api so we can test it
2019-03-26 14:25:56 -07:00
Sheetal Nandi
e28869d888
Ensure that from tsc with --incremental sets source file version
...
Fixes #30588 and #30589
2019-03-26 14:25:47 -07:00
Sheetal Nandi
35470b3f3b
Make tsbuildInfoFile as commandline option to tsc (and not tsc -b)
2019-03-25 14:47:36 -07:00
Sheetal Nandi
0bcc46a4e3
Ensure --pretty with --build is passed correctly to create reporters
...
Fixes #30282
2019-03-19 10:53:06 -07:00
Sheetal Nandi
a571e50143
Use EmitAndSemanticDiagnosticsBuilder in builder from tsc
2019-03-14 11:54:47 -07:00
Sheetal Nandi
73f6886cd7
Mark tsc.release as incremental
2019-03-12 16:14:23 -07:00
Sheetal Nandi
e41cbb6316
Add incremental to normal tsc
2019-03-08 15:59:59 -08:00
Sheetal Nandi
e51a2fe80d
Skip declaration emit for files that are just executables
2019-01-25 14:24:35 -08:00
Sheetal Nandi
f1949bbae8
Use emit builder to emit only changed files.
2018-12-21 12:53:26 -08:00
Sheetal Nandi
56a76d8b62
Revert BuilderProgram to be redirected object to Program in preparation to set Program in state to undefined for storing.
2018-12-21 12:53:25 -08:00
Sheetal Nandi
48baa42d65
Make SolutionBuilder handle BuilderProgram in preparation to handle incremental builds
2018-12-21 12:53:25 -08:00
Daniel Rosenwasser
c2898db9dd
Merge pull request #28612 from vvakame/feat-showConfig-error
...
show diagnostic when error occurred with --showConfig
2018-12-07 16:42:30 -08:00
Sheetal Nandi
8d5d900567
Factor out caching logic so tsc (without watch can use it and --watch has its own cache logic).
2018-11-21 09:18:03 -08:00
vvakame
d8ac9c1fd1
address comment
2018-11-21 12:36:04 +09:00
vvakame
4986091b32
address comment
2018-11-20 12:19:09 +09:00
Sheetal Nandi
99d357db57
Enable statistics reporting per program through temporary build api
2018-11-19 12:38:36 -08:00
vvakame
d6d9c9ec20
Show diagnostic when error found with --showConfig option
2018-11-19 19:06:43 +09:00
Sheetal Nandi
77ef9cedab
Report error summary in pretty mode during normal compilation
2018-11-01 16:11:22 -07:00
Wesley Wigham
a4a1bed88b
Add showConfig tsc flag for debugging configs ( #27353 )
...
* Add showConfig tsc flag for debugging configs
* Merge showConfig implementation with init implementation, add basic unit tests
* Fix lint
* Add missing semicolon
* showConfig when theres no config file
2018-10-31 15:57:09 -07:00
Sheetal Nandi
c63d58148a
Fix the usage of createProgram in tsc
2018-09-14 12:44:02 -07:00
Sheetal Nandi
37c3c5d8bb
Refactoring
2018-09-13 10:04:52 -07:00