pure-typescript
v0.0.1
Published
Pure TypeScript Executor for Node & Browser with Zero Setting
Downloads
5
Maintainers
Readme
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-node
don't support load pure typescript library/module in node_modules directorytsconfig.json
is a too complicatedtypings.json
is too complicatedindex.d.ts
is too complicated- set default file extension to
.ts
- run typescript in browser needs a lot of configuration(too complicated)
.ts
is 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.ts
Best Practice
- Add keywords:
pure-typescript
in package.json - For Pure Typescript NPM Module, set main:
index.ts
in package.json
Reference
Version History
v0.0.1 (master)
- run
purets
like 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 [email protected] (http://linkedin.com/in/zixia)
Copyright & License
- Code & Docs 2016© zixia
- Code released under the ISC license
- Docs released under Creative Commons