command
module
Version:
v1.0.0-beta.5
Opens a new window with list of versions in this module.
Published: Jul 25, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Go TSPath
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
¶
Command go-tspath is entry point to replace Typescript paths
Source Files
¶
Directories
¶
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 |
Click to show internal directories.
Click to hide internal directories.