tsconfig

package
v1.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tsconfig reads a tsconfig.json content

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompilerOptions

type CompilerOptions struct {
	BaseURL string              `json:"baseUrl"`
	Paths   map[string][]string `json:"paths"`
	OutDir  string              `json:"outDir"`
}

CompilerOptions defines a small Typescript compiler options

type Config

type Config struct {
	ConfigPath string
	Data       *ConfigData
}

Config defines tsconfig instance

func New

func New(configPath string) *Config

New creates a new Config instance.

func (*Config) Read

func (tsconf *Config) Read() ConfigData

Read reads a tsconfig.json file

type ConfigData

type ConfigData struct {
	CompilerOptions CompilerOptions `json:"compilerOptions"`
}

ConfigData defines tsconfig json file properties

type PathReplacement

type PathReplacement struct {
	Pattern     []byte
	Replacement [][]byte
}

PathReplacement defines a single Typescript path with its replacement

Jump to

Keyboard shortcuts

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