Documentation ¶
Index ¶
- func FindConfig(path string) string
- func FindRealPath(path string) string
- func Init(options *compactor.Options) error
- func InitConfig(path string) error
- func Optimize(options *compactor.Options, file *compactor.File) error
- func Plugin() *compactor.Plugin
- func Related(options *compactor.Options, file *compactor.File) ([]compactor.Related, error)
- func Resolve(options *compactor.Options, file *compactor.File) (string, error)
- func Shutdown(options *compactor.Options) error
- func Transform(options *compactor.Options, file *compactor.File) error
- type TSConfig
- type TranspilerService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindConfig ¶ added in v0.0.11
FindConfig locate the user defined TypeScript config file
func FindRealPath ¶ added in v0.0.15
FindRealPath transform TSConfig paths into real path values
func InitConfig ¶ added in v0.0.15
InitConfig find and read tsconfig file from given path
Types ¶
type TSConfig ¶ added in v0.0.11
type TSConfig struct { CompilerOptions map[string]interface{} `json:"compilerOptions,omitempty"` WatchOptions map[string]interface{} `json:"watchOptions,omitempty"` TypeAcquisition map[string]interface{} `json:"typeAcquisition,omitempty"` Exclude []string `json:"exclude,omitempty"` Extends string `json:"extends,omitempty"` Files []string `json:"files,omitempty"` Include []string `json:"include,omitempty"` References []string `json:"references,omitempty"` }
TSConfig struct
func ReadConfig ¶ added in v0.0.15
ReadConfig data from config file if exists
type TranspilerService ¶ added in v0.2.0
func (*TranspilerService) Execute ¶ added in v0.2.0
func (service *TranspilerService) Execute(config *TSConfig, file *compactor.File) error
Execute transpilation process
func (*TranspilerService) Init ¶ added in v0.2.0
func (service *TranspilerService) Init() error
Init service to handle transpilation requests
func (*TranspilerService) Shutdown ¶ added in v0.2.0
func (service *TranspilerService) Shutdown() error
Shutdown transpilation service
Click to show internal directories.
Click to hide internal directories.