Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 interface
- Loading branch information