Commit 5d4ed09
New emit pipeline and API/CLI refactor (#511)
* New emit pipeline and API/CLI refactor
* Move high-level API to index file
* Extract multi-file `transpileString` input to `transpileVirtualProgram`
* Return an results from emitTranspiledFiles instead of a using a callback
* Refactor CommandLineParser and further CLI refactor
* Fix strict issues
* Fix rootDir and outDir defaults always being used
* Remove failing test
* Remove command line parser tests that test standard TS parser features
* Use tsconfig source file during parse to get better diagnostics
* Parse command line options more similar to typescript
* Refactor commandLineParser tests
* Rename transpileVirtualProgram to transpileVirtualProject
* Remove export from CLI
* Add expect(received).toHaveDiagnostics() matcher
* Parse command line options case-insensitively
* Disallow unknown options in "tstl" config object
* Rename compiler tests to CLI tests
* Refactor CLI tests
* Add transpile tests
* Fix invalid behavior with relative outFile and outDir
* Rename getTranspileOutput to getTranspilationResult
* Remove `options` argument from `getTranspilationResult`
* Rename getTranspilationResult to transpile
* Extract luaLibImport to a variable
* Add command line parsing integration tests
* Make diagnostics use node's source file instead of transformed one
* Cast getCompilerOptions calls to custom compiler options
* Export TranspileError and all LuaTransformer exports from package index
* Remove options argument from LuaTransformer
* Rename sourceFile variable
* Set printer default during destructuring
* Rename
* Use emitTranspiledFiles in transpileFiles and transpileProject
* Use transpileFiles in transpile tests runner
* Fix typos
* Deprecate root-level options
* Move TranspileError diagnostic to diagnostics.ts
* Add source to custom diagnostics
* Show custom diagnostics as `TSTL<code>` in CLI
* Fix quotes
* Always import tstl as a namespace in tests
* Simplify tstl object formatting in deprecation warning
* Add Lua AST to TranspiledFile interface1 parent 247ceba commit 5d4ed09
File tree
67 files changed
+1747
-1616
lines changed- src
- test
- cli
- errors
- watch
- compiler
- projects
- baseurl
- test_src
- basic
- watchmode
- testfiles
- translation
- transpile
- __snapshots__
- directories
- baseurl/src
- lib/nested
- basic/src
- lib
- outFile
- unit
- compiler/configuration
- mixed
- lualib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
67 files changed
+1747
-1616
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
25 | 21 | | |
| 22 | + | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments