toddthomson / ts2js Goto Github PK
View Code? Open in Web Editor NEWA simple, fast, extendable Typescript compiler supporting incremental and type checking builds.
License: Other
A simple, fast, extendable Typescript compiler supporting incremental and type checking builds.
License: Other
Issue to track progress on breaking out Compiler from TsProject...
Ts2js should use the incremental
option in the project TsConfig.json file to determine when to perform incremental compilation.
In an effort to get a better understanding of what's happening under the hood, I started to examine the source code for Ts2Js, assuming that TsBundler and TsMinifier all rely on Ts2Js as a dependency.
in the Compiler.ts class file, I notice the emit method only iterates over the the file names specified as the program root file names, and to my understanding according to the TypeScript API these are the entry points into the application. My question is why are you not iterating over the entire list of source files form ts.program.getSourceFiles so that all the dependencies can be compiled as well? I believe TsBundler is supposed to compile dependencies as well?
I notice my output from TsMinifier results always shows only the entry file and this confused me because I assumed the dependencies would be minified as well? Maybe Ts.Bundler is doing additional work to compile and bundle dependencies that isn't happening in Ts2Js by default? I haven't gone through all of the source code but I thought I'd ask about this.
I am having issues with ts2js...I don't think I can get the compiler to work...I don't get any files to be emitted...I am testing from a Windows machine although this shouldn't make a difference because I can get regular typescript projects to compile, is it only the latest version of typescript supported?
Waiting for Typescript 2.1 to be released.
Update Ts2Js to be dependent on Typescript 2.1.x goodness.
Feature to be added to release 4.1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.