pure-typescript v0.0.1
pure-typescript
Pure Typescript Loader for Node & Browser with Zero Setting
DO NOT USE ME IN PRODUCTION(YET) BECAUSE I AM UNDER HEAVY DEVELOPMENT NOW
Why Pure TypeScript?
I love typescript(because of angular 2), and I switched all my javascript code to typescript now, including my server components.
I also would like to write pure typescript npm modules, which I think is no need to compile to javascript any more, because my environment is a full typescript stack.
But there's no such a tool for me to run typescript smoothly for my need. for example:
ts-nodedon't support load pure typescript library/module in node_modules directorytsconfig.jsonis a too complicatedtypings.jsonis too complicatedindex.d.tsis too complicated- set default file extension to
.ts - run typescript in browser needs a lot of configuration(too complicated)
.tsis not the first dependencies file extention search 1st order
I believe that run typescript should as easy as run node in server, or javascript in browser, this is the reason I decided to write a new tool to solve those problems.
Goal
- Support Pure TypeScript modules/library in node_moduels
- Run typescript as Zero-Configuration
- One Line Configuration in browser to run Pure TypeScript directly
The PAIN of Pure Typescript Developer
- Can't have a "pure" typescript library.
- Fail to load pure typescript module from node_moules
- ts-node cannot import pure typescript npm module inside node_modules directory
Usage
$ purets server.tsBest Practice
- Add keywords:
pure-typescriptin package.json - For Pure Typescript NPM Module, set main:
index.tsin package.json
Reference
Version History
v0.0.1 (master)
- run
puretslike node:purets pure-typescript-file.ts - publish npm module: pure-typescript
Known Issues & Support
Github Issue - https://github.com/zixia/pure-typescript/issues
Author
Zhuohuan LI zixia@zixia.net (http://linkedin.com/in/zixia)
Copyright & License
- Code & Docs 2016© zixia
- Code released under the ISC license
- Docs released under Creative Commons
9 years ago