Version: v0.0.14 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 7 Imported by: 0




This section is empty.


This section is empty.


func Execute added in v0.0.12

func Execute(bundle *compactor.Bundle) error

Execute processor

func FindConfig added in v0.0.11

func FindConfig(path string) string

FindConfig locate the user defined TypeScript config file

func FindFiles added in v0.0.12

func FindFiles(item *compactor.Item) []string

FindFiles retrieve the final list of processable items

func Init added in v0.0.12

func Init(bundle *compactor.Bundle) error

Init processor

func Optimize added in v0.0.12

func Optimize(bundle *compactor.Bundle) error

Optimize processor

func Plugin added in v0.0.4

func Plugin() *compactor.Plugin

Plugin return the compactor plugin instance

func RenameDestination added in v0.0.11

func RenameDestination(bundle *compactor.Bundle) error

RenameDestination fix names of destinations files


type TSConfig added in v0.0.11

type TSConfig struct {
	CompilerOptions map[string]interface{} `json:"compilerOptions,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

type TSRename added in v0.0.12

type TSRename struct {
	Name     string
	Source   string
	FromPath string
	FromName string
	ToPath   string
	ToName   string

TSRename struct

func FindRenames added in v0.0.12

func FindRenames(bundle *compactor.Bundle, item *compactor.Item) []TSRename

FindRenames will create a list of possible renames based on internal rules

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL