faucet-pipeline / faucet-pipeline-js

JavaScript asset pipeline
Apache License 2.0
8 stars 6 forks source link

TypeScript configuration abstractions #32

Open FND opened 6 years ago

FND commented 6 years ago

b4b8690d2751b54efaff95d09fa137c4b570f055 introduced experimental TypeScript support, though without any abstraction/simplification WRT TypeScript-specific configuration (i.e. merely passing through the respective config object, if any).

("compiler options" refers to compilerOptions in tsconfig.json)

We should consider adding defaults and/or simplified configuration options for such common use cases. However, it's not clear what this means for tsconfig.json, which is most likely expected by various tools (e.g. IDEs) and thus needs to be maintained anyway? Perhaps tsconfig.json should (optionally) be auto-generated on startup.

FND commented 4 years ago

In conversation with @larsrh, we concluded that it might be worth considering some sort of "quick [unsafe] mode" to omit type checking (i.e. only transpile to JS), possibly using Sucrase under the hood.