go-tspath

command module
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: MIT Imports: 1 Imported by: 0

README

Go TSPath Build Status codecov Go Report Card GoDoc

A fast Typescript paths replacer written in Go. ⚡

go-tspath replaces directly Typescript paths aliases into JS files with real paths based on tsconfig.json, no more runtime replacers.

Status: Beta

🚀 View current beta releases at go-tspath/releases.

Installation

go get -u github.com/joseluisq/go-tspath

Usage

# 1. Build TS files via tsc
# 2. Replace TS paths
go-tspath -config=./tsconfig.json
# 3. Just run your app
# node main.js

API

~> go-tspath --help
Usage of go-tspath:
  -config string
    	Specifies the Typescript configuration file. (default "./tsconfig.json")

Contributions

Feel free to send some Pull request or issue.

License

MIT license

© 2019 Jose Quintana

Documentation

Overview

Command go-tspath is entry point to replace Typescript paths

Directories

Path Synopsis
Package cmd process command line arguments
Package cmd process command line arguments
pkg
replacer
Package replacer replaces every TS path alias occurrence per file using a tsconfig.json
Package replacer replaces every TS path alias occurrence per file using a tsconfig.json
tsconfig
Package tsconfig reads a tsconfig.json content
Package tsconfig reads a tsconfig.json content

Jump to

Keyboard shortcuts

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